ソースからSnow Leopardでffmpegをコンパイルしています。私はffmpegでいくつかのカスタム修正があるので、Macportを使うのはオプションではありません。メイクコマンドは次のとおりです。未定義のシンボルのため、Ffmpegのコンパイルが失敗する_x264_encoder_open_112(アーキテクチャx86_64)
$ ./configure --enable-gpl --enable-libmp3lame --enable-static \
--disable-shared --enable-libx264 --enable-pthreads \
--disable-doc --enable-avfilter
$ make
エラー:私は罰金行ったソースからlibx264をコンパイルした
CC ffplay.o
ffplay.c: In function ‘SDL_main’:
ffplay.c:3157: warning: assignment discards qualifiers from pointer target type
LD ffplay_g
Undefined symbols for architecture x86_64:
"_x264_encoder_open_112", referenced from:
_X264_init in libavcodec.a(libx264.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1
。
$ cd x264-snapshot-20101228-2245; ./configure && make && sudo make install
...、それは間違っている可能性がありますどのようなシンボル "_x264_encoder_open_112"
$ nm ./libx264.a | grep _x264_encoder_open_112
0000000000003ef0 T _x264_encoder_open_112
000000000000d7b0 S _x264_encoder_open_112.eh
が含まれていますか?
これを解決しましたか?私はまったく同じ問題を抱えています... – beardedd
@beardedd私は正確な答えはありませんが、私はライブラリを再構築する必要がありました。私はmacportからの紛争があったと思う。したがって、それらのlibsを一時的に削除してgccに '/ usr'からではなく'/opt'からx264.aを選択させたいかもしれません。私たちを掲載し続ける! –