C++11

Everything about development and the OpenMW source code.
Post Reply
Digmaster
Posts: 22
Joined: 20 Apr 2014, 05:12

Re: C++11

Post by Digmaster »

How exactly do I compile it? I ran

git clone -b osx-c++11 https://github.com/corristo/openmw.git

Then cMake ../ in a build directory

However it returned

CMake Error at CMakeLists.txt:42 (message):
Silly Zini forgot to update the version again...

I have no idea how to get past this. cmake scares me.
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: C++11

Post by Zini »

You probably have an outdated version. I suggest to make a test branch from your master branch and then merge corristo's branch into that.
User avatar
pvdk
Posts: 528
Joined: 12 Aug 2011, 16:34

Re: C++11

Post by pvdk »

Make sure you're not working with a shallow git clone, clone the complete repository or do "git fetch --tags" because our CMake file needs the tags (from the main repository!) to determine the version.
corristo
Posts: 495
Joined: 12 Aug 2011, 08:29

Re: C++11

Post by corristo »

bump, any news?
User avatar
Zini
Posts: 5538
Joined: 06 Aug 2011, 15:16

Re: C++11

Post by Zini »

Not to my knowledge.
User avatar
cc9cii
Posts: 523
Joined: 28 Mar 2013, 04:01

Re: C++11

Post by cc9cii »

EDIT4: deleted some rubbish I wrote earlier
EDIT5: seems to work fine with both MSVC2012 and MSVC2013.
nwah
Posts: 45
Joined: 21 Nov 2013, 07:40

Re: C++11

Post by nwah »

If everything's looking good in all the build environments, a good place to start this process is here:

http://blog.llvm.org/2013/11/google-sum ... nizer.html
User avatar
sirherrbatka
Posts: 2159
Joined: 07 Aug 2011, 17:21

Re: C++11

Post by sirherrbatka »

I have made this thread sticky.

I really wish we could start using C++11. Lambdas alone are solid reason to migrate, and in fact there is a lot of more important changes in the language (move semantics, unique pointer etc.).
corristo
Posts: 495
Joined: 12 Aug 2011, 08:29

Re: C++11

Post by corristo »

@sirherrbatka type inference!
User avatar
psi29a
Posts: 5356
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: C++11

Post by psi29a »

nullptr :)
Post Reply