Open TheEnbyWitch opened 4 years ago
I've never tried this with 64bit (amd64/x86_64/x64 - yes, everyone who made up the alternative names to amd64 should be shot).
Anyway, make sure you have MFC installed in the right bitness I also suggest using cmake-gui instead of cmake on the commandline, that way you can select the target VS version and the target architecture etc by clicking (setting DHEWM3LIBS is a bit annoying then, you gotta use the [+ Add Entry] button)
Already have it installed. Using the CMake GUI doesn't change much though.
Weird - this did work when I tried it a while ago, also with VS2017.. Does it work if you build as 32bit (with adjusted DHEWM3LIBS path of course)?
Building as 32-bit doesn't work either, same error :/
Do you also have latest CMake?
(in case the find_package(MFC)
in your version is broken for some reason)
Updating CMake didnt work either.
I still think it might be CMake related though, but I have no idea what to do to fix it.
I'll try to reproduce it later
Pretty sure it's cmake related, this error message happens if find_package(MFC)
failed - I don't think there's much my cmake file could do wrong at that point
I couldn't reproduce it :-/ I even updated VS (it says "Version 15.9.19" now) and CMake - it works for both Win32 and x64.
Can you try setting Options -> Debug Output in cmake-gui? I get the following output when it looks for MFC then:
what the hell
Determining if the include file pthread.h exists failed with the following output:
Change Dir: X:/Games/dhewm3/neo/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe cmTC_a93fe.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I"X:\Games\dhewm3-libs\x86_64-w64-mingw32\include" /I"X:\Source\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_a93fe.dir\Debug\\" /Fd"cmTC_a93fe.dir\Debug\vc141.pdb" /Gd /TC /analyze- /errorReport:queue X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\CheckIncludeFile.c
CheckIncludeFile.c
X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\cmTC_a93fe.vcxproj]
Determining if MFC exists failed with the following output:
Change Dir: X:/Games/dhewm3/neo/CMakeFiles/CMakeTmp
Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/MSBuild/15.0/Bin/MSBuild.exe cmTC_06e61.vcxproj /p:Configuration=Debug /p:Platform=Win32 /p:VisualStudioVersion=15.0 /v:m
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27024.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.
cl /c /I"X:\Source\vcpkg\installed\x86-windows\include" /Zi /W3 /WX- /diagnostics:classic /Od /Ob0 /Oy- /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cmTC_06e61.dir\Debug\\" /Fd"cmTC_06e61.dir\Debug\vc141.pdb" /Gd /TP /analyze- /errorReport:queue X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\CheckIncludeFile.cxx
CheckIncludeFile.cxx
X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\CheckIncludeFile.cxx(1): fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory [X:\Games\dhewm3\neo\CMakeFiles\CMakeTmp\cmTC_06e61.vcxproj]
For the record, I have MFC installed.