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 » 30 Apr 2014, 07:08

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: 5537
Joined: 06 Aug 2011, 15:16

Re: C++11

Post by Zini » 30 Apr 2014, 10:55

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: 523
Joined: 12 Aug 2011, 16:34

Re: C++11

Post by pvdk » 30 Apr 2014, 23:42

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: 493
Joined: 12 Aug 2011, 08:29

Re: C++11

Post by corristo » 03 Jun 2014, 13:55

bump, any news?

User avatar
Zini
Posts: 5537
Joined: 06 Aug 2011, 15:16

Re: C++11

Post by Zini » 03 Jun 2014, 16:16

Not to my knowledge.

User avatar
cc9cii
Posts: 494
Joined: 28 Mar 2013, 04:01

Re: C++11

Post by cc9cii » 04 Jun 2014, 02:06

EDIT4: deleted some rubbish I wrote earlier
EDIT5: seems to work fine with both MSVC2012 and MSVC2013.

nwah
Posts: 41
Joined: 21 Nov 2013, 07:40

Re: C++11

Post by nwah » 05 Jun 2014, 04:39

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: 2157
Joined: 07 Aug 2011, 17:21

Re: C++11

Post by sirherrbatka » 09 Jun 2014, 14:32

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: 493
Joined: 12 Aug 2011, 08:29

Re: C++11

Post by corristo » 10 Jun 2014, 06:53

@sirherrbatka type inference!

User avatar
psi29a
Posts: 4791
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: C++11

Post by psi29a » 10 Jun 2014, 08:00

nullptr :)

Post Reply