Building gems?

0

So I'm trying to build release gems so that I can use the advance settings in the project configurator because every time i go into advance settings it says that specific gems need to be build in order to have them added to the system entity editor.

But when I run "lmbr_waf.bat build_win_x64_vs2015_release -p gems" it just errors out.

Here's the error from the latest build:

Creating library e:\\Amazon\\Lumberyard\\1.9.0.1\\dev\\BinTemp\\win_x64_vs2015_release\\Code\\Launcher\\WindowsLauncher\\BlankGemProjectLauncher.lib and object e:\\Amazon\\Lumberyard\\1.9.0.1\\dev\\BinTemp\\win_x64_vs2015_release\\Code\\Launcher\\WindowsLauncher\\BlankGemProjectLauncher.exp
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CryFree
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CrySystemCrtRealloc
Main.cpp.3101.obj : error LNK2001: unresolved external symbol "struct SSystemGlobalEnvironment * gEnv" (?gEnv@@3PEAUSSystemGlobalEnvironment@@EA)
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CrySystemCrtFree
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CryMalloc
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CryGetMemSize
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CryRealloc
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CryGetIMemoryManagerInterface
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CrySystemCrtSize
Main.cpp.3101.obj : error LNK2001: unresolved external symbol CrySystemCrtMalloc
CryAction.cpp.23.obj : error LNK2001: unresolved external symbol CreateSystemInterface
StaticModules.cpp.3101.obj : error LNK2001: unresolved external symbol CreateModuleClass_LmbrCentral
e:\\Amazon\\Lumberyard\\1.9.0.1\\dev\\BinTemp\\win_x64_vs2015_release\\Code\\Launcher\\WindowsLauncher\\BlankGemProjectLauncher.exe : fatal error LNK1120: 12 unresolved externals

Project spec: Completely new blank project. No configuration except to allow regular compiling with linking a gem's library. (Apparently if you use a gem with an outside library, it doesnt automatically link to the launcher.exe when compiling. i.e. lib and libpath in wscript).

asked 7 years ago175 views
4 Answers
0
Accepted Answer

Hey @REDACTEDUSER

I don't think there is a -p Gems spec you can build for as far as I know so I'm not sure that command will work properly.

Creating a blank project and enabling a Gem should let you build by default by running the following command: lmbr_waf build_win_x64_vs2015_profile -p all

Hope that helps,

Thanks!

answered 7 years ago
profile picture
EXPERT
reviewed a year ago
0

Sorry for the troubles @REDACTEDUSER

answered 7 years ago
0

-p game is enough for gems at least the non editor only ones.Editor ones requires "all" or a change in the build system configuration that let them compile with "game".

answered 7 years ago
0

yep, that worked. though it still throws up the error even though the gem is built... it's wierd...

answered 7 years ago

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