Building CEGUI for latest OGRE - Cmake problems

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Building CEGUI for latest OGRE - Cmake problems

Postby Ident » Sat Oct 31, 2009 17:39

I've posted in another thread, but that one says "solved" and i think i got a different problem, too, so i thought i better create a new one

My problem is that in the latest Ogre trunk version, when configuring cmake, no option called OGRE_BUILD_CEGUIRENDERER will appear

I checked the cmake files and i noticed that CEGUI wouldnt be mentioned there, also no error message. that the cegui lib wasnt found, would appear, so maybe the latest version just doesn't offer the option to compile the CEGUIrenderer anymore? which i cannot believe however...

any ideas?
CrazyEddie: "I don't like GUIs"

User avatar
jacmoe
Just can't stay away
Just can't stay away
Posts: 136
Joined: Sun Apr 03, 2005 14:18
Location: Holbaek, Denmark
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby jacmoe » Mon Nov 02, 2009 14:31

It doesn't. :)

However, CEGUI does have an Ogre renderer. Just build it.
I did, and it works with latest Ogre SVN trunk. :wink:

mukik182
Just popping in
Just popping in
Posts: 4
Joined: Tue Dec 08, 2009 18:55
Location: Barcelona, Spain

Re: Building CEGUI for latest OGRE - Cmake problems

Postby mukik182 » Tue Dec 08, 2009 18:59

I've tried to compile the latest CEGUI with Ogre trunk and I could'nt manage to achieve it because CEGUI configuration won't detect my installed Ogre 1.7. I had both Ogre and CEGUI installed before, with Ogre 1.6.4. Could someone tell me what have i to do to make CEGUI configuration process detect my Ogre? I'm using Debian Linux. Thanks.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby CrazyEddie » Wed Dec 09, 2009 10:29

Hi, and welcome :)

It seems that the Ogre devs have removed and are no longer using the .pc package config file used to detect installed libraries. Which basically means you may have to point the configure script to the correct location of the Ogre headers and libs by way of the Ogre_CFLAGS and Ogre_LIBS variables.

I'm not sure why they did this. I know they've removed the autotools build system, though pkgconfig is not really a part of that, so all they've done by removing this is make things more difficult for no reason. Of course, they may be providing some alternative which I did not see ;)

CE.

User avatar
emarcotte
Quite a regular
Quite a regular
Posts: 55
Joined: Fri Dec 26, 2008 14:30
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby emarcotte » Wed Dec 09, 2009 16:40

I'm pretty sure they still have the package config files. I know the CMake build is still kind of new, maybe its just not working correctly at the moment :) . They should be generated during the build from the .in files http://ogre.svn.sourceforge.net/viewvc/ ... Templates/

mukik182
Just popping in
Just popping in
Posts: 4
Joined: Tue Dec 08, 2009 18:55
Location: Barcelona, Spain

Re: Building CEGUI for latest OGRE - Cmake problems

Postby mukik182 » Wed Dec 09, 2009 21:29

Thank you CE. That solved my problem and I'm starting to try CEGUI. See you.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby CrazyEddie » Thu Dec 10, 2009 10:08

@mukik182:
Glad you got it to work.

@emarcotte:
Thanks for the info. That does indeed look like the Ogre guys are / will still be providing those package config files - even if perhaps maybe at the moment they're still a work in progress - I don't know if they are or not, I did not actually test at the moment since I'm still using 1.6.something :)

CE.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Building CEGUI for latest OGRE - Cmake problems

Postby Ident » Wed Feb 03, 2010 17:39

CrazyEddie wrote:Hi, and welcome :)

It seems that the Ogre devs have removed and are no longer using the .pc package config file used to detect installed libraries. Which basically means you may have to point the configure script to the correct location of the Ogre headers and libs by way of the Ogre_CFLAGS and Ogre_LIBS variables.

I'm not sure why they did this. I know they've removed the autotools build system, though pkgconfig is not really a part of that, so all they've done by removing this is make things more difficult for no reason. Of course, they may be providing some alternative which I did not see ;)

CE.


Because back then no one in this forum was willing / could help me (with eddie being away at the time), i asked in the ogre forum where jacmoe was so nice to give me some hints on what to do.

After that i managed to build the renderer from CEGUI side and created an (as i think) easily understandable step by step guide

i forgot about this thread due to the general absence of help in these forums at that time, but now i built cegui again for the latest 1.7 RC 1 version and remembered it, so here is the link also for this thread:
http://www.ogre3d.org/wiki/index.php/Building_CEGUI

I think you could copy the contents into a similar page in the CEGUI wiki or just link to this wiki article there, might be helpful to some.
CrazyEddie: "I don't like GUIs"

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby CrazyEddie » Wed Feb 03, 2010 19:54

Hi,

Thanks for following up.

Btw, the Wiki is supposed to be a community driven effort and your forum account details will also log you into the Wiki; please feel free to copy that article there - perhaps with attribution as regards to it's origin - if you believe others will find it useful :D

Thanks,

CE.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Building CEGUI for latest OGRE - Cmake problems

Postby Ident » Fri Feb 05, 2010 10:22

Done it.


http://www.cegui.org.uk/wiki/index.php/ ... reRenderer

It's basically identical to the Ogre wiki version, just changing some stuff and referencing to the ogre wiki version of the article.

Also added a link to the article in the building section of the cegui wiki.
CrazyEddie: "I don't like GUIs"

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby CrazyEddie » Fri Feb 05, 2010 11:05

Great, thanks a lot :D

CE.

User avatar
Yirkash
Just popping in
Just popping in
Posts: 1
Joined: Thu Apr 08, 2010 15:26

Re: Building CEGUI for latest OGRE - Cmake problems

Postby Yirkash » Thu Apr 08, 2010 15:30

I would like to point out to people having trouble with configure finding OIS that setting relevant OIS variables (OIS_CFLAGS and OIS_LIBS for the headers and libraries respectively) solved the problem for me. I hope this may help someone with this (very specific) problem.

User avatar
Xenomorph
Just popping in
Just popping in
Posts: 2
Joined: Mon Mar 09, 2009 02:56

Re: Building CEGUI for latest OGRE - Cmake problems

Postby Xenomorph » Tue Apr 20, 2010 14:24

Ident wrote:
CrazyEddie wrote:Hi, and welcome :)

It seems that the Ogre devs have removed and are no longer using the .pc package config file used to detect installed libraries. Which basically means you may have to point the configure script to the correct location of the Ogre headers and libs by way of the Ogre_CFLAGS and Ogre_LIBS variables.

I'm not sure why they did this. I know they've removed the autotools build system, though pkgconfig is not really a part of that, so all they've done by removing this is make things more difficult for no reason. Of course, they may be providing some alternative which I did not see ;)

CE.


Because back then no one in this forum was willing / could help me (with eddie being away at the time), i asked in the ogre forum where jacmoe was so nice to give me some hints on what to do.

After that i managed to build the renderer from CEGUI side and created an (as i think) easily understandable step by step guide

i forgot about this thread due to the general absence of help in these forums at that time, but now i built cegui again for the latest 1.7 RC 1 version and remembered it, so here is the link also for this thread:
http://www.ogre3d.org/wiki/index.php/Building_CEGUI

I think you could copy the contents into a similar page in the CEGUI wiki or just link to this wiki article there, might be helpful to some.


I tried to build the new CEGUI version with the new Ogre version and I have some questions about the build.
In your example, do I have to build Ogre first, or do I do all your steps and then build Ogre?

OGRE_PATHS = { ".../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk", "include/OGRE", "lib" }
OIS_PATHS = { ".../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk", "include/OIS", "lib" }

These paths, I don't really understand where they have to point to. Do they have to point to the folder where the .lib files of Ogre and OIS are or where the header files are?
Build the CEGUIOgreRenderer in Debug and Release mode, copy the CEGUIBase and CEGUIOgreRenderer .dll and .lib files as well as the CEGUI include folder and there you go, you're done!

Where do I have to copy these things to? Don't I just have to make my project point to the folders where the .lib and .h files are and only copy the .dll files to where my executable is?
Sorry for the stupid question.
Thanks in advance!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Building CEGUI for latest OGRE - Cmake problems

Postby CrazyEddie » Wed Apr 21, 2010 08:51

You should build Ogre and any other dependencies of CEGUI first, and then build CEGUI - this is because you can't build CEGUI before it's dependencies are built ;)

Code: Select all

OGRE_PATHS = { ".../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk", "include/OGRE", "lib" }
OIS_PATHS = { ".../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk", "include/OIS", "lib" }

These paths should point to where the Ogre and OIS libraries and headers are located. These lines allow the specification of a 'base' location and then sub locations for the headers and libraries. For example:

Code: Select all

OGRE_PATHS = { ".../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk", "include/OGRE", "lib" }

specifies a base of:

Code: Select all

.../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk

a header sub location of:

Code: Select all

include/OGRE

and a library sublocation of:

Code: Select all

lib

and this results in the build process having the location:

Code: Select all

.../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk/include/OGRE/

added to the header search path, and:

Code: Select all

.../Visual Studio 2008/Projects/Ogre 1.7/Ogre/VCBuild/sdk/lib/

added to the library search path for linking.

Note that you may also need additional paths, to point to the boost headers and libs.

Where do I have to copy these things to? Don't I just have to make my project point to the folders where the .lib and .h files are and only copy the .dll files to where my executable is?

You can copy them where ever is appropriate for your environment ;) If you're happier not copying them around, and instead pointing the compiler to the right place(s), then do that - the only exception is, as you rightly say, the DLLs and such need to be accessible at runtime, so need to be on the path or in the working directory...

CE


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests