Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 3.2.0 installation error with Cmake and CodeLite IDE

I am trying to build OpenCV binaries for MinGW with CodeLite IDE in Windows 10. I followed the following steps:

  1. Downloaded OpenCV 3.2.0 self-extracting archive from the official website. And extracted in C:/opencv
  2. Downloaded and installed MinGW 3.2.0 (ensured by running command gcc --version
  3. Have installed CodeLite IDE and MinGW was configured as compiler (ensured by running C++ test programs)
  4. Downloaded and installed Cmake3.10.1. Launched Cmake-gui and tried to build the binaries into D:/opencv/build/MinGW. Clicked on configure. Specified CodeLite - MinGW Makefile as the generator of the project. After sometimes I get an error saying Error in configuration process, project files may be invalid

Screenshot: CMake Error

  1. Again clicked on Configure this time no error message was there. Clicked Generate. A CodeLite Workspace was generated in target directory D:\opencv\build\MinGW

  2. Opened that Workspace with CodeLite IDE. Started to build the project. And at 62% it showed error messages and stopped building.

[ 60%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/dynamic.cpp.obj [ 61%] Built target opencv_annotation [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast_score.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/feature2d.cpp.obj [ 61%] Built target opencv_visualisation mingw32-make.exe[1]: * [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2 mingw32-make.exe[1]: Waiting for unfinished jobs.... CMakeFiles\Makefile2:5379: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/all' failed [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/AKAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/KAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/fed.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/nldiffusion_functions.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.obj mingw32-make.exe[1]: [modules/objdetect/CMakeFiles/opencv_objdetect.dir/all] Error 2 CMakeFiles\Makefile2:4649: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/all' failed [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/mser.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.obj [ 62%] Linking CXX shared library ....\bin\libopencv_features2d320.dll mingw32-make.exe: * [all] Error 2 [ 62%] Built target opencv_features2d Makefile:161: recipe for target 'all' failed ====1 errors, 11 warnings, total time: 00:04:05 seconds====

I also tried the solution proposed in this question. But no luck !!!

Error: CodeLite

Now my question is did I do any mistake? And how to solve this?

My ultimate objective is to use CodeLite IDE to make OpenCV programs. I use CodeLite on my Ubuntu machine. That works great. But windows is needed this time. I know visual studio can be used. But that's not an option for me. [I also tried with Code:Blocks-MinGW Makefiles and only MinGW Makefiles. Those also started building and then showed similar errors]

click to hide/show revision 2
None

updated 2017-12-31 03:43:17 -0600

berak gravatar image

OpenCV 3.2.0 installation error with Cmake and CodeLite IDE

I am trying to build OpenCV binaries for MinGW with CodeLite IDE in Windows 10. I followed the following steps:

  1. Downloaded OpenCV 3.2.0 self-extracting archive from the official website. And extracted in C:/opencv
  2. Downloaded and installed MinGW 3.2.0 (ensured by running command gcc --version
  3. Have installed CodeLite IDE and MinGW was configured as compiler (ensured by running C++ test programs)
  4. Downloaded and installed Cmake3.10.1. Launched Cmake-gui and tried to build the binaries into D:/opencv/build/MinGW. Clicked on configure. Specified CodeLite - MinGW Makefile as the generator of the project. After sometimes I get an error saying Error in configuration process, project files may be invalid

Screenshot: CMake Error

  1. Again clicked on Configure this time no error message was there. Clicked Generate. A CodeLite Workspace was generated in target directory D:\opencv\build\MinGW

  2. Opened that Workspace with CodeLite IDE. Started to build the project. And at 62% it showed error messages and stopped building.

[ 60%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/dynamic.cpp.obj [ 61%] Built target opencv_annotation [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast_score.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/feature2d.cpp.obj [ 61%] Built target opencv_visualisation mingw32-make.exe[1]: * [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2 mingw32-make.exe[1]: Waiting for unfinished jobs.... CMakeFiles\Makefile2:5379: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/all' failed [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/AKAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/KAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/fed.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/nldiffusion_functions.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.obj mingw32-make.exe[1]: [modules/objdetect/CMakeFiles/opencv_objdetect.dir/all] Error 2 CMakeFiles\Makefile2:4649: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/all' failed [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/mser.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.obj [ 62%] Linking CXX shared library ....\bin\libopencv_features2d320.dll mingw32-make.exe: * [all] Error 2 [ 62%] Built target opencv_features2d Makefile:161: recipe for target 'all' failed ====1 errors, 11 warnings, total time: 00:04:05 seconds====

I also tried the solution proposed in this question. But no luck !!!

Error: CodeLite

Now my question is did I do any mistake? And how to solve this?

My ultimate objective is to use CodeLite IDE to make OpenCV programs. I use CodeLite on my Ubuntu machine. That works great. But windows is needed this time. I know visual studio can be used. But that's not an option for me. [I also tried with Code:Blocks-MinGW Makefiles and only MinGW Makefiles. Those also started building and then showed similar errors]

OpenCV 3.2.0 installation error with Cmake and CodeLite IDE

I am trying to build OpenCV binaries for MinGW with CodeLite IDE in Windows 10. I followed the following steps:

  1. Downloaded OpenCV 3.2.0 self-extracting archive from the official website. And extracted in C:/opencv
  2. Downloaded and installed MinGW 3.2.0 (ensured by running command gcc --version
  3. Have installed CodeLite IDE and MinGW was configured as compiler (ensured by running C++ test programs)
  4. Downloaded and installed Cmake3.10.1. Launched Cmake-gui and tried to build the binaries into D:/opencv/build/MinGW. Clicked on configure. Specified CodeLite - MinGW Makefile as the generator of the project. After sometimes I get an error saying Error in configuration process, project files may be invalid

    1. Again clicked on Configure this time no error message was there. Clicked Generate. A CodeLite Workspace was generated in target directory D:\opencv\build\MinGW

    2. Opened that Workspace with CodeLite IDE. Started to build the project. And at 62% it showed error messages and stopped building.

[ 60%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/dynamic.cpp.obj [ 61%] Built target opencv_annotation [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast_score.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/feature2d.cpp.obj [ 61%] Built target opencv_visualisation mingw32-make.exe[1]: * [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2 mingw32-make.exe[1]: Waiting for unfinished jobs.... CMakeFiles\Makefile2:5379: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/all' failed [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/AKAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/KAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/fed.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/nldiffusion_functions.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.obj mingw32-make.exe[1]: [modules/objdetect/CMakeFiles/opencv_objdetect.dir/all] Error 2 CMakeFiles\Makefile2:4649: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/all' failed [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/mser.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.obj [ 62%] Linking CXX shared library ....\bin\libopencv_features2d320.dll mingw32-make.exe: * [all] Error 2 [ 62%] Built target opencv_features2d Makefile:161: recipe for target 'all' failed ====1 errors, 11 warnings, total time: 00:04:05 seconds====

I also tried the solution proposed in this question. But no luck !!!

Now my question is did I do any mistake? And how to solve this?

My ultimate objective is to use CodeLite IDE to make OpenCV programs. I use CodeLite on my Ubuntu machine. That works great. But windows is needed this time. I know visual studio can be used. But that's not an option for me. [I also tried with Code:Blocks-MinGW Makefiles and only MinGW Makefiles. Those also started building and then showed similar errors]

OpenCV 3.2.0 installation error with Cmake and CodeLite IDE

I am trying to build OpenCV binaries for MinGW with CodeLite IDE in Windows 10. I followed the following steps:

  1. Downloaded OpenCV 3.2.0 self-extracting archive from the official website. And extracted in C:/opencv
  2. Downloaded and installed MinGW 3.2.06.3.0 (ensured by running command gcc --version
  3. Have installed CodeLite IDE and MinGW was configured as compiler (ensured by running C++ test programs)
  4. Downloaded and installed Cmake3.10.1. Launched Cmake-gui and tried to build the binaries into D:/opencv/build/MinGW. Clicked on configure. Specified CodeLite - MinGW Makefile as the generator of the project. After sometimes I get an error saying Error in configuration process, project files may be invalid

    1. Again clicked on Configure this time no error message was there. Clicked Generate. A CodeLite Workspace was generated in target directory D:\opencv\build\MinGW

    2. Opened that Workspace with CodeLite IDE. Started to build the project. And at 62% it showed error messages and stopped building.

    [ 60%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/dynamic.cpp.obj [ 61%] Built target opencv_annotation [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast_score.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/feature2d.cpp.obj [ 61%] Built target opencv_visualisation mingw32-make.exe[1]: * [modules/ts/CMakeFiles/opencv_ts.dir/all] Error 2 mingw32-make.exe[1]: Waiting for unfinished jobs.... CMakeFiles\Makefile2:5379: recipe for target 'modules/ts/CMakeFiles/opencv_ts.dir/all' failed [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/AKAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/KAZEFeatures.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/fed.cpp.obj [ 61%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/nldiffusion_functions.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.obj mingw32-make.exe[1]: [modules/objdetect/CMakeFiles/opencv_objdetect.dir/all] Error 2 CMakeFiles\Makefile2:4649: recipe for target 'modules/objdetect/CMakeFiles/opencv_objdetect.dir/all' failed [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/mser.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.obj [ 62%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.obj [ 62%] Linking CXX shared library ....\bin\libopencv_features2d320.dll mingw32-make.exe: * [all] Error 2 [ 62%] Built target opencv_features2d Makefile:161: recipe for target 'all' failed ====1 errors, 11 warnings, total time: 00:04:05 seconds====

I also tried the solution proposed in this question. But no luck !!!

Now my question is did I do any mistake? And how to solve this?

My ultimate objective is to use CodeLite IDE to make OpenCV programs. I use CodeLite on my Ubuntu machine. That works great. But windows is needed this time. I know visual studio can be used. But that's not an option for me. [I also tried with Code:Blocks-MinGW Makefiles and only MinGW Makefiles. Those also started building and then showed similar errors]