linux下gcc is unable to create anios executable filee C compiler test failed怎么解决

在 SegmentFault,学习技能、解决问题
每个月,我们帮助 1000 万的开发者解决各种各样的技术问题。并助力他们在技术能力、职业生涯、影响力上获得提升。
问题对人有帮助,内容完整,我也想知道答案
问题没有实际价值,缺少关键内容,没有改进余地
centos系统
[root@vultr ffmpeg-3.1]# ./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
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solve the problem.
同步到新浪微博
分享到微博?
关闭理由:
删除理由:
忽略理由:
推广(招聘、广告、SEO 等)方面的内容
与已有问题重复(请编辑该提问指向已有相同问题)
答非所问,不符合答题要求
宜作评论而非答案
带有人身攻击、辱骂、仇恨等违反条款的内容
无法获得确切结果的问题
非开发直接相关的问题
非技术提问的讨论型问题
其他原因(请补充说明)
我要该,理由是:
在 SegmentFault,学习技能、解决问题
每个月,我们帮助 1000 万的开发者解决各种各样的技术问题。并助力他们在技术能力、职业生涯、影响力上获得提升。Blog Stats
Trackbacks - 0
阅读排行榜
评论排行榜当前位置: >
windows编译ffmpeg出现gcc&is&unable&to&create&an&executable&file,该如何处理
windows编译ffmpeg出现gcc&is&unable&to&create&an&executable&file&如题,按照网上的方法搭建了mingw+msys环境,编译ffmpeg&&mingw装在 c:/MinGW&&ffmpeg代码位置:d:/ffmpeg/ffmpeg-0.10.1&&执行./configure --enable-shared --disable-static --enable-nonfree --enable-memalign-hack --enable-libmp3lame --enable-gpl --enable-libx264 --enable-libxvid --enable-libfaac --enable-libvo-aacenc --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --extra-cflags='-ld:/ffmpeg/ffmpeg-0.10.1/include' --extra-ldflags='-ld:/ffmpeg/ffmpeg-0.10.1/lib'&&&后现错误:&&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 SVN.
If the latest version fails, report the problem to the&&ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.&&Include the log file &config.err& produced by configure as this will help&&solving the problem.&&&这里贴上config.log最后一段&&check_ld cc&&check_cc&&BEGIN /tmp/ffconf.iMtsJTOB.c&&
1&int main(void){ return 0; }&&END /tmp/ffconf.iMtsJTOB.c&&gcc -ld:/ffmpeg/ffmpeg-0.10.1/include -c -o /tmp/ffconf.rsMbqSSB.o /tmp/ffconf.iMtsJTOB.c&&gcc -ld:/ffmpeg/ffmpeg-0.10.1/lib -o /tmp/ffconf.ioBipJlK.exe /tmp/ffconf.rsMbqSSB.o&&c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -ld:/ffmpeg/ffmpeg-0.10.1/lib&&collect2.exe: error: ld returned 1 exit status&&C compiler test failed.&&&请教各位大牛该如何解决啊&&------------有效建议1------------&把网线拔掉,把杀毒软件关闭,可能是杀毒软件误判。&&------------有效建议2------------&&引用:&终于解决了,原来是--extra-cflags='-ld:/ffmpeg/ffmpeg-0.10.1/include' --extra-ldflags='-ld:/ffmpeg/ffmpeg-0.10.1/lib'个地方原来是--extra-cflags='-ld:/ffmpeg/ffmpeg-0.10.1/include' 大写的I写成了小写的L ,是路径错了&&说的就是这个意思,l链接的是一个库,你写成目录肯定不对了。ffmpeg移植Android方法以及常见问题汇总_百度文库
您的浏览器Javascript被禁用,需开启后体验完整功能,
享专业文档下载特权
&赠共享文档下载特权
&10W篇文档免费专享
&每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
ffmpeg移植Android方法以及常见问题汇总
&&ffmpeg移植Android方法以及常见问题汇总
阅读已结束,下载本文需要
想免费下载更多文档?
定制HR最喜欢的简历
下载文档到电脑,同时保存到云知识,更方便管理
加入VIP
还剩2页未读,
定制HR最喜欢的简历
你可能喜欢gcc is unable to create an executable file when installing FFmpeg - Stack Overflow
to customize your list.
This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our , , and our .
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.
Join Stack Overflow to learn, share knowledge, and build your career.
or sign in with
I'm trying to install FFmpeg directly from the source and I keep getting this error:
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 "config.log" produced by configure as this will help
solving the problem.
Can anyone help? Also, yum install ffmpeg doesn't work.
18.4k1994142
Apparently, with the limited information I have, you need to at least install gcc to compile ffmpeg. See
for instructions. It is designed for CentOS, but should work for RHEL and Fedora.
Alternatively you can simply use a
instead of compiling, but it doesn't have the advantage of customization that compiling provides.
Note that Stack Overflow is limited to programming questions and discussions.
39k1194123
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Post as a guest
Post as a guest
Post Your Answer
By clicking &Post Your Answer&, you acknowledge that you have read our updated ,
and , and that your continued use of the website is subject to these policies.
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 unable to create ocr 的文章

 

随机推荐