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.
Building CEGUI (0.8.x & default) on Linux using clang 3.3
Moderators: CEGUI MVP, CEGUI Team
Re: Building CEGUI (0.8.x & default) on Linux using clang 3.
RayU65 wrote:I'm attempting to build v0-8 with OGRE v2-0
CEGUI v0-8 is not aimed to be built with and linked against OGRE V2. Use OGRE 1.9 instead.
If you definitely want to use OGRE V2 you will have to use default branch. But be aware of this branch being heavily under development and that OGRE renderer might not be working properly due to the latest changes.
RayU65 wrote: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.
This is already resolved as far as I know.
@Ident: correct me if I'm wrong
RayU65 wrote: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>"
Please install libglm-dev as this is the only required dependency CEGUI has.
RayU65 wrote: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.
You can safely ignore this. This is related to an empty ${ADDITIONAL_LIBS} because you seem not to be building samples that have external dependencies.
Re: Building CEGUI (0.8.x & default) on Linux using clang 3.
Thanks lucebac. I'll check my installed packages cmake does not fail due to missing required dependancy and I'm still seeing C-linkage warnings for default. I'll try 0.8.x with OGRE 1.9 see if I can get that going. Thanks for your help.
Re: Building CEGUI (0.8.x & default) on Linux using clang 3.
lucebac wrote:CEGUI v0-8 is not aimed to be built with and linked against OGRE V2. Use OGRE 1.9 instead.
I actually do use CEGUI v0-8 with some Ogre version default branch (which later become v2 i think). But its a very old default version, a half year at least, so i definitely cant promise v0-8 would support Ogre v2-0. I think we have better support in default brnach for that, but the default branch has other issues (unstable)... I suggest you use Ogre 1.9, instead of relying on versions that havent even been released yet. CEGUI 0.8.x definitely supports Ogre 1.9
lucebac wrote:RayU65 wrote: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.
This is already resolved as far as I know.
@Ident: correct me if I'm wrong
I have absolutely no idea. I dont remember this. Where should it be resolved? "Ray" is already using v0-8
CrazyEddie: "I don't like GUIs"
Who is online
Users browsing this forum: No registered users and 22 guests

