MegaGlest Forum
Archives (read only) => Vanilla Glest => Linux and other ports => Topic started by: titi on 30 May 2008, 22:41:58
-
Anyone knows what's needed to compile this ( the current svn version ) ?
I cannot find "lua_script.h" I only have lua.h( but thats different! ) ....
What do I have to install? ( Ubuntu Dapper )
( I know I have to patch some things manually in the Jamfile too, because I think my autoconf-script is too old )
-
I only have lua_script.h, and I don't have lua.hpp or lua.h. I have current svn(r154).
-
same problem here now...
It's probabaly not in the svn yet?
(lua.h is in your system when you have lua headers installed )
-
I installed lua and now it finds all headers after modifing Jamfile.
But it still has compiling errors: ‘class Shared::Lua::LuaArguments’ has no member named ‘returnVec2i’ in glest_game/game/script_manager.cpp.
I guess Linux users have to wait.
-
I too can't compile this new alpha
I had to add lua into Jamfile, in order to compiler find the lua_script.h
But now I am stuck:
In file included from shared_lib/sources/lua/lua_script.cpp:12:
shared_lib/sources/lua/lua_script.h:3:20: error: script.h: No such file or directory
shared_lib/sources/lua/lua_script.h:7:25: error: lua/src/lua.h: No such file or directory
shared_lib/sources/lua/lua_script.h:8:54: error: lua/src/lauxlib.h: No such file or directory
I think it needs few more files
-
These are the standard Lua headers, you will have to download lua from lua.org, and compile it as well.
-
Which version of lua do you use?
Before I had lua 5.0.
Now I compiled/installed 5.1.3 and now I get the following error (ubuntu 6.06):
C++ ./build/i686-pc-linux-gnu/optimize/glest_game/game/script_manager.o
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::setCameraPosition(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:271: Fehler: »class Shared::Lua::LuaArguments« hat kein Element namens »getVec2i«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::createUnit(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:280: Fehler: »class Shared::Lua::LuaArguments« hat kein Element namens »getVec2i«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::givePositionCommand(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:295: Fehler: »class Shared::Lua::LuaArguments« hat kein Element namens »getVec2i«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::getStartLocation(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:337: Fehler: »class Shared::Lua::LuaArguments« hat kein Element namens »returnVec2i«
glest_game/game/script_manager.cpp: In static member function »static int Glest::Game::ScriptManager::getUnitPosition(Shared::Lua::LuaHandle*)«:
glest_game/game/script_manager.cpp:344: Fehler: »class Shared::Lua::LuaArguments« hat kein Element namens »returnVec2i«
EDIT: I forgot the translation:
"Fehler"---error
"hat kein Element namens"---"has no element named"
-
I have lua 5.1 now
But there are several versions (http://http://www.lua.org/ftp/)
-
hm... maybe the version on the server doesn't have the latest shared lib, i will upload it as soon as i can... probably next week...
-
I downloaded them all (all lua versions) and searched for "returnVec2i", but it's not defined in any of the them!?
What is this "returnVec2i"?
-
a typo? might be return 'space' Vec2i
-
no, the function call is fine, it is a function to return a vector from C++ to a function called from LUA, the problem is that the function is in the shared lib, and the svn code is outdated, i will upload the code ASAP
-
I've uploaded the updated shared lib, it should compile now. Could you guys take a look?
-
I tried it yesterday but had no luck ( trouble with different lua versions in my system ;) ). But I only had linking problems ( due to the version trouble) no more compile problems! This evening I will try it again.
-
I managed to compile, but I had to modify build files. Also I had to add C standard library includes to some files(patch (http://http://jrepan.pri.ee/glest.patch)), because newer gcc(4.3.0) gives errors when they are missing.
Tutorials are not working. I just have castle and no resources. I have Lua version 5.1.3
-
I got it working! I replaced tutorial directory with http://www.glest.org/files/misc/glest_p ... alpha1.zip (http://www.glest.org/files/misc/glest_patch_3.2-alpha1.zip)
-
Did you use a shared lua lib or the static one ( which is the lua default )?
What I found http://lua-users.org/lists/lua-l/2006-10/msg00098.html (http://lua-users.org/lists/lua-l/2006-10/msg00098.html)
I don't know how to modify the jamfile to get it linked with a statically linked library.( liblua.a )
UPDATE: I got it working too!
I managed to compile ( linking was done manually!) ) it and it runs fine.
System: ubuntu 6.06 32 bit with lua 5.13(installed manually )
I had a first look at the tutorial and I have to say:
Good job! The Tutorial is fantastic ( for beginners )
This lua scripting will be very useful!
As I said, the linking was made manually, so
I still don't know how to modify the jam files to get a proper compiling result.
Anyone can help here?
-
I am using shared library. At least "ldd glest" says:
liblua.so => /usr/lib/liblua.so (0x00007f57fc384000)
EDIT: I made very ugly fix: I added -llua to SDL_LIBS in Jamconfig
-
I tried to fix the build files. so here is the patchfile for rev173:
http://http://www1.inf.tu-dresden.de/~s1445051/rev173_jambuildfiles.patch
use it with the patch command in the trunk directory:
$ patch -p0 <rev173_jambuildfiles.patch
Another fix is included to make rev173 compilable (look at top of the patchfile).
Please try and maybe improve it because i'm totally new to jam.
EDIT: ok, tutorials doesn't work. it crashs always after clicking (the last) ok :/