Page 1 of 1

USE C++11 WHEN COMPILING OD

PostPosted: 17 Jun 2013, 16:14
by paul424
Genral notice : some of the files ( some AI*.cpp) use explicit construct of new C++ standard : C++11.

Each compiler has it;'s flag , for GNU g++ it's : "g++ --std=c++11"

bash cmd : cmake-gui --> tag cmake--> ->CMakeCxxFlags

I feel like a broken vinyl plate .....

Re: USE C++11 WHEN COMPILING OD

PostPosted: 18 Jun 2013, 09:00
by Bertram
Could the project readme / install instructions be updated?

Re: USE C++11 WHEN COMPILING OD

PostPosted: 18 Jun 2013, 12:18
by paul424
Bertram could you make online doxygen documentation in doxygen possible ?
That it would exec doxygen Doxyfile command everytime some branch chanes ?
It does not have to be on SF ...

Re: USE C++11 WHEN COMPILING OD

PostPosted: 18 Jun 2013, 14:26
by Bertram
Bertram could you make online doxygen documentation in doxygen possible ?
That it would exec doxygen Doxyfile command everytime some branch chanes ?
It does not have to be on SF ...


You mean some kind of git hook? or something else?

Re: USE C++11 WHEN COMPILING OD

PostPosted: 18 Jun 2013, 14:55
by domtron
This was the first problem I had on the dev branch. You need to put somewhere(probably the wiki) that says OD needs g++ 4.7 or higher to compile. [see http://forum.freegamedev.net/viewtopic.php?f=45&t=4601 and more specifically this http://stackoverflow.com/questions/14674597/cc1plus-error-unrecognized-command-line-option-std-c11-with-g]

automatic doxygen would be great!

Re: USE C++11 WHEN COMPILING OD

PostPosted: 19 Jun 2013, 10:23
by Bertram
Hi guys! :)

I'm all for the two points, yet, please remember I don't have push access (and I am not requesting it), and that I don't have any web space available to set up automatic online doxygen documentation. I bet those two things should be requested to Sven, right?

My only involvement with Open Dungeon is to try and make a Win32 binary and installer for the 4.10 version, and leave notes of how I did it afterwards. After all, I've got my own ghosts to hunt. ;)

Best regards,

Re: USE C++11 WHEN COMPILING OD

PostPosted: 10 Jul 2013, 12:47
by MCMic
Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.

Re: USE C++11 WHEN COMPILING OD

PostPosted: 10 Jul 2013, 14:29
by Bodsda
MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.

Re: USE C++11 WHEN COMPILING OD

PostPosted: 10 Jul 2013, 16:51
by domtron
Bodsda {l Wrote}:
MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.


That's whats so great about FOSS :)
Whats even better is one of us can go fix it if it isn't resolved within our time frame. :D

Re: USE C++11 WHEN COMPILING OD

PostPosted: 11 Jul 2013, 10:20
by Bodsda
domtron {l Wrote}:
Bodsda {l Wrote}:
MCMic {l Wrote}:Hello, building OD with g++ 4.8 fails as the C++11 as evolved : http://stackoverflow.com/questions/1270 ... tead-of-is

The name of has_trivial_destructor changed to is_trivially_destructible.

[EDIT] Oh, the problem is not in OD code but in angelscript code. Maybe a newer version fix that?
[EDIT2] Ok, this is definitely a problem of angelscript, I checked development svn and the problem is still there. I did not found how we are supposed to inform them about this kind of problems.


I've sent the maintainer an email.


That's whats so great about FOSS :)
Whats even better is one of us can go fix it if it isn't resolved within our time frame. :D


Resolved - from Andreas (AS maintainer)
11 July 00:39
Hi Craig,

Thanks for letting me know. I mostly use MSVC and wasn't even aware that G++ had a version 4.8 available already.

I'll update the code in AngelScript to make it compatible with both g++ 4.7 and 4.8.

Let me know if you find any other issues with AngelScript. Or even if you have any suggestions for new features that you'd like to have added.

Regards,
Andreas

11th July 02:46
Hi Craig,

This should be fixed now in revision 1663.
Let me know if my changes didn't work.

Regards,
Andreas