gcc is unable to create an executable file -- 执行./configure 报错解决办法

编译ffmpeg-metartc的时候出现如下报错

报错的提示:
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.libera.chat.
Include the log file “ffbuild/config.log” produced by configure as this will help
solve the problem.

描述

一般问题,一般是自己的lib路径配置有问题,或者是库的名称配置有问题导致的。我就是把./configure --enable-libx264 --enable-gpl
–extra-libss='-L/work/media/ffmpeg-metartc/FFmpeg-n4.3.3/metartc3
-lmetartccore3 -lspeexdsp -lpthread -lsrtp2 -lssl -lcrypto -ldl ’ 里面的lmetartccore3 配置成了lmetartccore2,然后lib目录下没有相关的库,导致这个问题产生。
如果大家出现该问题,并且还未解决的,可以放评论区一起讨论。

猜你喜欢

转载自blog.csdn.net/weixin_50005386/article/details/125149675
今日推荐