Hi,
I've been trying to compile the GameSDK legacy project using Visual Studio 2013 but I get the following error:
[...]\dev\code\cryengine\crycommon\CryFixedString.h(29) : fatal error C1083: Cannot open include file: 'AzCore/base.h': No such file or directory
I've setup the project using the setup assistant, setting GameSDK as the default project.
Then I ran lumberyard waf using:
[...]dev>lmbr_waf configure
I then tried to build the game project in profile x64 using both Visual studio 2013 and waf with the following command:
[...]\dev>lmbr_waf build_win_x64_vs2013_profile -p game
Both results in the following error (please tell me if you need the complete build log) :
[ 766/1498] winrc (win_x64_vs2013|profile): BinTemp\win_x64_vs2013_profile\Code\GameSDK\GameDll\GameSDK_rc\GameSDK.auto_gen.rc -> BinTemp\win_x64_vs2013_profile\Code\GameSDK\GameDll\GameSDK_rc\GameSDK.auto_gen.109.GameSDK.res
Main.cpp
[...]\dev\code\cryengine\crycommon\CryFixedString.h(29) : fatal error C1083: Cannot open include file: 'AzCore/base.h': No such file or directory
ReplicaUtils.cpp.14.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
ReplicaUtils.cpp.13.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
Build failed
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
Compilation failed - File: 'Main.cpp.5101.obj', Module: 'GameSDKWindowsLauncher', Configuration: 'win_x64_vs2013|profile', error code 2
Input Files: '[...]\dev\Code\Launcher\WindowsLauncher\Main.cpp'
Output Files: '[...]\dev\BinTemp\win_x64_vs2013_profile\Code\Launcher\WindowsLauncher\Main.cpp.5101.obj'
Command: 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64\CL.exe /FS /Zo /bigobj /nologo /W3 /WX /MP /Gy /GF /Gm- /fp:fast /Zc:wchar_t /Zc:forScope /Gd /wd4530 /Ox /Ob2 /Ot /Oi /Oy- /showIncludes /MD /Z7 /GR- /I[...]\dev\BinTemp\win_x64_vs2013_profile\Code\Launcher\WindowsLauncher /I[...]\dev\Code\Launcher\WindowsLauncher /I[...]\dev\Code\SDKs\boost /I[...]\dev\Code\CryEngine\CryCommon /I[...]\dev\Gems\LmbrCentral\Code\include /I[...]\dev\Gems\LyShine\Code\Include /IC:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE /IC:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\ATLMFC\INCLUDE /IC:\Program Files (x86)\Windows Kits\8.1\include\shared /IC:\Program Files (x86)\Windows Kits\8.1\include\um /IC:\Program Files (x86)\Windows Kits\8.1\include\winrt /D_WIN32 /D_WIN64 /DCODE_BASE_FOLDER="[...]/dev/Code/" /D_PROFILE /DPROFILE /D_ITERATOR_DEBUG_LEVEL=0 /DBINFOLDER_NAME="Bin64vc120" /DPLATFORM_SUPPORTS_AWS_NATIVE_SDK /DUSE_WINDOWS_DLL_SEMANTICS /DLY_BUILD=462636 /D_MT /D_DLL /DAZ_DEBUG_BUILD /DLY_GAMEFOLDER="GameSDK" /DLY_GAMEDLL="GameSDK" /DEXE_VERSION_INFO_0=1 /DEXE_VERSION_INFO_1=9 /DEXE_VERSION_INFO_2=0 /DEXE_VERSION_INFO_3=2 [...]\dev\Code\Launcher\WindowsLauncher\Main.cpp /c /Fo [...]\dev\BinTemp\win_x64_vs2013_profile\Code\Launcher\WindowsLauncher\Main.cpp.5101.obj'
Output:
Main.cpp
[...]\dev\code\cryengine\crycommon\CryFixedString.h(29) : fatal error C1083: Cannot open include file: 'AzCore/base.h': No such file or directory
<++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++>
I tried building using both lumberyard 1.10 and 1.9 (as this the last officially supported version mentioned on GameSDK documentation page) but both fail.
I also looked at the solution proposed by C4PT4IN_C4NUCK_LMBR in this subject but my msvs_version was already set to 12.
base.h file is present at [...]\dev\Code\Framework\AzCore\AzCore so I guess there might be some project include/dependency wrong somewhere ?