Re: CMake build system
The Xcode for mac is generated.
But there is some error when compiling :STEPFile.h "STEPFile.h:198:64: Use 'template' keyword to treat 'To' as a dependent template name"
That is weird. Can you post the verbose compile console output (gcc -I./ -L./ STEPFileReader.cpp -o STEPFileReader.o bla bla) that SCons and CMake use to compile STEPFileReader.cpp so we can compare them? It would make it easier to fix the error if I could understand what CMake do different from SCons.
I don't have errors with Assimp when building with Scons, but maybe we don't use the same version, did you update the Assimp lib ?
Maybe missing the flags "ASSIMP_BUILD_BOOST_WORKAROUND ASSIMP_BUILD_NO_OWN_ZLIB" ?
The code is identical to SVN revision 220, I haven't updated anything. The flags ASSIMP_BUILD_BOOST_WORKAROUND and ASSIMP_BUILD_NO_OWN_ZLIB is being defined in 3rdparty/assimp/CMakeLists.txt.
Additionally (but not related to the previous error), I didn't see the flag :
"M_PACKAGE_WRITABLE" for maratisEditor (not needed for the player)
Yup. That was an ommision by me. It is fixed now.
I'm also not sure the runpath search path is defined (depending on the dylib installation path) but should be "@rpath"
or "@executable_path/../Frameworks @loader_path/../Frameworks"
I've gone through and tried to fix all rpaths. Don't know if I did them right.
With the ios option it stops before generating the xcode project :
CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENGL_LIBRARY linked by target "MaratisApp" in directory /Users/anaelseghezzi/Desktop/Maratis-ios/M/Additional/iOS
Ok, that is the build system not finding OpenGLES, should probably add a separate OPENGLES_LIBRARY variable instead of reusing the OpenGL one so that the error become more obvious. I have now added better checks.
It's a bit frustrating for me not to have access to a Mac so I can catch all these stupid mistakes myself...
Last edited by Dahnielson (2014-02-12 16:43:18)