Ask Your Question
0

Unable to compile on Debian

asked 2016-03-13 06:32:50 -0600

I carry out CMAKE with the following command:

cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules ..

I then try and make with make -j4. Things go ok until I hit this:

    [  0%] [  0%] [  0%] [  0%] Generating opencv_imgproc_pch_dephelp.cxx
Generating opencv_imgcodecs_pch_dephelp.cxx
Generating opencv_ts_pch_dephelp.cxx
Generating opencv_core_pch_dephelp.cxx
Scanning dependencies of target opencv_imgproc_pch_dephelp
Scanning dependencies of target opencv_core_pch_dephelp
Scanning dependencies of target opencv_imgcodecs_pch_dephelp
Scanning dependencies of target opencv_ts_pch_dephelp
[  0%] [  0%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/opencv_imgproc_pch_dephelp.cxx.o
Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o
[  0%] [  0%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs_pch_dephelp.dir/opencv_imgcodecs_pch_dephelp.cxx.o
Building CXX object modules/ts/CMakeFiles/opencv_ts_pch_dephelp.dir/opencv_ts_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_imgcodecs_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_imgproc_pch_dephelp.a
Linking CXX static library ../../lib/libopencv_core_pch_dephelp.a
[  0%] [  0%] Built target opencv_core_pch_dephelp
Built target opencv_imgcodecs_pch_dephelp
Linking CXX static library ../../lib/libopencv_ts_pch_dephelp.a
[  0%] [  0%] [  0%] Built target opencv_imgproc_pch_dephelp
Generating opencv_highgui_pch_dephelp.cxx
Generating opencv_videoio_pch_dephelp.cxx
[  0%] [  0%] Built target opencv_ts_pch_dephelp
Generating opencv_perf_core_pch_dephelp.cxx
[  0%] Generating opencv_test_core_pch_dephelp.cxx
Scanning dependencies of target opencv_videoio_pch_dephelp
Scanning dependencies of target opencv_test_core_pch_dephelp
Scanning dependencies of target opencv_highgui_pch_dephelp
[  0%] Scanning dependencies of target opencv_perf_core_pch_dephelp
Building CXX object modules/videoio/CMakeFiles/opencv_videoio_pch_dephelp.dir/opencv_videoio_pch_dephelp.cxx.o
[  0%] [  0%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.o
Building CXX object modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o
[  1%] Building CXX object modules/core/CMakeFiles/opencv_perf_core_pch_dephelp.dir/opencv_perf_core_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_perf_core_pch_dephelp.a
[  1%] Built target opencv_perf_core_pch_dephelp
[  1%] Linking CXX static library ../../lib/libopencv_videoio_pch_dephelp.a
Generating opencv_flann_pch_dephelp.cxx
[  1%] Built target opencv_videoio_pch_dephelp
[  1%] Generating opencv_test_flann_pch_dephelp.cxx
Scanning dependencies of target opencv_flann_pch_dephelp
[  1%] Building CXX object modules/flann/CMakeFiles/opencv_flann_pch_dephelp.dir/opencv_flann_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_highgui_pch_dephelp.a
Scanning dependencies of target opencv_test_flann_pch_dephelp
[  1%] [  1%] Built target opencv_highgui_pch_dephelp
Building CXX object modules/flann/CMakeFiles/opencv_test_flann_pch_dephelp.dir/opencv_test_flann_pch_dephelp.cxx.o
[  2%] Generating opencv_hdf_pch_dephelp.cxx
Scanning dependencies of target opencv_hdf_pch_dephelp
[  2%] Building CXX object modules/hdf/CMakeFiles/opencv_hdf_pch_dephelp.dir/opencv_hdf_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_core_pch_dephelp.a
[  2%] Built target opencv_test_core_pch_dephelp
[  2%] Generating opencv_perf_imgproc_pch_dephelp.cxx
Scanning dependencies of target opencv_perf_imgproc_pch_dephelp
[  2%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc_pch_dephelp.dir/opencv_perf_imgproc_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_hdf_pch_dephelp.a
[  2%] Built target opencv_hdf_pch_dephelp
[  2%] Generating opencv_test_imgproc_pch_dephelp.cxx
Scanning dependencies of target opencv_test_imgproc_pch_dephelp
Linking CXX static library ../../lib/libopencv_flann_pch_dephelp.a
[  2%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc_pch_dephelp.dir/opencv_test_imgproc_pch_dephelp.cxx.o
[  2%] Built target opencv_flann_pch_dephelp
[  2%] Generating opencv_ml_pch_dephelp.cxx
Scanning dependencies of target opencv_ml_pch_dephelp
[  2%] Building CXX object modules/ml/CMakeFiles/opencv_ml_pch_dephelp.dir/opencv_ml_pch_dephelp.cxx.o
Linking CXX static library ../../lib/libopencv_test_flann_pch_dephelp.a
[  2%] Built target opencv_test_flann_pch_dephelp
[  2%] Generating opencv_test_ml_pch_dephelp.cxx
Linking CXX static library ../../lib/libopencv_perf_imgproc_pch_dephelp.a
Scanning dependencies of target opencv_test_ml_pch_dephelp
[  2%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml_pch_dephelp.dir/opencv_test_ml_pch_dephelp.cxx.o
[  2%] Built target opencv_perf_imgproc_pch_dephelp
[  2%] Generating opencv_photo_pch_dephelp.cxx
Scanning dependencies of target opencv_photo_pch_dephelp
[  2%] Building CXX object modules/photo/CMakeFiles/opencv_photo_pch_dephelp.dir ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-14 03:24:11 -0600

kbarni gravatar image

It seems that you don't have the opencl development libraries installed.

Turn off these options in cmake (I don't know exactly the parameters, you can use cmake-gui and uncheck the WITH_OPENCL... and WITH_CUDA... options).

Note that you need the official (proprietary) video drivers to use these options.

Update: the options to turn off are: WITH_CUDA WITH_CUBLAS WITH_CUFFT WITH_NVCUVID WITH_OPENCL WITH_OPENCLAMDBLAS WITH_OPENCLAMDFFT WITH_OPENCL_SVM

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-13 06:32:50 -0600

Seen: 564 times

Last updated: Mar 14 '16