[FFmpeg-user] Static build with libschroedinger fails
Mark Himsley
mark at mdsh.com
Fri Jan 6 18:55:53 CET 2012
On 05/01/12 19:34, Carl Eugen Hoyos wrote:
> Mark Himsley<mark<at> mdsh.com> writes:
>
>> 1 #include<schroedinger/schro.h>
>> 2 long check_schro_init(void) { return (long) schro_init; }
>> 3 int main(void) { return 0; }
>> END /tmp/ffconf.Z2L2SwZw.c
>> gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>> -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=6
>> 00 --static -I/usr/local/include -std=c99 -fomit-frame-pointer -pthread
>> -I/usr/local/include/schroedinger-
>> 1.0 -I/usr/local/include/orc-0.4 -L/usr/local/lib -c -o
>> /tmp/ffconf.Ch8YJ78n.o /tmp/ffconf.Z2L2SwZw.c
>> gcc -Wl,--as-needed -I/usr/local/include/schroedinger-1.0
>> -I/usr/local/include/orc-0.4 -L/usr/local/lib -o
>> /tmp/ffconf.BQq8w1EU /tmp/ffconf.Ch8YJ78n.o -lschroedinger-1.0 -lm
>> -pthread -lbz2 -lz -L/usr/local/lib
>> /usr/local/lib/libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o): In
>> function `schro_init':
>> [...]
>
> (You managed to cut the relevant part.)
Typical ;-)
Sorry - it's hard to tell which of the next 1902 lines of "undefined
reference to 'orc_*'" would be of any use.
> I don't know much about pkg-config, but I suspect you did find a deficiency in
> the configure script. (I wonder how this should be dealt with if the user
> decides to build both shared and static libs.)
> Does --extra-ldflags='-lpthread -lorc-0.4 -lm -lrt' help?
> (Or whatever 'pkg-config --libs --static schroedinger-1.0' shows for you.)
Yes, if I add "-lpthread -lorc-0.4 -lm -lrt" to my --extra-libs then
./configure and make complete without error. That's a good hint, thanks.
Now I need to go and see if what I am doing (building with -static) is
mental.
Thanks for your help Carl.
--
Mark
More information about the ffmpeg-user
mailing list