[FFmpeg-user] Issue on static linking of schroedinger-1.0

桃源老師 xanadu6291 at dream.jp
Sun Apr 17 17:19:21 CEST 2016


Hello, 

I'm trying to enable libschroedinger to ffmpeg.  I'm using Mac OS X El Capitan.

When I configure ffmpeg with the following command:

$ ./configure --prefix=${TARGET} --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libschroedinger

I get the following error:
ERROR: schroedinger-1.0 not found using pig-config


If I build schroedinger-1.0 as dynamic library, this error does not occur.


The relevant portion of config.log is:
check_pkg_config schroedinger-1.0 schroedinger/schro.h schro_init
pkg-config --exists --print-errors schroedinger-1.0
check_func_headers schroedinger/schro.h schro_init -I/Volumes/ffmpeg_compile/include/schroedinger-1.0 -I/Volumes/ffmpeg_compile/include/orc-0.4 -L/Volumes/ffmpeg_compile/lib -lschroedinger-1.0 -lpthread -lorc-0.4 -lpthread
check_ld cc -I/Volumes/ffmpeg_compile/include/schroedinger-1.0 -I/Volumes/ffmpeg_compile/include/orc-0.4 -L/Volumes/ffmpeg_compile/lib -lschroedinger-1.0 -lpthread -lorc-0.4 -lpthread
check_cc -I/Volumes/ffmpeg_compile/include/schroedinger-1.0 -I/Volumes/ffmpeg_compile/include/orc-0.4 -L/Volumes/ffmpeg_compile/lib
BEGIN /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.nQkTJ7K4.c
    1	#include <schroedinger/schro.h>
    2	long check_schro_init(void) { return (long) schro_init; }
    3	int main(void) { return 0; }
END /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.nQkTJ7K4.c
gcc -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -std=c99 -fomit-frame-pointer -fPIC -pthread -I/Volumes/ffmpeg_compile/include/schroedinger-1.0 -I/Volumes/ffmpeg_compile/include/orc-0.4 -L/Volumes/ffmpeg_compile/lib -c -o /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.g8YI9ao8.o /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.nQkTJ7K4.c
clang: warning: argument unused during compilation: '-L/Volumes/ffmpeg_compile/lib'
gcc -Wl,-dynamic,-search_paths_first -I/Volumes/ffmpeg_compile/include/schroedinger-1.0 -I/Volumes/ffmpeg_compile/include/orc-0.4 -L/Volumes/ffmpeg_compile/lib -o /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.pBXwN02y /var/folders/qg/421nsykj6q53hqgqd3cf34bw0000gn/T//ffconf.g8YI9ao8.o -lschroedinger-1.0 -lpthread -lorc-0.4 -lpthread -framework CoreGraphics -lm -lbz2 -lz -pthread -framework CoreServices
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
  "__schro_decode_prediction_only", referenced from:
      _schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
  "__schro_telemetry", referenced from:
      _schro_init in libschroedinger-1.0.a(libschroedinger_1.0_la-schro.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: schroedinger-1.0 not found using pig-config


How can I solve this issue?  Any help is appreciated!!


Best Regards,


// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3577 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20160418/3e0af48b/attachment.bin>


More information about the ffmpeg-user mailing list