Iris2.de http://iris2.de/forum/ |
|
==== Building lugrelib ==== FAILS http://iris2.de/forum/viewtopic.php?f=16&t=1445 |
Page 1 of 1 |
Author: | Cr0t [ Sat Sep 05, 2009 6:41 pm ] |
Post subject: | ==== Building lugrelib ==== FAILS |
Code: ==== Building lugrelib ==== lugre_texatlas_L.cpp lugre_meshbuffer_L.cpp lugre_scripting.cpp lugre/src/lugre_scripting.cpp: In member function 'void Lugre::cScripting::Init()': lugre/src/lugre_scripting.cpp:371: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int' lugre_spritelist.cpp lugre_sound_L.cpp lugre_commondialog.cpp lugre/src/lugre_commondialog.cpp: In function 'bool Lugre::FileUniDialog(const std::string&, const std::string&, const std::string&, std::string&, bool)': lugre/src/lugre_commondialog.cpp:219: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result lugre/src/lugre_commondialog.cpp:221: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result lugre/src/lugre_commondialog.cpp:261: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result lugre_material_L.cpp lugre/src/lugre_spritelist.cpp: In member function 'virtual void Lugre::cRenderGroup2D::UpdateClip()': lugre/src/lugre_spritelist.cpp:99: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' lugre/src/lugre_spritelist.cpp: In member function 'virtual void Lugre::cSpriteList::UpdateClip()': lugre/src/lugre_spritelist.cpp:185: warning: format '%d' expects type 'int', but argument 2 has type 'size_t' lugre/src/lugre_spritelist.cpp: In member function 'virtual void Lugre::cRobRenderable2D::Render(Lugre::cRenderManager2D&, const Ogre::Vector3&)': lugre/src/lugre_spritelist.cpp:326: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int' lugre_robstring.cpp lugre_cadune_L.cpp lugre_rendertexture_L.cpp In file included from lugre/src/lugre_robstring.cpp:7: lugre/include/lugre_robstring.h: In function 'std::string Lugre::strprintf(const char*, ...)': lugre/include/lugre_robstring.h:46: error: 'vsnprintf' was not declared in this scope make[1]: *** [obj/Release/lugre_robstring.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [lugrelib] Error 2 Code: Linux amy 2.6.30-gentoo-r5 #1 SMP PREEMPT Sun Aug 16 00:16:30 PDT 2009 x86_64 Intel(R) Core(TM)2 Duo CPU E6850 @ 3.00GHz GenuineIntel GNU/Linux
Any ideas why it doesn't compile? |
Author: | Cr0t [ Sat Sep 05, 2009 7:58 pm ] |
Post subject: | |
added #include <cstdio> to lugre/include/lugre_robstring.h, which fixed the issue. |
Author: | Cr0t [ Sat Sep 05, 2009 8:03 pm ] |
Post subject: | |
Now I am getting... Code: data_font_L.cpp
data_hue.cpp grannyparser.cpp data_gump_L.cpp data_artmap.cpp data_groundblock_L.cpp ogremanualloader.cpp data_mapinfo.cpp pathsearch.cpp data_hue_L.cpp data_artmap_L.cpp ogremanualloader_L.cpp prefix.cpp Linking iris ./liblugrelib.a(lugre_scripting.o):(.rodata+0x28): undefined reference to `luaopen_sqlite3' collect2: ld returned 1 exit status make[1]: *** [bin/iris] Error 1 make: *** [iris] Error 2 |
Author: | SiENcE [ Mon Sep 07, 2009 10:08 pm ] |
Post subject: | |
you have to also add to your lugrelib: Lugre\trunk\lugre\lib\sqlite\include\ Lugre\trunk\lugre\lib\sqlite\src\ and you should also add: Lugre\trunk\lugre\lib\md5\src\ Lugre\trunk\lugre\lib\md5\include\ |
Author: | Cr0t [ Mon Sep 07, 2009 10:11 pm ] |
Post subject: | |
SiENcE wrote: you have to also add to your lugrelib: What is it that I have to add?
Lugre\trunk\lugre\lib\sqlite\include\ Lugre\trunk\lugre\lib\sqlite\src\ and you should also add: Lugre\trunk\lugre\lib\md5\src\ Lugre\trunk\lugre\lib\md5\include\ |
Author: | SiENcE [ Mon Sep 07, 2009 10:53 pm ] |
Post subject: | |
you have to add it to your premake. Code: gLugreLibList = {
-- "cadune_tree", -- "paged_geometry", "md5", "sqlite", -- add it there. -- "caelum", } |
Author: | Cr0t [ Tue Sep 08, 2009 7:26 pm ] |
Post subject: | |
SiENcE wrote: you have to add it to your premake. I am not sure where to put it in the premakelinux.sh.
Code: gLugreLibList = { -- "cadune_tree", -- "paged_geometry", "md5", "sqlite", -- add it there. -- "caelum", } |
Author: | SiENcE [ Wed Sep 09, 2009 2:23 pm ] |
Post subject: | |
Put it in trunk/lugre/premake.lua.dist |
Author: | Cr0t [ Wed Sep 09, 2009 2:45 pm ] |
Post subject: | |
SiENcE wrote: Put it in trunk/lugre/premake.lua.dist Code: -- list of easy libs inclusion (located in lugre/lib/NAME). this will add lugre/lib/NAME/src and lugre/lib/NAME/include. gLugreLibList = { -- "cadune_tree", -- "paged_geometry", "md5", "sqlite", -- "caelum", } Code: 07:37:59^cr0t@amy:~/Programs/iris2/stable_release > ./premakelinux.sh
sound: openal sound: fmod OIS platform: linux (lugre) AddLugreDeps: fmod in defines: true using /usr/include/fmodex as fmodex include path AddLugreDeps: fmod in defines: true using /usr/include/fmodex as fmodex include path Removing all project and intermediate files... 3 >>> disabled asserts (NDEBUG) sound: openal sound: fmod OIS platform: linux (lugre) AddLugreDeps: fmod in defines: true using /usr/include/fmodex as fmodex include path 2.8.10 AddLugreDeps: fmod in defines: true using /usr/include/fmodex as fmodex include path 2.8.10 Generating GNU makefiles: ...lugrelua ...lugreois ...md5lib ...caelumlib ...lugrelib ...iris ./premakelinux.sh: line 22: gLugreLibList: command not found ./premakelinux.sh: line 23: --: command not found ./premakelinux.sh: line 24: --: command not found ./premakelinux.sh: line 25: md5,: command not found ./premakelinux.sh: line 26: sqlite,: command not found ./premakelinux.sh: line 27: --: command not found ./premakelinux.sh: line 28: syntax error near unexpected token `}' ./premakelinux.sh: line 28: `} ' |
Author: | ghoulsblade [ Thu Sep 10, 2009 8:55 am ] |
Post subject: | |
hi ! please use the newest iris 2 sourcecode from svn, as it contains the latest bugfixes, available via install subversion svn co svn://iris.schattenkind.net/iris/trunk iris ./installdeps.ubuntu.sh to install dependencies ./premakelinux.sh to compile iris use ./makeclean.sh after config/lib changes you shouldn't have to modify anything for it to compile. (i'm on ubuntu 9.04, 32 bit, and it works) ./lugre/premake.lua.dist isn't used in iris, it's just an example for how to use lugre, but might not be up to date always. iris/premake.lua is the main file used to configure the build-system, but should work without modification. sqlite might not even be used in the sourcecode yet, it was just added as lib recently. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |