Installation experiences

Re: Installation experiences

Postby svenskmand » 24 Jan 2011, 15:14

I have pkg-config installed. It is when I want to build the binary and source packages inside of pbuilder (it is kind of a virtual Ubuntu install to determine dependencies) that I get the error, and it is shurely because I have done something wrong or am missing to do something, but I do not know what :S

So in other words it is not a compilation bug resulting from a normal compilation of the game on my system, but from me trying to package the game :S
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Installation experiences

Postby oln » 24 Jan 2011, 17:46

Adding pkg-config (and a bunch of other stuff) to build-dependencies worked, but we hit other problems after that.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby svenskmand » 24 Jan 2011, 21:25

oln {l Wrote}:Adding pkg-config (and a bunch of other stuff) to build-dependencies worked, but we hit other problems after that.

Oh yeah, forgot to say that. Thanks oln :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Installation experiences

Postby paul424 » 24 Jan 2012, 14:07

When building current from sources git clone git://opendungeons.git.sourceforge.net/ ... endungeons, I get :

LDFLAGS='-lpthread' make -j5
Linking CXX executable OpenDungeons.bin
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: CMakeFiles/OpenDungeons.bin.dir/source/Client.cpp.o: undefined reference to symbol 'sem_post@@GLIBC_2.1'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'sem_post@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [OpenDungeons.bin] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.bin.dir/all] Error 2
make: *** [all] Error 2


I thoguht its something with the pthread lib , but a few tricks I know failed. Please help me :D
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby oln » 24 Jan 2012, 16:51

I think you are right about the adding "-lpthread", though I think LDFLAGS gets overridden by cmake. I would guess there has been some change to glibc/gcc or something that requires explicit linking to pthreads.

I pushed a commit adding the commands for linking to pthreads in the cmake script, so try updating from git and see if that helps. (Make sure you are on the development branch.)
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby paul424 » 26 Jan 2012, 13:32

After upgrading from the devel branch, I got similar errors :

Linking CXX executable OpenDungeons.bin
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: CMakeFiles/OpenDungeons.bin.dir/source/Client.cpp.o: undefined reference to symbol 'sem_post@@GLIBC_2.1'
/usr/lib/gcc/i586-suse-linux/4.6/../../../../i586-suse-linux/bin/ld: note: 'sem_post@@GLIBC_2.1' is defined in DSO /lib/libpthread.so.0 so try adding it to the linker command line
/lib/libpthread.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [OpenDungeons.bin] Error 1
make[1]: *** [CMakeFiles/OpenDungeons.bin.dir/all] Error 2
make: *** [all] Error 2
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby oln » 26 Jan 2012, 15:04

Strange. It should link against pthread now.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby paul424 » 31 Jan 2012, 15:04

Can you show which line is responsible for linkage of pthreads under linux , here's the current CMakeLists.txt : http://dpaste.com/hold/695600/ . I see only explicit lines for Win32 system.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby oln » 31 Jan 2012, 17:44

Line 375 here, seems you haven't got the latest version from the repository.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby paul424 » 01 Feb 2012, 14:17

Ok Finally build the current branch.
Well there is one another problem , namely :
============================================
./OpenDungeon.bin
.....
Finished parsing scripts for resource group Sound
An exception has occurred: OGRE EXCEPTION(6:FileNotFoundException): Cannot locate resource GUIScheme.xsd in resource group General or any other group. in ResourceGroupManager::openResource at /home/abuild/rpmbuild/BUILD/ogre_src_v1-7-3/OgreMain/src/OgreResourceGroupManager.cpp (line 753)
AL lib: ALc.c:2325: exit(): closing 1 Device
AL lib: ALc.c:2247: alcCloseDevice(): destroying 1 Context(s)
AL lib: ALc.c:1848: alcDestroyContext(): deleting 14 Source(s)
AL lib: ALc.c:2257: alcCloseDevice(): deleting 16 Buffer(s)
============================================

I downloaded the media content by :
svn co https://opendungeons.svn.sourceforge.ne ... eons/media OpenDungeons


Here are the SVN logs :

A OpenDungeons/gui
A OpenDungeons/gui/ODLogo.imageset
A OpenDungeons/gui/OpenDungeons.layout
A OpenDungeons/gui/OpenDungeons.looknfeel
A OpenDungeons/gui/ODBackgrounds.imageset
A OpenDungeons/gui/OpenDungeonsIcons.png
A OpenDungeons/gui/bluehigh.ttf
A OpenDungeons/gui/OpenDungeons.png
A OpenDungeons/gui/ogrefonts.fontdef
A OpenDungeons/gui/OpenDungeonsSkin.scheme
A OpenDungeons/gui/OpenDungeonsIcons.imageset
A OpenDungeons/gui/OpenDungeons.imageset
A OpenDungeons/gui/FreeMono.ttf
A OpenDungeons/gui/ODLogo.png
A OpenDungeons/gui/ODBackgrounds.png
A OpenDungeons/gui/OpenDungeonsMainMenu.layout
A OpenDungeons/gui/bluehighway.font

thats all what goes into gui directory.

SO what I do wrong ?
regards
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby oln » 01 Feb 2012, 17:38

Hm, that file isn't used on my system, so I assume it depends on what XML parser CEGUI is compiled with. It is present in the CEGUI source package; http://sourceforge.net/projects/crayzed ... z/download. (In datafiles/XML_Schemas) So you could try to drop that in the gui folder and see if that works. (If it does I will add it to the svn repo.)
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby paul424 » 02 Feb 2012, 11:58

I had to copy paste the foloowing files :

Imageset.xsd
Font.xsd
Falagard.xsd
GUIScheme.xsd

BUt after all the Xerces parser crashes :

Finished parsing scripts for resource group Sound
Texture: _cegui_ogre_0: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: _cegui_ogre_1: Loading 1 faces(PF_A8B8G8R8,512x512x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,512x512x1.
Texture: _cegui_ogre_2: Loading 1 faces(PF_A8B8G8R8,785x144x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,785x144x1.
Texture: _cegui_ogre_3: Loading 1 faces(PF_A8B8G8R8,1250x694x1) with 0 generated mipmaps from Image. Internal format is PF_A8R8G8B8,1250x694x1.
CEGUI::FileIOException in file CEGUIXercesParser.cpp(107) : XercesParser::parseXMLFile - An error occurred at line nr. 3292 while parsing XML file 'OpenDungeons.looknfeel'. Additional information: attribute 'layoutOnwrite' is not declared for element 'PropertyDefinition'
terminate called after throwing an instance of 'CEGUI::FileIOException'
what(): CEGUI::FileIOException in file CEGUIXercesParser.cpp(107) : XercesParser::parseXMLFile - An error occurred at line nr. 3292 while parsing XML file 'OpenDungeons.looknfeel'. Additional information: attribute 'layoutOnwrite' is not declared for element 'PropertyDefinition'
Aborted

Thing is I use CEGUI in version CEGUI-0.7.5 - the one avaliable from the openSuse repos. SO what do we do now :D ?
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby oln » 02 Feb 2012, 16:20

The problem is that we've used CEGUI with a different XML parser (TinyXML) in the past which doesn't validate the xml files. This has resulted in some bugs in the XML files which the Xerces parser which is more strict is picking up. The problem here seems to be a misspelling, it should read layoutOnWrite. I haven't been able to work much on the project lately due to arm/shoulder problems, so I haven't had the chance to go through and fix these issues. (So if you can get it to run that would be really nice, then we could commit the changes to the repository.)
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby oln » 23 Feb 2012, 14:07

I fixed the XML errors and commited to svn and git. The game runs with the xerces parser on my machine now.
I got a std::bad_alloc exception after running the game for a short while, but I assume that's unrelated.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby svenskmand » 23 Feb 2012, 14:32

Nice work :)
Jamendo.com - The best music store on the net, uses CC licenses.
User avatar
svenskmand
OD Moderator
 
Posts: 1850
Joined: 09 Dec 2009, 00:07
Location: Denmark

Re: Installation experiences

Postby paul424 » 01 Apr 2012, 21:15

After disc crash and rebuilding whole thingie again from git branch development and svn I get those after compile and run :
*** Initializing OIS ***
*** FrameListener initialized ***
*** Initiliasing Console ***
*** Initialising script engine AngelScript ***
OpenDungeons.bin: /home/tom/opendungeons/OpenDungeons/dependencies/angelscript/angelscript/source/as_compiler.cpp:863: void asCCompiler::CompileStatementBlock(asCScriptNode*, bool, bool*, asCByteCode*): Assertion `tempVariables.GetLength() == 0' failed.
Aborted


And its not a April Fool's joke, sadly :(.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby StefanP.MUC » 02 Apr 2012, 07:33

Hmm, I have no idea what's the reason for that. For me everything works fine with the latest git, also when I do a total rebuild.

Did you do anything else than checking out and compiling?
StefanP.MUC
 

Re: Installation experiences

Postby paul424 » 02 Apr 2012, 09:19

uname -a
Linux linux-ex0a 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) x86_64 x86_64 x86_64 GNU/Linux

cat /proc/version
Linux version 3.1.9-1.4-desktop (geeko@buildhost) (gcc version 4.6.2 (SUSE Linux) ) #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4)


No idea what to post else .... the only modfication is SFMT library from unstable repo ( SUSE FACTORY ) + edit in plugin.cfg

PluginFolder=/usr/lib64/OGRE-1.7.4
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: Installation experiences

Postby StefanP.MUC » 02 Apr 2012, 12:21

Strange... It seems that the AS compiler is not able to compile the sripts for some reason (that's the error message suggesting). I have no idea why, however. AngelScript is in our repo and the scripts, too. So we should use the same versions of both, for me it's working fine. Really no idea where to look for the error...

Maybe someone else with Linux can check if that happens for him, too?
StefanP.MUC
 

Re: Installation experiences

Postby oln » 02 Apr 2012, 12:35

Doesn't happen for me (ubuntu 11.10).

uname -a
Linux oln-laptop 3.2.0-12.dmz.1-liquorix-amd64 #1 ZEN SMP PREEMPT Tue Mar 20 02:55:40 CDT 2012 x86_64 x86_64 x86_64 GNU/Linux

cat /proc/version
Linux version 3.2.0-12.dmz.1-liquorix-amd64 (Debian 3.2.0-16) (damentz@gmail.com) (gcc version 4.6.3 (Debian 4.6.3-1) ) #1 ZEN SMP PREEMPT Tue Mar 20 02:55:40 CDT 2012

gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

Have you tried simply recompiling?
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby oln » 03 Apr 2012, 11:52

I am getting the crash now as well, I didn't get it before because I hadn't put the scripts in the build folder so they never got compiled.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby oln » 03 Apr 2012, 12:36

Fixed the issue in the latest git.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby StefanP.MUC » 03 Apr 2012, 13:33

Nice. But I wonder why I never got this crash... I always run the game with the script files.
StefanP.MUC
 

Re: Installation experiences

Postby oln » 03 Apr 2012, 14:34

Could be compiler differences or optimisations, looking at what I had to change (found an old post with a similar problem with a const function with a const reference, but it's not needed here anyway.):
{l Code}: {l Select All Code}
-        inline const unsigned int& getMaxAIThreads() const {return maxAIThreads;}
-        inline void setMaxAIThreads(const unsigned int& maxThreads) {maxAIThreads = maxThreads;}
+        inline const unsigned int getMaxAIThreads() const {return maxAIThreads;}
+        inline void setMaxAIThreads(const unsigned int maxThreads) {maxAIThreads = maxThreads;}
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: Installation experiences

Postby StefanP.MUC » 03 Apr 2012, 15:32

Ah, yes, I remember. There are some left of this (const reference on primitive types) at a few places, I had this on my personal TODO list, but always forgot about it... :D
StefanP.MUC
 

Who is online

Users browsing this forum: No registered users and 1 guest

cron