CEGUI w/ OGRE

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

czzplnm
Just popping in
Just popping in
Posts: 6
Joined: Thu Aug 05, 2010 01:19

CEGUI w/ OGRE

Postby czzplnm » Thu Aug 05, 2010 01:31

I am extremely confused.
I am almost positive I have downloaded the correct files, numerous times at that mater.
So, to get to the point. I have a few questions.
1. In the tutorials I have read(Over and over) it wants me to fill in information for this.

Code: Select all

OGRE_PATHS = { "../OGRE", "include/OGRE", "lib" }
OIS_PATHS = { "../OGRE", "include/OIS", "lib" }


My location for OGRE is C:\OgreSDK\OgreSDK_vc10_v1-7-1

I have C:\OgreSDK\ in the config.lua and added

Code: Select all

CEGUI_EXTRA_PATHS = {
{ "../OGRE/boost_1_42", "", "lib", "CEGUIOgreRenderer" }
 }


Because I could not find it in their. Thirdly, I changed the value of OgreRender to True.

2. In visual studio 2010, after I do run buildvs2008 then convert it. How do I configure the libs and includes. Do they need to correspond for OGRE / CEGUI?
3. Do I have to combine my files for ogre / cegui in the same folder?
4. My CEGUI Location is "C:\CEGUI-0.7.132" and there's another CEGUI folder, so this part confuses me with the tutorials pointing to just "CEGUI", but there's a note that the folder also has "Datafile" etc. So that's why I chose that category.
5. So im playing around with CEGUIOgreRenderer, wont compile. Repeated many steps so cluttered and confused. I might start over in my D drive.
6. Another question is since I have to do all this includes and modifications, can I save those profiles so I do not need to redo those steps when I mess up.
p.s. I have ogre 3d working 100%, don't exactly know where to go from those tutorials.
Any questions answered thanks, not expecting all. :)

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

Re: CEGUI w/ OGRE

Postby CrazyEddie » Thu Aug 05, 2010 09:28

1)

Code: Select all

OGRE_PATHS = { "C:\OgreSDK\OgreSDK_vc10_v1-7-1", "include/OGRE", "lib" }
OIS_PATHS = { "C:\OgreSDK\OgreSDK_vc10_v1-7-1", "include/OIS", "lib" }

and

Code: Select all

CEGUI_EXTRA_PATHS = {
{ "C:\OgreSDK\OgreSDK_vc10_v1-7-1", "", "lib", "CEGUIOgreRenderer" }
}

You will probably need to move/copy the Ogre libs from lib/Debug and lib/Release into lib, this is because the Ogre guys changed the SDK layout on us, and we did not work around that minor thing yet ;)

2) To just build CEGUI you should not need to do any manual adjustment of include and library search paths.

3) No, not unless you want to.

4) Which one? You mean the one at "C:\CEGUI-0.7.132\cegui"? Which tutorials btw?

5) So, what are the exact errors that you're getting?!

6) You should not have to modify anything anyway, so I guess the answer is no (IMO).

HTH

CE.

czzplnm
Just popping in
Just popping in
Posts: 6
Joined: Thu Aug 05, 2010 01:19

Re: CEGUI w/ OGRE

Postby czzplnm » Thu Aug 05, 2010 21:30

Thanks for the reply CE.
The tutorials I have been using are.
http://gpwiki.org/index.php/Crazy_Eddie ... ual_Studio

That tutorial states this.

Code: Select all

 *  Extract the zip file directories
    * You will see two directories: dependencies\lib, and dependencies\include
    * Move "\lib" (without 'dependencies'!) to the CEGUI \lib directory
    * Move "\include" to the CEGUI \include directory
    * \dependencies should be empty now, so you can delete this directory.


Targets CEGUI\lib, and both CEGUI and CEGUI-0.7.132 both have those directories. The other tutorial, not to setup. But for Ogre / CEGUI misconception.

Code: Select all

Additionally to the source code you will need dependencies suiting your compiler. Download them for your CEGUI version and unpack the "dependencies" folder into your CEGUI main folder, so that it will co-exist next to the folders "bin", "cegui","datafiles" etc.


Above says CEGUI main folder, so that is C:\CEGUI-0.7.132\CEGUI ? Since thats the only one that coexists?

Code: Select all

9. Now that you have built the .dll files and .lib files for CEGUI by yourself, you only have to change the linker settings of your project so that the needed .lib files and their folder paths are included there. Also you might want to include the dll's into a folder where your executable application will find them (for example just the folder your executable starts from). Finally remember to set the CEGUI include directory (for example "..\..\CEGUI\cegui\include\cegui") inside your C++ project settings.


CEGUI\cegui\include\cegui O_O

Thanks again CE :)

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

Re: CEGUI w/ OGRE

Postby CrazyEddie » Fri Aug 06, 2010 08:58

Ok. I think that tutorial is somewhat out of date, the layout of files has changed since that was written, and I don't know why it has people copying files around all over the place - none of that should be required - certainly not to build CEGUI itself. The basic steps to build CEGUI itself (after setting up the config.lua) are here, under 'Compiling on Microsoft Windows with MSVC++': http://cegui.org.uk/docs/current/compiling.html

Basically, after you have successfully built CEGUI, the paths to add to your project using CEGUI are '<root>/cegui/include' for headers, and '<root>/lib' for libraries. So, specifically:
For headers:

Code: Select all

C:\CEGUI-0.7.132\cegui\include

And for libs:

Code: Select all

C:\CEGUI-0.7.132\lib


HTH

CE

czzplnm
Just popping in
Just popping in
Posts: 6
Joined: Thu Aug 05, 2010 01:19

Re: CEGUI w/ OGRE

Postby czzplnm » Fri Aug 06, 2010 20:45

Thanks mate, extremely thankful for your responses. :)


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 7 guests