OGRECave/ogre-procedural

build fails for emscripten target against ogre 1.11

Closed this issue · 4 comments

uvguy commented

Emscripten : 1.37.36
Ogre version : master

Having small build problem against ogre-procedural master branch, here is the full error log:

build_error_emscripten.txt

Which sound like emscripten clang problem deducing bool operator against unique_ptr in ogrepass.h.
Related : OGRECave/ogre#716

paroj commented

have you tried setting CMAKE_CXX_FLAGS=-std=c++11 already? Ogre 1.11 requires C++11, but the addons have not been updated accordingly yet.

uvguy commented

have you tried setting CMAKE_CXX_FLAGS=-std=c++11 already?

I don't understand why need that. Because std::unique_ptr is valid c++11 code.

paroj commented

to explicitly tell clang which C++ version to use. (note ogre 1.11 already does this, ogre-procedural does not)
see http://en.cppreference.com/w/cpp/types/NULL

paroj commented

just verified that -std=c++11 fixes the issue