SVN won't build

SVN won't build

Postby MCMic » 27 May 2012, 09:18

Hello,

I updated git and svn and I can't build the game, I get this error:
/home/mcmic/dev/opendungeons/dependencies/angelscript/add_on/scriptstdstring/scriptstdstring.cpp:433:86: error: invalid static_cast from type ‘<unresolved overloaded function type>’ to type ‘bool (*)(const string&, const string&) {aka bool (*)(const std::basic_string<char>&, const std::basic_string<char>&)}’

It's most probably because I got GCC 4.7.

Is there a new version of angelscript that would fix that? Is there some option I could add in the CMakeLists.txt in order to fix the problem?
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: SVN won't build

Postby oln » 27 May 2012, 10:06

Version in git is 2.23.0, latest is 2.23.1. I don't see anything about this in the changelog though.
You are probably right about gcc 4.7: http://redmine.rigsofrods.com/issues/964

Might be worth asking on the angelscript forums.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: SVN won't build

Postby MCMic » 10 Nov 2012, 18:00

Version 2.25.0 states "Added wrapper for std::string::operator== to fix compile error on gcc 4.7 (Thanks Piotr Rak) ".
Could you update angelscript on the git repo please?
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: SVN won't build

Postby oln » 11 Nov 2012, 09:11

It's sorted. Built fine with GCC 4.7.2.
Though someone has broken something (not AS related) causing the game to crash at startup.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: SVN won't build

Postby paul424 » 11 Nov 2012, 13:11

Are you sure, last time I had to download prev version of angelscript and put it into dependencies.
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: SVN won't build

Postby oln » 11 Nov 2012, 14:22

It crashes with:

CEGUI::RendererException in file CEGUIOgreRenderer.cpp(462) : Ogre has not been initialised. You must initialise Ogre first!
An exception has occurred: CEGUI::RendererException in file CEGUIOgreRenderer.cpp(462) : Ogre has not been initialised. You must initialise Ogre first!

Which seems to be before any angelscript stuff is initialised. So it seems it's CEGUI-related.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: SVN won't build

Postby paul424 » 11 Nov 2012, 22:00

The version tagged
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.

Date: Sun Sep 23 20:34:17 2012 +0100

Merge branch 'development', remote-tracking branch 'origin/development' into development

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<


With the AS 2.25.0 separatly (or not - don;'t remember) downloaded. works fine.
I don't know what kind of changes you introduced today.

What I might say for now - I have had problems with CEGUI , one the package being not compiled against installed Ogre libs , second was the inappropriate CEGUI vesrion.
You might try to build the CEGUI with cmake ./ && make && make install as I did.
Other way is to hang on #CEGUI, the dudes there helped me with this lib's problems a few times .
User avatar
paul424
OD Moderator
 
Posts: 660
Joined: 24 Jan 2012, 13:54

Re: SVN won't build

Postby oln » 11 Nov 2012, 22:45

I didn't do anything else other than update angelscript, so if you are not getting the error, it's probably just some library issue on my system as you are suggesting.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: SVN won't build

Postby MCMic » 14 Nov 2012, 19:37

It does not work for me:
In file included from /home/mcmic/dev/opendungeons/dependencies/angelscript/angelscript/source/as_builder.cpp:40:0:
/home/mcmic/dev/opendungeons/dependencies/angelscript/angelscript/source/as_builder.h:43:28: erreur fatale: as_symboltable.h : Aucun fichier ou dossier de ce type
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: SVN won't build

Postby oln » 14 Nov 2012, 20:30

My fault, forgot to add some files to the commit. Should be added now.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Re: SVN won't build

Postby MCMic » 15 Nov 2012, 01:13

Ok, that's better, now I got problems with SFML is seems (Why are you using SFML by the way, isn't it for 2D stuff?).
Which SFML version is needed? (2 beta or the old 1.6?)
User avatar
MCMic
 
Posts: 723
Joined: 05 Jan 2010, 17:40

Re: SVN won't build

Postby oln » 15 Nov 2012, 07:45

It's used for audio, and version 1.6 is what's used in the code still.
User avatar
oln
 
Posts: 1020
Joined: 26 Oct 2010, 22:16
Location: Norway

Who is online

Users browsing this forum: No registered users and 1 guest