Iris2.de

Iris2-Forum
It is currently Sat Oct 24, 2020 6:19 pm

All times are UTC




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sat Sep 05, 2009 6:41 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
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?

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 7:58 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
added #include <cstdio> to lugre/include/lugre_robstring.h, which fixed the issue.

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 05, 2009 8:03 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
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

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 07, 2009 10:08 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
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\


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 07, 2009 10:11 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
SiENcE wrote:
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\
What is it that I have to add?

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 07, 2009 10:53 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
you have to add it to your premake.
Code:
gLugreLibList = {
   -- "cadune_tree",
   -- "paged_geometry",
   "md5",
   "sqlite",      -- add it there.
   -- "caelum",
}


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 08, 2009 7:26 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
SiENcE wrote:
you have to add it to your premake.
Code:
gLugreLibList = {
   -- "cadune_tree",
   -- "paged_geometry",
   "md5",
   "sqlite",      -- add it there.
   -- "caelum",
}
I am not sure where to put it in the premakelinux.sh.

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 09, 2009 2:23 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Put it in trunk/lugre/premake.lua.dist


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 09, 2009 2:45 pm 
Offline
User avatar

Joined: Tue Oct 28, 2008 3:40 am
Posts: 25
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: `} '

_________________
cya
Cr0t


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 10, 2009 8:55 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group