compilation error vcxproj [closed]
compilation of opencv401 now is down to only 2 errors I am unable to solve without removing the headers completely. please advise on below two issues. CUDA is disabled
Win 10 Cmake 3.13.2 VS2015
Microsoft (R) Build Engine version 14.0.24730.2 Copyright (C) Microsoft Corporation. All rights reserved.
Build started 28-12-2018 19:11:26. The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\INSTALL.vcxproj" on node 1 (default targets). Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\INSTALL.vcxproj" (1) is building "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\ZERO_CHECK.vcxproj" (2) on node 1 (default targets). InitializeBuildStatus: Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: All outputs are up-to-date. FinalizeBuildStatus: Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild". Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate". Done Building Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\ZERO_CHECK.vcxproj" (default targets). The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. The target "BeforeGenerateProjectPriFile" listed in a BeforeTargets attribute at "C:\Program Files (x86)\MSBuild\Microsoft\NuGet\Microsoft.NuGet.targets (186,61)" does not exist in the project, and will be ignored. Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\INSTALL.vcxproj" (1) is building "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\ALL_BUILD.vcxproj" (3) on node 1 (default targets). Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\ALL_BUILD.vcxproj" (3) is building "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\3rdparty\openexr\IlmImf.vcxproj" (4) on node 1 (default targets). Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\3rdparty\openexr\IlmImf.vcxproj" (4) is building "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\3rdparty\zlib\zlib.vcxproj" (5) on node 1 (default targets). InitializeBuildStatus: Creating "zlib.dir\Release\zlib.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. CustomBuild: All outputs are up-to-date. ClCompile: All outputs are up-to-date. Lib: All outputs are up-to-date. zlib.vcxproj -> D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\3rdparty\lib\Release\zlib.lib FinalizeBuildStatus: Deleting file "zlib.dir\Release\zlib.tlog\unsuccessfulbuild". Touching "zlib.dir\Release\zlib.tlog\zlib.lastbuildstate". Done Building Project "D:\Documenten\opencv-4.0.1\opencv-4.0.1\build\3rdparty\zlib\zlib.vcxproj" (default targets). InitializeBuildStatus: Creating "IlmImf.dir\Release\IlmImf.tlog ...
I can compiled opencv 4.01 using vs2015 win 64. Can you post cmake oitput?
cmake full output copied in original post. apologies for the format. I tried to attach a text file
It is not cmakeoutput log. You can try to disable gapi module
please do not use anything nuget related here, there's no support from opencv for this.
try again to build from a straight
git clone https://github.com/opencv/opencv
alternatively, disable the gapi module:
cmake -DBUILD_gapi=OFF
that worked! thanks a lot for the help. Build succeeded.