C++11

Everything about development and the OpenMW source code.
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: C++11

Post by Ace (SWE) »

I've been trying to get AppVeyor to build OpenMW too, recently managed to get OpenMW itself into the 30min window they gave you. A full compile with OpenCS and all takes almost a full hour on their servers though, and fails due to a Qt library issue that shouldn't exist.

Haven't really had time to debug it yet, spent far too much of my time already on general build-time improvements for us.
User avatar
psi29a
Posts: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: C++11

Post by psi29a »

Heads up, the 'old build servers' of travis-ci are in the process (or already switched) over to new Travis (14.04) systems. This means that we can ditch a lot of precise baggage if it works out. :)

https://blog.travis-ci.com/2015-11-27-m ... tic-future
nwah
Posts: 45
Joined: 21 Nov 2013, 07:40

Re: C++11

Post by nwah »

The newest version of GCC will be defaulting not only to C++11 but C++14.
NeveHanter
Posts: 4
Joined: 13 Feb 2015, 03:43
Location: Poland

Re: C++11

Post by NeveHanter »

Hello everyone!

Was there any changes regardless switching to the more current C++ standard version?
User avatar
psi29a
Posts: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: C++11

Post by psi29a »

Seems to work now on win, osx and linux: https://github.com/OpenMW/openmw/pull/1017

just by changing a few things in cmake... however it takes longer to compile.
User avatar
jvoisin
Posts: 303
Joined: 11 Aug 2011, 18:47
Contact:

Re: C++11

Post by jvoisin »

Weehee, next step, enabling LTO :>
User avatar
Ace (SWE)
Posts: 887
Joined: 15 Aug 2011, 14:56

Re: C++11

Post by Ace (SWE) »

Already doing LTO on my release packages, all for that extra bit of performance after all.
User avatar
jvoisin
Posts: 303
Joined: 11 Aug 2011, 18:47
Contact:

Re: C++11

Post by jvoisin »

Amazing Ace, as usual <3
User avatar
psi29a
Posts: 5360
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: C++11

Post by psi29a »

BTW: https://github.com/OpenMW/openmw/pull/1017

With the help of a colleague, we've managed to get rid of all the std::auto_ptr's

Maybe we can cherry-pick/back-port this to master even if OpenMW isn't ready for C++11 just yet.
Chris
Posts: 1626
Joined: 04 Sep 2011, 08:33

Re: C++11

Post by Chris »

unique_ptr is C++11, so we can't replace auto_ptr with unique_ptr in master until OpenMW enables support of C++11.
Post Reply