linux下安装opencv遇到的问题
opencv安装教程http://blog.csdn.net/u012841667/article/details/53501879
操作方法
- 01
make的时候报错: /usr/include/string.h: In function ‘void* __mempcpy_inline(void*, const void*, size_t)’ /usr/include/string.h:652:42: error: ‘memcpy’ was not declared in this scope return (char *) memcpy (__dest, __src, __n) + __n; 解决方案: set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FORCE_INLINES")把这句话加在CMakeLists.txt的第一行
- 02
make的时候报错: fatal error: Eigen/Eigenvalues: No such file or directory 解决方案: 在cmake的时候可以加上WITH_EGEN=OFF sudo cmake -D CMAKE_BUILD_TYPE=RELEASE -D WITH_EIGEN=OFF -D CMAKE_INSTALL_PREFIX=/usr/local/opencv/3.10 ..
赞 (0)