opencv-2.4.5 编译异常处理
来源:互联网 发布:mac 微信 编辑:程序博客网 时间:2024/06/18 13:20
抛出异常:
OpenCV-2.4.3/modules/features2d/src/freak.cpp:437: error: unable to find a register to spill in class 'GENERAL_REGS'
/cs/research/crest/projects1/ucacbbl/OpenCV-2.4.3/modules/features2d/src/freak.cpp:437: error: unable to find a register to spill in class GENERAL_REGS/cs/research/crest/projects1/ucacbbl/OpenCV-2.4.3/modules/features2d/src/freak.cpp:437: error: this is the insn:(insn:HI 1685 1684 1686 131 (parallel [ (set (subreg:DI (reg:V16QI 21 xmm0 [848]) 0) (ior:DI (reg:DI 1 dx [832]) (reg:DI 4 si [839]))) (clobber (reg:CC 17 flags)) ]) 315 {*iordi_1_rex64} (insn_list:REG_DEP_TRUE 1660 (insn_list:REG_DEP_TRUE 1659 (nil))) (expr_list:REG_UNUSED (reg:CC 17 flags) (expr_list:REG_UNUSED (reg:CC 17 flags) (expr_list:REG_DEAD (reg:DI 4 si [839]) (expr_list:REG_DEAD (reg:DI 1 dx [832]) (nil))))))
下文给出了解决方案:
http://www0.cs.ucl.ac.uk/staff/ucacbbl/opencv-2.4.3/
————————————————————————
This bug has been reported in stackoverflow.com.
Being unable to find a register to spillappears to be a problem with some versions of gcc(bugzilla 35135).
http://stackoverflow.com/questions/13580485/error-in-making-opencv
的说明:
YOUR_BUILD_DIR/modules/features2d/CMakeFiles/opencv_features2d.dir/build.make
Search for freak.cpp. You find three blocks: Building CXX..., Preprocessing CXX..., and Compiling CX.... I just needed to change the Building part. The last line of that block looks like this:
.... YOUR_COMPILER $(CXX_DEFINES) $(CXX_FLAGS) ...
and if you check you find out that CXX_FLAGS has a -O3 in it. If you add -O0 after CXX_FLAGS it suppresses the O3. So your lines should look like this.
.... YOUR_COMPILER $(CXX_DEFINES) $(CXX_FLAGS) -O0 ...
- opencv-2.4.5 编译异常处理
- OpenCV异常处理机制
- opencv异常处理
- OpenCV异常处理机制
- centos7 qt 编译opencv 异常
- Opencv的异常处理方式
- opencv交叉编译错误处理
- android studio编译异常处理
- android studio编译异常处理
- Qt+Opencv测试摄像头编译异常退出
- Ubuntu 11.10 opencv编译错误处理
- 移植OpenCV-2.4.5编译成功
- VC编译选项 /EHa 异常处理
- linux 编译链接libcurl异常处理
- VC编译选项 /EHa 异常处理
- android常见的编译异常处理
- Debian系统编译opencv-2.4.9库利用S5P6818多核来加速图像处理
- opencv视频格式转换出现色彩异常的处理
- 数字与汉字之间的转换(正负数通用)
- Hadoop 1.0.4+Hbase-0.94.6在linux上的配置与开发(一)
- VxWorks共享看门狗定时机制的设计与实现
- 插入flash代码详解
- ubuntu编译安装php5 mysql nginx
- opencv-2.4.5 编译异常处理
- CI框架百问百答: 简说CodeIgniter的MVC流程?-第5问
- 安卓-MotionEvent之ACTION_CANCEL
- 如何更改Eclipse的字体和背景颜色
- 编程小技巧
- c/c++资源(源码、开发工具、开发库)
- Android提示版本更新的实现
- 编译安装MYSQL,遇到configure: error: No curses/termcap library found的解决方法!
- MMU和虚拟内存管理