ubuntu 16.04上 安装 opencv4.

cmake 命令:

 cmake -D BUILD_opencv_python3=YES -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=$HOME/install -D OPENCV_EXTRA_MODULES=../opencv_contrib-4.3.0/modules -D OPENCV_GENERATE_PKGCONFIG=ON  -D INSTALL_PYTHON_EXAMPLES=ON -D INSTALL_C_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D PYTHON3_LIBRARIES=/usr/lib/i386-linux-gnu/libpython3.5m.so.1 -D PYTHON3_EXECUTABLE=/usr/bin/python3 -D WITH_LIBV4L=ON -D BUILD_DOCS=ON ..

有两处配置错误,暂时没解决:

-- The imported target "openjpip_server" references the file
   "/usr/lib/i386-linux-gnu/libopenjpip_server.a"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/i386-linux-gnu/openjpeg-2.1/OpenJPEGTargets.cmake"
but not all the files it references.


-- Could NOT find Atlas (missing:  Atlas_CLAPACK_INCLUDE_DIR) 

但最后make编译能通过。

展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客
应支付0元
点击重新获取
扫码支付

支付成功即可阅读