I've been trying to install OpenCV on my RaspBerry Pi 4 using:
cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D WITH_TBB=ON \ -D WITH_V4L=ON \ -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D BUILD_EXAMPLES=ON ..
This completes successfully but when I then run
make -j$(nproc) I am getting the error
**make: [Makefile:163: all] Error 2** Here are the last few lines of install before the error.
[ 36%] Building CXX object modules/cvv/CMakeFiles/opencv_cvv.dir/src/view/singlefilterview.cpp.o [ 36%] Building CXX object modules/cvv/CMakeFiles/opencv_cvv.dir/src/view/translationsmatchview.cpp.o [ 36%] Building CXX object modules/cvv/CMakeFiles/opencv_cvv.dir/opencv_cvv_autogen/mocs_compilation.cpp.o [ 36%] Linking CXX shared library ../../lib/libopencv_cvv.so [ 36%] Built target opencv_cvv make: *** [Makefile:163: all] Error 2
What is going wrong? I've been following this guide exactly so I'm not sure what's wrong. https://www.learnopencv.com/install-opencv-4-on-raspberry-pi/ Thank you!