[FFmpeg-user] Static build with libschroedinger fails

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jan 5 20:34:55 CET 2012

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
> 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.)

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.)

Carl Eugen

More information about the ffmpeg-user mailing list