rainers / cv2pdb

converter of DMD CodeView/DWARF debug information to PDB files
Artistic License 2.0
466 stars 110 forks source link

Build on Windows10 with VS2017 fails #54

Open StefanRickli opened 5 years ago

StefanRickli commented 5 years ago

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:

rainers commented 5 years ago

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.

StefanRickli commented 5 years ago

I guess I should remove the ancient cruft.

Or just hint to the new target in the documentation.