[solved] Premake and SVN

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

Jon
Just popping in
Just popping in
Posts: 7
Joined: Mon Jun 02, 2008 04:07

[solved] Premake and SVN

Postby Jon » Mon Jun 02, 2008 04:22

I am not seeing premake in subversion, either in the trunk or the branches. The URLs were the ones given on the wiki under TortoiseSVN.

I have spent the entire day chasing what appeared to be DLL/LIB versioning problems. The CEGUIBase dll in the ZIP'ed SDK did not have InvalidRequestException or RendererException defined, and programs were throwing GenericException. I cleared out older versions and used DependencyWalker to see what was going on. After a bit I decided that a full build from source would be a good idea, and pulled things down from SVN.

The instructions said to run the batch files in makefiles/premake. I'm using VS9 and decided to go with 2005 and run it through the conversion wizard. But no premake in either tree.

What step did I skip?
Last edited by Jon on Wed Jun 04, 2008 14:59, edited 1 time in total.

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

Postby CrazyEddie » Mon Jun 02, 2008 08:37

Hi, and welcome :)

I'm not certain why you would get those issues from the SDKs - they do work, honest!

Those Wiki instructions definitely need cleaning up (I assume it's those you're following) - I have a note on my todo list about this already.

Don't forget when building from source that you'll need to download an appropriate copy of the dependencies for VC 9.

We do not keep the premake executable in SVN - it can be obtained separately from http://premake.sourceforge.net/

HTH

CE.

Jon
Just popping in
Just popping in
Posts: 7
Joined: Mon Jun 02, 2008 04:07

Postby Jon » Wed Jun 04, 2008 15:04

Thanks, I was able to build the libraries.

I have been struggling trying to get Ogre to build with them, and really haven't had time lately to do much. Complete rebuilds of everything, and OgreMain wasn't linking due to unresolved FreeImage symbols. Yet the correct FreeImage library was being brought in. I'm putting off doing more until I have enough time to dump the symbol tables of everything.

Anyhow, none of this is a CEGUI issue.

Jon
Just popping in
Just popping in
Posts: 7
Joined: Mon Jun 02, 2008 04:07

Postby Jon » Thu Jun 05, 2008 03:53

It seems to me (and correct me if I'm wrong) that CEGUI uses FreeImage as a DLL, and Ogre (current SVN) wants a static library. I base this on the use of explicit calls to Initialize and DeInitialize in Ogre's FreeImageCodec class, and the fact that the Ogre Dependencies ship a 27M library, which towers over CEGUI's 56K version.

So it doesn't seem like a straightforward task to use CEGUI with the latest Ogre. Hopefully I'm overlooking something.

I'd much rather use DLLs myself.

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

Postby CrazyEddie » Thu Jun 05, 2008 08:55

Hi,

With Ogre as the renderer, CEGUI will not use FreeImage at all; currently it is only used with the ImageCodec system, which is currently only used with the base OpenGL renderer for CEGUI.

Not sure why the guys went for a static version though!!

CE.

Jon
Just popping in
Just popping in
Posts: 7
Joined: Mon Jun 02, 2008 04:07

Postby Jon » Thu Jun 05, 2008 13:11

Thanks for your comments, I appreciate having someone to talk to.

I'll try linking Ogre against its static library, and removing the DLL from Ogre's path.

Edit: yep, that did it. Ogre's GUI demo runs. Thanks again.


Return to “Help”

Who is online

Users browsing this forum: Bing [Bot] and 14 guests