[FFmpeg-user] unsubscribe

Anmol Mishra amish153 at hotmail.com
Mon Aug 13 17:50:26 EEST 2018


________________________________
From: ffmpeg-user <ffmpeg-user-bounces at ffmpeg.org> on behalf of qw <applemax82 at 163.com>
Sent: Monday, 13 August 2018 1:02 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] How to build static fontconfig with ffmpeg?

Hi,


>Andrew, how does your FreeType2 pkg-config file ('freetype2.pc') look like?
>You're compiling Fontconfig. Fontconfig requires FreeType2, which in turn (in your case) requires LibPNG and Harfbuzz.
>To have Fontconfig also recognize Freetype2's requirements (LibPNG and Harfbuzz) I believe you need to run "pkg-config --static".
>I've had this issue before with a library that needed Freetype2. So I believe the following should work:
>
>8) build fontconfig-2.13.0.tar.bz2
>export PKG_CONFIG="pkg-config --static"
>./configure --disable-shared --enable-static
>make
>unset PKG_CONFIG



The following are pc files:




cat ../dynamicBuild/lib/pkgconfig/freetype2.pc
prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
exec_prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
libdir=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild/lib
includedir=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild/include


Name: FreeType 2
URL: https://freetype.org
Description: A free, high-quality, and portable font engine.
Version: 22.1.16
Requires:
Requires.private: zlib, libpng, harfbuzz >= 1.3.0
Libs: -L${libdir} -lfreetype
Libs.private:
Cflags: -I${includedir}/freetype2




cat ../dynamicBuild/lib/pkgconfig/harfbuzz.pc
prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
exec_prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
libdir=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild/lib
includedir=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild/include


Name: harfbuzz
Description: HarfBuzz text shaping library
Version: 1.7.6


Libs: -L${libdir} -lharfbuzz
Libs.private: -lm
Requires.private:
Cflags: -I${includedir}/harfbuzz




cat ../dynamicBuild/lib/pkgconfig/libpng.pc
prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/libpng16


Name: libpng
Description: Loads and saves PNG files
Version: 1.6.34
Requires: zlib
Libs: -L${libdir} -lpng16
Libs.private: -lm -lz -lm
Cflags: -I${includedir}




cat ../dynamicBuild/lib/pkgconfig/libpng16.pc
prefix=/export/qiang/buildDir/debug-build/jdcloud_vod_ffmpeg/dynamicBuild
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/libpng16


Name: libpng
Description: Loads and saves PNG files
Version: 1.6.34
Requires: zlib
Libs: -L${libdir} -lpng16
Libs.private: -lm -lz -lm
Cflags: -I${includedir}






I use the command of 'pkg-config --static', which prints nothing.




Thanks


Regards


Andrew



At 2018-08-09 08:09:46, "Reino Wijnsma" <rwijnsma at xs4all.nl> wrote:
>On 24-7-2018 08:02, qw <applemax82 at 163.com> wrote:
>> At 2018-07-23 22:43:44, "Roger Pack" <rogerdpack2 at gmail.com> wrote:
>>> Wonder if it should be
>>> or use another configure command : ./configure --disable-shared
>>> --enable-static LDFLAGS="-L/usr/local/lib" LIBS="-lfreetype -lharfbuzz
>>> -lpng"
>>> If that doesn't work maybe the circular dep. with harfbuzz and free
>>> type isn't trivial?
>> It doesn't work. I combine libfreetype.a, libharfbuzz.a and libpng16.a into new libfreetype.a, and can succeed in building fontconfig by linking to the new libfreetype.a, i.e.
>>
>> ar x libfreetype.a" && ar x libharfbuzz.a" && ar x libpng16.a" && ar cru libfreetype.new.a ./*.o && ranlib libfreetype.new.a
>>
>> Is there another method to build fontconfig? Is it possible to build fontconfig by only running configure and make?
>Andrew, how does your FreeType2 pkg-config file ('freetype2.pc') look like?
>You're compiling Fontconfig. Fontconfig requires FreeType2, which in turn (in your case) requires LibPNG and Harfbuzz.
>To have Fontconfig also recognize Freetype2's requirements (LibPNG and Harfbuzz) I believe you need to run "pkg-config --static".
>I've had this issue before with a library that needed Freetype2. So I believe the following should work:
>
>8) build fontconfig-2.13.0.tar.bz2
>export PKG_CONFIG="pkg-config --static"
>./configure --disable-shared --enable-static
>make
>unset PKG_CONFIG
>
>-- Reino
>
>_______________________________________________
>ffmpeg-user mailing list
>ffmpeg-user at ffmpeg.org
>http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>To unsubscribe, visit link above, or email
>ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list