Author Topic: an questions about compiling of the glest 3.22,VSS 2008 And XP  (Read 2482 times)

sunding

  • Guest
Project files:http://glest.codemonger.org/files/glest-vc2008proj.tgz
DEPS:http://glest.codemonger.org/files/win32-glest-deps.rar
3.22 Source:http://sourceforge.net/project/showfiles.php?group_id=127297
IDE:MSVS2008 TEAM
OS:MS WIN XP

i got the following errors.
Code: [Select]
1 fatal error C1083: “.\type_instances\effect.cpp”: No such file or directory c1xx game
2 fatal error C1083: ".\types\effect_type.cpp”: No such file or directory c1xx game
3 fatal error C1083: ".\types\unit_stats_base.cpp”: No such file or directory c1xx game
4 error BK1506 : “..\..\build\Debug\game\effect.sbr”: No such file or directory BSCMAKE game

but,i don't find these files in 3.2.2.
i search with google,i find,these files is one of the project(glestadv-src-0.2.11).
i want know,is't these files drop in the project(3.2.2),or other?

who can tell me?

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Project files:http://glest.codemonger.org/files/glest-vc2008proj.tgz
DEPS:http://glest.codemonger.org/files/win32-glest-deps.rar
3.22 Source:http://sourceforge.net/project/showfiles.php?group_id=127297
...
but,i don't find these files in 3.2.2.
i search with google,i find,these files is one of the project(glestadv-src-0.2.11).
i want know,is't these files drop in the project(3.2.2),or other?

who can tell me?
The project files (and deps) you downloaded are for the Glest Advanced Engine (GAE), not Glest 3.22.

So you can either get the GAE source and work with that or build your own project files for Glest 3.22.

Glest Advanced Engine - Code Monkey

Timeline | Downloads

sunding

  • Guest
Project files:http://glest.codemonger.org/files/glest-vc2008proj.tgz
DEPS:http://glest.codemonger.org/files/win32-glest-deps.rar
3.22 Source:http://sourceforge.net/project/showfiles.php?group_id=127297
...
but,i don't find these files in 3.2.2.
i search with google,i find,these files is one of the project(glestadv-src-0.2.11).
i want know,is't these files drop in the project(3.2.2),or other?

who can tell me?
The project files (and deps) you downloaded are for the Glest Advanced Engine (GAE), not Glest 3.22.

So you can either get the GAE source and work with that or build your own project files for Glest 3.22.


thanks,i try to do build owen project files for glest 3.22.
but i don't find "deps" for glest 3.22.
so,i use that deps for gae!
i got these list of error! can't i build glest 3.22 with "deps" for gae?
or,where i find correct deps for glest 3.22?

Code: [Select]
error 1382 error LNK2001:  __extensionProcs renderer.obj game
error 1383 error LNK2001:  __extensionProcs libglest.lib game
error 1384 error LNK2019:  __extensionProcs, "public: virtual void __thiscall Shared::Graphics::Gl::Texture1DGl::init(enum Shared::Graphics::Texture::Filter,int)" (?init@Texture1DGl@Gl@Graphics@Shared@@UAEXW4Filter@Texture@34@H@Z) libglest.lib game
error 1385 error LNK2001:  __extensionProcs libglest.lib game
error 1386 error LNK2019:  _MiniDumpWriteDump@28, "private: static long __stdcall Shared::Platform::PlatformExceptionHandler::handler(struct _EXCEPTION_POINTERS *)" (?handler@PlatformExceptionHandler@Platform@Shared@@CGJPAU_EXCEPTION_POINTERS@@@Z) libglest.lib game
error 1387 error LNK2019:  _luaL_openlibs, "public: __thiscall Shared::Lua::LuaScript::LuaScript(void)" (??0LuaScript@Lua@Shared@@QAE@XZ) libglest.lib game
error 1388 error LNK2019:  _luaL_newstate, "public: __thiscall Shared::Lua::LuaScript::LuaScript(void)" (??0LuaScript@Lua@Shared@@QAE@XZ) libglest.lib game
error 1389 error LNK2019:  _lua_close, "public: __thiscall Shared::Lua::LuaScript::~LuaScript(void)" (??1LuaScript@Lua@Shared@@QAE@XZ) libglest.lib game
error 1390 error LNK2019:  _lua_pcall, "public: void __thiscall Shared::Lua::LuaScript::loadCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadCode@LuaScript@Lua@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) libglest.lib game
error 1391 error LNK2019:  _luaL_loadbuffer, "public: void __thiscall Shared::Lua::LuaScript::loadCode(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?loadCode@LuaScript@Lua@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z) libglest.lib game
error 1392 error LNK2019:  _lua_getfield, "public: void __thiscall Shared::Lua::LuaScript::beginCall(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?beginCall@LuaScript@Lua@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1393 error LNK2019:  _lua_setfield, "public: void __thiscall Shared::Lua::LuaScript::registerFunction(int (__cdecl*)(struct lua_State *),class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?registerFunction@LuaScript@Lua@Shared@@QAEXP6AHPAUlua_State@@@ZABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1394 error LNK2019:  _lua_pushcclosure, "public: void __thiscall Shared::Lua::LuaScript::registerFunction(int (__cdecl*)(struct lua_State *),class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?registerFunction@LuaScript@Lua@Shared@@QAEXP6AHPAUlua_State@@@ZABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1395 error LNK2019:  _luaL_checklstring, "private: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Shared::Lua::LuaScript::errorToString(int)" (?errorToString@LuaScript@Lua@Shared@@AAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) libglest.lib game
error 1396 error LNK2019:  _luaL_checkinteger, "public: int __thiscall Shared::Lua::LuaArguments::getInt(int)const " (?getInt@LuaArguments@Lua@Shared@@QBEHH@Z) libglest.lib game
error 1397 error LNK2019:  _lua_isnumber, "public: int __thiscall Shared::Lua::LuaArguments::getInt(int)const " (?getInt@LuaArguments@Lua@Shared@@QBEHH@Z) libglest.lib game
error 1398 error LNK2019:  _lua_isstring, "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall Shared::Lua::LuaArguments::getString(int)const " (?getString@LuaArguments@Lua@Shared@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) libglest.lib game
error 1399 error LNK2019:  _lua_settop, "public: class Shared::Graphics::Vec2<int> __thiscall Shared::Lua::LuaArguments::getVec2i(int)const " (?getVec2i@LuaArguments@Lua@Shared@@QBE?AV?$Vec2@H@Graphics@3@H@Z) libglest.lib game
error 1400 error LNK2019:  _lua_rawgeti, "public: class Shared::Graphics::Vec2<int> __thiscall Shared::Lua::LuaArguments::getVec2i(int)const " (?getVec2i@LuaArguments@Lua@Shared@@QBE?AV?$Vec2@H@Graphics@3@H@Z) libglest.lib game
error 1401 error LNK2019:  _lua_objlen, "public: class Shared::Graphics::Vec2<int> __thiscall Shared::Lua::LuaArguments::getVec2i(int)const " (?getVec2i@LuaArguments@Lua@Shared@@QBE?AV?$Vec2@H@Graphics@3@H@Z) libglest.lib game
error 1402 error LNK2019:  _lua_type, "public: class Shared::Graphics::Vec2<int> __thiscall Shared::Lua::LuaArguments::getVec2i(int)const " (?getVec2i@LuaArguments@Lua@Shared@@QBE?AV?$Vec2@H@Graphics@3@H@Z) libglest.lib game
error 1403 error LNK2019:  _lua_pushinteger, "public: void __thiscall Shared::Lua::LuaArguments::returnInt(int)" (?returnInt@LuaArguments@Lua@Shared@@QAEXH@Z) libglest.lib game
error 1404 error LNK2019:  _lua_pushstring, "public: void __thiscall Shared::Lua::LuaArguments::returnString(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?returnString@LuaArguments@Lua@Shared@@QAEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1405 error LNK2019:  _lua_rawseti, "public: void __thiscall Shared::Lua::LuaArguments::returnVec2i(class Shared::Graphics::Vec2<int> const &)" (?returnVec2i@LuaArguments@Lua@Shared@@QAEXABV?$Vec2@H@Graphics@3@@Z) libglest.lib game
error 1406 error LNK2019:  _lua_pushnumber, "public: void __thiscall Shared::Lua::LuaArguments::returnVec2i(class Shared::Graphics::Vec2<int> const &)" (?returnVec2i@LuaArguments@Lua@Shared@@QAEXABV?$Vec2@H@Graphics@3@@Z) libglest.lib game
error 1407 error LNK2019:  _lua_createtable, "public: void __thiscall Shared::Lua::LuaArguments::returnVec2i(class Shared::Graphics::Vec2<int> const &)" (?returnVec2i@LuaArguments@Lua@Shared@@QAEXABV?$Vec2@H@Graphics@3@@Z) libglest.lib game
error 1408 error LNK2019:  _luaL_checknumber, "private: void __thiscall Shared::Lua::LuaArguments::throwLuaError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?throwLuaError@LuaArguments@Lua@Shared@@ABEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1409 error LNK2019:  _lua_gettop, "private: void __thiscall Shared::Lua::LuaArguments::throwLuaError(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?throwLuaError@LuaArguments@Lua@Shared@@ABEXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) libglest.lib game
error 1410 error LNK2019:  _WinMain@16, ___tmainCRTStartup MSVCRTD.lib game
error 1411 fatal error LNK1120: 26
d:\Projects\C++\source\Glest\glest_game\source\build\Debug\game\game.exe game


sunding

  • Guest
my ide not is english version,so i replace these chars!

that error means:
Unable to resolve external symbols  xxxx The symbols in the function xxxxxxxxxx Was quoted
26 can not resolve the external command

silnarm

  • GAE Team
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Looks like the problems are all with linking to the shared glest lib. You'll need to set up two projects, one for the 'game', containing everything from the namespace 'Glest::Game' and outputting an executable, and one containing everything from the namespace 'Shared' outputting a static library.

Add the shared lib as a dependency the game project.

Viola.... maybe.

Good luck!
Glest Advanced Engine - Code Monkey

Timeline | Downloads

Yggdrasil

  • GAE Team
  • Ornithopter
  • ********
  • Posts: 408
    • View Profile
can't i build glest 3.22 with "deps" for gae?
or,where i find correct deps for glest 3.22?
First: I never built GAE, so i don't really know all the differences.

glest 3.2.x includes scripting with lua, so you need lua 5.1. This isn't merged into GAE as far as i know.
I somewhere also read about changing the XML library. So GAE might use a different than glest. glest needs xerces-c 2.8 (3.0 doesn't work).