Page 1 of 1

[solved] Premake and SVN

Posted: Mon Jun 02, 2008 04:22
by Jon
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?

Posted: Mon Jun 02, 2008 08:37
by CrazyEddie
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.

Posted: Wed Jun 04, 2008 15:04
by Jon
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.

Posted: Thu Jun 05, 2008 03:53
by Jon
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.

Posted: Thu Jun 05, 2008 08:55
by CrazyEddie
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.

Posted: Thu Jun 05, 2008 13:11
by Jon
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.