build fails for emscripten target against ogre 1.11
Closed this issue · 4 comments
Emscripten : 1.37.36
Ogre version : master
Having small build problem against ogre-procedural master branch, here is the full error log:
Which sound like emscripten clang problem deducing bool operator against unique_ptr in ogrepass.h.
Related : OGRECave/ogre#716
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.
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.
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
just verified that -std=c++11
fixes the issue