cv2pdb
cv2pdb copied to clipboard
Build on Windows10 with VS2017 fails
I'm running VS2017 on Windows 10.
Here the build using nmake bin fails.
The following console output is from within the "x64 Native Tools Command Prompt for VS 2017":
C:\temp\cv2pdb>nmake bin
Microsoft (R) Program Maintenance Utility, Version 14.16.27027.1
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
if exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\Common7\IDE\VCExpress.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\Common7\IDE\VCExpress.exe" /Build Release src\cv2pdb.sln
if not exist "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\Common7\IDE\VCExpress.exe" "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\\Common7\IDE\devenv.exe" /Build Release src\cv2pdb.sln
NMAKE : fatal error U1077: "if": Rückgabe-Code "0x1"
Stop.
Running devenv /Build Release src\cv2pdb.sln directly stops as well because the solution needs an upgrade.
Workaround:
- Run
devenv src\cv2pdb.sln - Accept all "Unidirectional Upgrades"
- Select cv2pdb in the Project Explorer
- Go to Project Properties
- Change "Windows SDK Version" to 10.xxxx using the dropdown arrow
- Accept
- Right click cv2pdb in the Project Explorer, select build
You should use cv2pdb_vs12.sln. cv2pdb.sln is for VS2008. The makefile contains target cv2pdb_exe that uses the newer solution.
I guess I should remove the ancient cruft.
I guess I should remove the ancient cruft.
Or just hint to the new target in the documentation.