ffmpegソースディレクトリからコマンドを実行すると、./configure
次のエラーが発生します。
gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed.
If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the [email protected] mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem.
構成ログから:
check_ld cc
check_cc
BEGIN /tmp/ffconf.xECiIX7z.c
1 int main(void){ return 0; }
END /tmp/ffconf.xECiIX7z.c
gcc -c -o /tmp/ffconf.xsCaoMWN.o /tmp/ffconf.xECiIX7z.c
gcc -o /tmp/ffconf.ApzYq7NQ /tmp/ffconf.xsCaoMWN.o
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.6.1/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: ld returned 1 exit status
C compiler test failed.
何が問題なの?どうすればいいですか?
ベストアンサー1
これは、Cコードをコンパイルするために必要なソフトウェアがないことを意味します。
これを実行してください:
apt-get install build-essential
ffmpegのビルド依存関係も必要です。
apt-get build-dep ffmpeg
それからもう一度やり直してください。