compilation error vcxproj [closed]

asked 2018-12-26 03:15:55 -0600

peidor gravatar image

updated 2018-12-28 12:25:26 -0600

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 ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by LBerger
close date 2018-12-28 15:42:09.736638

Comments

I can compiled opencv 4.01 using vs2015 win 64. Can you post cmake oitput?

LBerger gravatar imageLBerger ( 2018-12-26 10:39:19 -0600 )edit

cmake full output copied in original post. apologies for the format. I tried to attach a text file

peidor gravatar imagepeidor ( 2018-12-28 12:27:22 -0600 )edit

It is not cmakeoutput log. You can try to disable gapi module

LBerger gravatar imageLBerger ( 2018-12-28 12:34:39 -0600 )edit

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

berak gravatar imageberak ( 2018-12-28 12:58:29 -0600 )edit
1

that worked! thanks a lot for the help. Build succeeded.

peidor gravatar imagepeidor ( 2018-12-28 15:28:22 -0600 )edit