求助:opencv2.4.9在ubuntu上的编译问题
opencv吧
全部回复
仅看楼主
level 1
nattergal 楼主
似乎是个老问题了,cmake成功,make时候报错
按照网上的方法,找到 -m64 然后删掉,或者make后面加 ARCH=arm ,都试过了,但最后还有这么一个报错,已经grep不到 “-m64” 字符串了啊。。是了好几遍,求助大神们 >< 万分感谢!!
Linking CXX static library ../../lib/libopencv_core_pch_dephelp.a
[ 7%] Built target opencv_core_pch_dephelp
Scanning dependencies of target pch_Generate_opencv_core
[ 7%] Generating precomp.hpp
[ 7%] Generating precomp.hpp.gch/opencv_core_Release.gch
[ 7%] Built target pch_Generate_opencv_core
[ 7%] Building NVCC (Device) object modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
arm-linux-gnueabihf-gcc: error: unrecognized command line option ‘-m64’
CMake Error at cuda_compile_generated_matrix_operations.cu.o.cmake:206 (message):
Error generating
/home/yy/opencv-2.4.9/build/modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o
make[2]: *** [modules/core/CMakeFiles/cuda_compile.dir/__/dynamicuda/src/cuda/./cuda_compile_generated_matrix_operations.cu.o] 错误 1
make[1]: *** [modules/core/CMakeFiles/opencv_core.dir/all] 错误 2
make: *** [all] 错误 2
2014年07月01日 05点07分 1
level 1
楼主 你解决了吗
2015年05月29日 09点05分 2
level 1
输入:“cmake -D CMAKE_BUILD_TYPE=bulid -D CMAKE_INSTALL_PREFIX=/usr/local -D CUDA_GENERATION=Kepler ..”,即可解决!
2015年12月16日 12点12分 4
有用
2015年12月21日 14点12分
好使 [大拇指]
2016年03月28日 10点03分
有用
2016年04月22日 13点04分
牛笔
2016年09月20日 15点09分
level 1
cmake前把这个文件删除,cmake配置后把cuda的勾去掉,再配置一遍,再生成
2016年03月30日 02点03分 6
level 1
nattergal 楼主
谢谢大家。。当时没解决,最后放弃了转回windows继续玩Opencv了。。。
2016年04月02日 05点04分 7
level 4
请问我在win7也遇到这个问题了是为了配置opencv2.4.9+cuda6.5但是也出问题了
请问楼主解决了么?
再请问一下大神....我的cmd运行那套代码不好使[泪] @dyx810601
2016年04月25日 05点04分 8
win7系统没有尝试过,我觉得应该先安装cuda、cmake和VS2012,然后安装opencv,打开cmake加载opencv主目录,cmake配置后把cuda的勾去掉,然后生成.lsn的VS项目,其次用VS2012打开项目,对opencv进行重新编译生成就好了,时间可能比较长。cmd下好像不能cmake吧?
2016年06月24日 02点06分
level 5
楼主,我也是opencv2.4.9求问,使用cmake—gui来configure的时候,出现了cmake error:unable to open the cache for save. …/CMakeCache.txt,求解
2017年03月06日 15点03分 11
网上说在CMakeList.txt里find_package里set库路径,但是CmakeList里的内容和网上的不一样
2017年03月06日 15点03分
level 12
标记一下这个问题。
2017年11月22日 03点11分 12
1