I was building environment in miniconda to use OpenCV with cpp and am facing following error while execution:
[ 30%] Built target opencv_dnn
make: *** [Makefile:166: all] Error 2
I want to make a C++ project using OpenCV. For that I installed miniconda in linux environment.
(Linux distributor I am using is UBUNTU-24.04).
For this i installed miniconda for C++ using following documentation:
Microsoft Documentation
After this I went onto install Opencv for C++. For that I used following documentation:
OpenCV for C++ and Python Using cmake
In this documention, when on step-3, using command make -j8 is giving me following error:
[ 30%] Linking CXX shared library ../../lib/libopencv_dnn.so
[ 30%] Built target opencv_dnn
make: *** [Makefile:166: all] Error 2
Can anyone help me with this.
Or may suggest some other way or platform to make my C++ project using OpenCV.
Titiksha Bansal is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.