Unable to compile on Debian
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 ...