在mac上出错:No working C compiler found.
来源:互联网 发布:贵阳IBM预测大数据 编辑:程序博客网 时间:2024/05/01 12:54
在安装opencv +java 的时候报错:
No working C compiler found.
查看原因,是在修改x264 的configure配置的时候报错
找到configure文件:
路径如下:
cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_multimedia_x264/x264/work/x264-956c8d8"
打开configure文件,找到
darwin*) SYS="MACOSX" CFLAGS="$CFLAGS -falign-loops=16"
这一句,
改成:
darwin*) SYS="MACOSX" CFLAGS="$CFLAGS"
保存就可以了
修改之中的小问题:
我打开的时候需要解锁,然后即使选择解锁,输入密码还是解锁失败。尝试修改属性文件,都变为可读写,但是还是不行。所以就先将文件复制到了download中,然后修改其内容,再复制回去就ok了。
出现这种问题的原因:
-falign-loops=16 option must be supported by all versions of GCC
-falign-loops=16 选项必须被所有GCC版本支持
参考:http://stackoverflow.com/questions/22678938/error-compiling-x264-on-mac-os-x
0 0
- 在mac上出错:No working C compiler found.
- No working c compiler found
- 编译x264 出现No working C compiler found.
- 编译x264 出现No working C compiler found.
- ios x264编译问题 No working C compiler found
- win7中用MinGW编译x264出现"No working C compiler found."错误
- X264移植android问题记录(No working C compiler found)
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- no acceptable C compiler found in $PATH
- Freeswitch在configure时报错no acceptable C compiler found in $PATH
- CentOS5 no acceptable C compiler found in $PATH
- configure: error: no acceptable C compiler found in $PATH
- error: no acceptable C compiler found in $PATH
- hdoj 母牛的故事
- java程序性能优化---2--2.1常有设计模式
- android AtionBar
- 【spoj8757】Kmp 概率Dp
- HttpUrlConnection和HttpClient和android-async-http框架的GET和POST请求
- 在mac上出错:No working C compiler found.
- Android 下拉刷新(刷新布局需用ScrollView包裹)
- VBScript 文件操作
- poj 2491 Scavenger Hunt 字符串离散化
- MovieClip.moveTo 方法
- bind变量的长度不同导致多个chlid cursor
- android之listView缓存机制
- sql 视图 按where条件多个字段取一个
- html5相关知识