Date: Fri, 08 Aug 2008 15:46:35 +0300 From: Andriy Gapon <avg@icyb.net.ua> To: Henry Hu <henry.hu.sh@gmail.com> Cc: freebsd-multimedia@freebsd.org Subject: Re: transcode: 1.0.5_3 => 1.0.6_1 fails at configure(Libs.private) Message-ID: <489C402B.3000909@icyb.net.ua> In-Reply-To: <53a1e0710808080529g1d63e79ej4130f6104914f9f0@mail.gmail.com> References: <53a1e0710808080529g1d63e79ej4130f6104914f9f0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
on 08/08/2008 15:29 Henry Hu said the following: > In my config.log, I found that there is -pthread in the arguments. > It comes from $LIBAVCODEC_EXTRA_LIBS, which comes from `pkg-config > --libs libavcodec` > > $ pkg-config --libs libavcodec > -pthread -L/usr/local/lib -lavcodec -lz -la52 -lfaac -lfaad -lmp3lame > -lx264 -lxvidcore -ltheora -lvorbisenc -lavutil -lvorbis -lm -logg > > So it is present when libavcodec(ffmpeg) is installed. > So why is it missing in your libavcodec's pkgconfig file? Hmm, your analysis is correct but I am not quite sure what is wrong in my env. What I have here is: $ pkg-config --libs libavcodec -L/usr/local/lib -lavcodec $ pkg_info -W /usr/local/libdata/pkgconfig/libavcodec.pc /usr/local/libdata/pkgconfig/libavcodec.pc was installed by package ffmpeg-2008.07.27_2 $ fgrep -A1 libavcodec.pc /var/db/pkg/ffmpeg-2008.07.27_2/+CONTENTS libdata/pkgconfig/libavcodec.pc @comment MD5:2d54dcacfc8826101f1ba6163da27797 $ md5 /usr/local/libdata/pkgconfig/libavcodec.pc MD5 (/usr/local/libdata/pkgconfig/libavcodec.pc) = 2d54dcacfc8826101f1ba6163da27797 $ cat /usr/local/libdata/pkgconfig/libavcodec.pc prefix=/usr/local exec_prefix=${prefix} libdir=${prefix}/lib includedir=${prefix}/include Name: libavcodec Description: FFmpeg codec library Version: 51.61.0 Requires: Requires.private: theora vorbisenc libavutil = 49.7.0 Conflicts: Libs: -L${libdir} -lavcodec Libs.private: -pthread -lz -lbz2 -lm -la52 -lfaad -ltheora -logg -lvorbisenc -lvorbis -logg -lx264 -lm Cflags: -I${includedir} Not sure about Libs vs Libs.private in the .pc file. Is this ffmpeg issue or transcode issue or pkg-config issue? Perhaps -pthread should be listed in Libs? -- Andriy Gapon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489C402B.3000909>