Hi! I usually write in about strictly coding issues, but lately I have been challenged in the area of CMake, a place I have never been. Basically I am trying to install OpenCV for Eclipse IDE. My due diligence on this problem has included VS binaries, and I am reluctant to move away from Eclipse to VS for several reasons. So, I started the installation with CMake and I get immediate errors that I don't understand getting, as I usually stick tight to the tutorial:
Initial recommended steps:
Requirements :
1 2 3 4 5 6 7 8 9 10 11 12
|
Download OpenCV source from github repo (extract it to a folder we will name opencv_src_folder)
Download and install MinGW (also add /bin folder to system path)
Download and install CMake
Steps :
Open CMake-gui
set src folder as opencv_src_folder
set build folder as opencv_src_folder/Mingw_build/
Hit configure and choose Eclipse CDT4 - MinGW MakeFile then next.
if configure successful , hit generate.
|
That's as far as I ever get -- incomplete config
Exit 1:
CMake Error at CMakeLists.txt:117 (project):
Failed to run MSBuild command:
C:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe
to get the value of VCTargetsPath:
Microsoft (R) Build Engine version 4.0.30319.34209
[Microsoft .NET Framework, version 4.0.30319.34209]
Copyright (C) Microsoft Corporation. All rights reserved.
Build started 1/30/2018 5:32:16 PM.
Project "C:\opencv\new_build\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" on node 1 (default targets).
C:\opencv\new_build\CMakeFiles\3.10.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
Done Building Project "C:\opencv\new_build\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" (default targets) -- FAILED.
Build FAILED.
"C:\opencv\new_build\CMakeFiles\3.10.2\VCTargetsPath.vcxproj" (default target) (1) ->
C:\opencv\new_build\CMakeFiles\3.10.2\VCTargetsPath.vcxproj(14,2): error MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.16
Exit code: 1