Cannot build openCV 3 on Debian 8
I tried building opencv 3 on debian 8 and I can't
Here are the details: 1. I have openCV 3 installed already(built it successfully earlier using the instructions given on the opencv.org installation docs.) 2. Now I am trying to build it with nonfree modules. So I downloaded them, and used the following commands
cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=OFF -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON cmake -DOPENCV_EXTRA_MODULES_PATH=../../opencv_nonfree_try/opencv-3.0.0/opencv_contrib-master/modules/ -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local
.
(all directories are correct)
Then I ran make -j2
I received an error
//usr/lib/libgdal.so.1: undefined reference to 'sqlite3_column_table_name' collect2: error: ld returned 1 exit status modules/core/CMakeFiles/opencv_perf_core.dir/build.make:790: recipe for target 'bin/opencv_perf_core' failed make[2]: *** [bin/opencv_perf_core] Error 1 CMakeFiles/Makefile2:1837: recipe for target 'modules/core/CMakeFiles/opencv_perf_core.dir/all' failed make[1]: *** [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 Makefile:137: recipe for target 'all' failed make: *** [all] Error 2