Compiling GameSDK legacy project

0

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 ?

asked 7 years ago202 views
4 Answers
0
Accepted Answer

To anyone having this issue, you need to build the solution using the [All] profile (or debug, release... depending) and not the [Game] profile solution configuration in Visual studio.

answered 7 years ago
0

Hi @REDACTEDUSER

I'm sorry to hear the sample isn't building for you in 1.9 and we have created an internal issue to look into this. It is not recommended to use the Legacy Sample Project as a starting point for a new game and has a number of limitations outlined here:

http://docs.aws.amazon.com/lumberyard/latest/userguide/sample-project-legacy.html

Was there a specific feature in the legacy project you wanted to use in a game project?

answered 7 years ago
0

Hi @REDACTEDUSER

Thank you for the heads up.

I am aware that the legacy sample project is meant to be deprecated but I'm looking to port a project done using the GameSDK project from cryengine to lumberyard. Even if in the long run I will have to switch every gameobjectextension to your new component system, I'm looking into making a quick and "dirty" migration first using the legacy sample in order to have the project compiling before starting to tackle the gameobjectextension->component conversion.

answered 7 years ago
0

After a few more tests, I can confirm this is also happening when compiling with visual studio 2015 on another computer (as mentioned above, i tried using both lumberyard 1.10 & 1.9.0.2).

answered 7 years ago

This post is closed: Adding new answers, comments, and votes is disabled.