About Monkey 2 › Forums › Monkey 2 Development › Can't build with MSVC2017
This topic contains 5 replies, has 3 voices, and was last updated by 
 Mark Sibly
 9 months, 1 week ago.
- 
		AuthorPosts
 - 
		
			
				
July 5, 2018 at 5:36 pm #14993
Building with MSVC2017 always worked for me perfectly, normally I would double click the rebuildall2go.bat and it would start the process.
The last week I did some updates to Visual Studio and now it can’t build, this time I event tried running the script from “Developer Command Prompt” – just in case it would help.
output from command prompt
1234567Build error: System command failed:cl -c -EHs -W0 -MT -utf-8 -bigobj -O2 -DNDEBUG -I"D:/Programming/monkey2/modules/" -I"D:/Programming/monkey2/modules/monkey/native" -showIncludes -Fo"D:/Programming/monkey2/modules/monkey/monkey.buildv1.1.09/windows_release_msvc_x64/build/monkey_0monkey.cpp.obj" "D:/Programming/monkey2/modules/monkey/monkey.buildv1.1.09/windows_release_msvc_x64/src/monkey_monkey.cpp" >tmp/stdout1.txtoutput from stdout1.txt:
INI123456monkey_monkey.cppNote: including file: D:/Programming/monkey2/modules/monkey/monkey.buildv1.1.09/windows_release_msvc_x64/include/monkey_monkey.hNote: including file: D:/Programming/monkey2/modules/monkey/native\bbmonkey.hNote: including file: d:\programming\monkey2\modules\monkey\native\bbstd.hd:\programming\monkey2\modules\monkey\native\bbstd.h(9): fatal error C1083: Cannot open include file: 'new': No such file or directoryPerhaps if this is a dumb error (due to some mis-configuration) I might try to setup my OS from scratch again.
July 6, 2018 at 2:21 pm #15000Don´t know if thats the reason but in env_windows.txt i change always this
MX2_MSVC_TOOLS_DIR=${MX2_MSVC_DIR}\Tools\MSVC\14.14.26428
to the correct version
July 6, 2018 at 5:02 pm #15001Alright thanks, now the building started nicely.
These are the correct settings:
123456789MX2_USE_MSVC=1MX2_ARCH_WINDOWS=x64'WAS: MX2_MSVC_TOOLS_DIR=${MX2_MSVC_DIR}\Tools\MSVC\14.13.26128MX2_MSVC_TOOLS_DIR=${MX2_MSVC_DIR}\Tools\MSVC\14.14.26428'WAS: MX2_WINDOWS_KIT=10.0.16299.0MX2_WINDOWS_KIT=10.0.17134.0July 9, 2018 at 9:48 pm #15019Hezkore promised to do me an autodetect for this!
July 9, 2018 at 10:07 pm #15020Thats only a few lines.Not to much work for us
Btw. anyway i have to change
Monkey1MX2_MSVC_DIR=${ProgramFiles(x86)}\Microsoft Visual Studio\2017\Community\VCto
Monkey1MX2_MSVC_DIR=${ProgramFiles(x86)}\Microsoft Visual Studio\2017\Enterprise\VCJuly 9, 2018 at 10:08 pm #15021…and no doubt it’ll all change one day not too far off anyway…
 - 
		AuthorPosts
 
You must be logged in to reply to this topic.