标签:rebuilding errors OFF raise opencv BUILD error cmake
error 1:
Unable to open 'raise.c': Unable to read file '/build/glibc-S9d2JN/glibc-2.27/sysdeps/unix/sysv/linux/raise.c' (Error: Unable to resolve non-existing file '/build/glibc-S9d2JN/glibc-2.27/sysdeps/unix/sysv/linux/raise.c').
error 2:
window.cpp:1239: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage
OpenCV rebuild cmake command: (tested successful)
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D WITH_TBB=ON \ -D BUILD_NEW_PYTHON_SUPPORT=ON \ -D WITH_V4L=ON \ -D WITH_QT=ON \ -D WITH_GTK=ON \ -D BUILD_TIFF=ON \ -D WITH_CUDA=OFF \ -D ENABLE_AVX=OFF \ -D WITH_OPENGL=ON \ -D WITH_OPENCL=OFF \ -D WITH_IPP=OFF \ -D BUILD_TBB=ON \ -D WITH_EIGEN=OFF \ -D WITH_VTK=OFF \ -D BUILD_TESTS=OFF \ -D BUILD_PERF_TESTS=OFF \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_build/opencv_contrib/modules
This cmake command is a combination of the solutions in the following 2 links:
https://stackoverflow.com/questions/59126945/how-can-i-solve-unable-to-open-raise-c-errorvscode-linux
https://stackoverflow.com/questions/28776053/opencv-gtk2-x-error
To install OpenCV with custom build options on Linux (Ubuntu 18), please follow this link:
https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/
PS: remember to use
make -j16
to make cmake process times faster. (The number is subject to your CPU core number. Mine is 16 core CPU).
标签:rebuilding,errors,OFF,raise,opencv,BUILD,error,cmake 来源: https://www.cnblogs.com/mrlonely2018/p/14893904.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。