Page 1 of 1

SVN won't build

PostPosted: 27 May 2012, 09:18
by MCMic
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?

Re: SVN won't build

PostPosted: 27 May 2012, 10:06
by oln
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.

Re: SVN won't build

PostPosted: 10 Nov 2012, 18:00
by MCMic
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?

Re: SVN won't build

PostPosted: 11 Nov 2012, 09:11
by oln
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.

Re: SVN won't build

PostPosted: 11 Nov 2012, 13:11
by paul424
Are you sure, last time I had to download prev version of angelscript and put it into dependencies.

Re: SVN won't build

PostPosted: 11 Nov 2012, 14:22
by oln
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.

Re: SVN won't build

PostPosted: 11 Nov 2012, 22:00
by paul424
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 .

Re: SVN won't build

PostPosted: 11 Nov 2012, 22:45
by oln
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.

Re: SVN won't build

PostPosted: 14 Nov 2012, 19:37
by MCMic
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

Re: SVN won't build

PostPosted: 14 Nov 2012, 20:30
by oln
My fault, forgot to add some files to the commit. Should be added now.

Re: SVN won't build

PostPosted: 15 Nov 2012, 01:13
by MCMic
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?)

Re: SVN won't build

PostPosted: 15 Nov 2012, 07:45
by oln
It's used for audio, and version 1.6 is what's used in the code still.