I've tried following this tutorial: https://www.learnopencv.com/install-opencv-4-on-raspberry-pi/
I installed a fresh copy of Raspbian Buster on the Raspberry Pi 2 before following the tutorial.
It gave me errors after running “make -j$(nproc)”:
[ 34%] Building CXX object samples/opengl/CMakeFiles/example_opengl_opengl.dir/opengl.cpp.o
/home/pi/opencv/samples/opengl/opengl.cpp:14:14: fatal error: GL/glu.h: No such
file or directory
#include <GL/glu.h>
^~~~~~~~~~
compilation terminated.
make[2]: *** [samples/opengl/CMakeFiles/example_opengl_opengl.dir/build.make:63:
samples/opengl/CMakeFiles/example_opengl_opengl.dir/opengl.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:37187:
samples/opengl/CMakeFiles/example_opengl_opengl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
At the very end of “make -j$(nproc)”:
[ 37%] Built target opencv_cvv
make: *** [Makefile:163: all] Error 2
I am very new to raspberry pi's and OpenCV so I do not know if the tutorial is valid or outdated. Thanks for the help.
Step 2: Install OS Libraries
- were there any errors? in second tutorial it's the apt get after Then you can install all the important tools and libraries needed for OpenCV – Jaromanda X Dec 22 '19 at 23:25