I followed this guide http://milq.github.io/install-opencv-ubuntu-debian/
I have Linux Mint 17.2 (Ubuntu 14.04.3) and I want to install opencv3.0 for python2.7.
For cmake I used
cmake -DWITH_QT=ON -DWITH_OPENGL=OFF -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON -DWITH_FFMPEG=OFF ..
I dont have opengl support on my laptop and I dont need video module, I need it only for photos.
I get this error during make -j4
Linking CXX executable ../../bin/opencv_traincascade
[ 64%] Built target opencv_createsamples
[ 64%] Built target opencv_videostab
Scanning dependencies of target example_tapi_bgfg_segm
Scanning dependencies of target example_tapi_camshift
[ 73%] [ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_bgfg_segm.dir/bgfg_segm.cpp.o
Built target opencv_java
Scanning dependencies of target example_tapi_clahe
[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_camshift.dir/camshift.cpp.o
[ 74%] Building CXX object samples/tapi/CMakeFiles/example_tapi_clahe.dir/clahe.cpp.o
../../lib/libopencv_core.so.3.0.0: undefined reference to `glXGetProcAddressARB'
collect2: error: ld returned 1 exit status
make[2]: * [bin/opencv_traincascade] Error 1
make[1]: * [apps/traincascade/CMakeFiles/opencv_traincascade.dir/all] Error 2
make[1]: * Waiting for unfinished jobs....
Linking CXX executable ../../bin/tapi-example-clahe
Linking CXX executable ../../bin/tapi-example-bgfg_segm
Linking CXX executable ../../bin/tapi-example-camshift
[ 74%] Built target example_tapi_clahe
[ 74%] Built target example_tapi_bgfg_segm
[ 74%] Built target example_tapi_camshift
make: * [all] Error 2
What do I need to do? What other options could I use in cmake so it's only for photos?