Building CEGUI (0.8.x & default) on Linux using clang 3.3
Posted: Wed Sep 17, 2014 12:28
Hi All, Well having managed to put my first post in the wrong place and fail to make sense. here goes on MK2 (I was asked to start a new thread)
I'm building on Ubuntu 14.04. using clang 3.3 with LLVMs libc++ and libc++abi libraries. I currently have a working directory on on v0-8 @ rev:5471 I'm attempting to build v0-8 with OGRE v2-0 @ rev 6562 this version of OGRE is stable and runs I don't get core dumps on exit or when running samples. I am still learning how CEGUI & OGRE work. I would be greatful if anyone can shed light on the following compilation issue I'm having.
There are two warnings (both in the same file) relating to C linkage: example is getWindowRendererFactoryModule(). clang gives;
cegui/include/CEGUI/WindowRendererSets/Core/Module.h:45:37: warning: 'getWindowRendererFactoryModule' has C-linkage specified, but returns user-defined type 'CEGUI::FactoryModule &' which is incompatible with C [-Wreturn-type-c-linkage] - I don't like ignoring warnings.
I also have compilation errors relating to OGRE objects. Should I expect to be able to compile these versions of CEGUI & OGRE currently, I've not had a great deal of success so far. mostly due to lack of knowledge of these programs I think.
I'm going to have another go compiling with default @ rev 5478.
Update: build of Default fails with errors relating to a missing file, clang reports;
"cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:40:10: fatal error: 'glm/core/type.hpp' file not found #include <glm/core/type.hpp>"
This looks like a separate issue but cmake flags an issue as follows;
CMake Warning (dev) at samples/browser/CMakeLists.txt:155 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "" of target "CEGUISampleBrowser-9999.0" does not
exist.
Thanks for reading hope it makes (more) sense.
I'm building on Ubuntu 14.04. using clang 3.3 with LLVMs libc++ and libc++abi libraries. I currently have a working directory on on v0-8 @ rev:5471 I'm attempting to build v0-8 with OGRE v2-0 @ rev 6562 this version of OGRE is stable and runs I don't get core dumps on exit or when running samples. I am still learning how CEGUI & OGRE work. I would be greatful if anyone can shed light on the following compilation issue I'm having.
There are two warnings (both in the same file) relating to C linkage: example is getWindowRendererFactoryModule(). clang gives;
cegui/include/CEGUI/WindowRendererSets/Core/Module.h:45:37: warning: 'getWindowRendererFactoryModule' has C-linkage specified, but returns user-defined type 'CEGUI::FactoryModule &' which is incompatible with C [-Wreturn-type-c-linkage] - I don't like ignoring warnings.
I also have compilation errors relating to OGRE objects. Should I expect to be able to compile these versions of CEGUI & OGRE currently, I've not had a great deal of success so far. mostly due to lack of knowledge of these programs I think.
I'm going to have another go compiling with default @ rev 5478.
Update: build of Default fails with errors relating to a missing file, clang reports;
"cegui/include/CEGUI/RendererModules/Ogre/GeometryBuffer.h:40:10: fatal error: 'glm/core/type.hpp' file not found #include <glm/core/type.hpp>"
This looks like a separate issue but cmake flags an issue as follows;
CMake Warning (dev) at samples/browser/CMakeLists.txt:155 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run "cmake --help-policy CMP0046" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target "" of target "CEGUISampleBrowser-9999.0" does not
exist.
Thanks for reading hope it makes (more) sense.