ffmpeg编译时报错gcc is unable to create an executable file.
我根据项目用./configure --enable-opengl --extra-libs=‘-lGL -lGLU -lGLEW -lglfw -lpng -lm -lz’进行编译,结果config.log里面表示找不到lGLEW,那么我们首先去掉lGLEW,用./configure --enable-opengl --extra-libs=’-lGL -lGLU -lglfw -lpng -l
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
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file “ffbuild/config.log” produced by configure as this will help
solve the problem.
网上搜了很多资料,都不行。其实最基本的办法还是按上面报错信息里面说的,进入ffbuild/config.log,查看文件最后的报错信息。
我根据项目用./configure --enable-opengl --extra-libs=‘-lGL -lGLU -lGLEW -lglfw -lpng -lm -lz’进行编译,结果config.log里面表示找不到lGLEW,那么我们首先去掉lGLEW,用./configure --enable-opengl --extra-libs=’-lGL -lGLU -lglfw -lpng -lm -lz’进行编译即可。等编译完成了,再加上 -lGLU重新编译。
之后果然不报错了。
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐



所有评论(0)