Page 1 of 3

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 19:17
by saetrum
While not a newbie to programming...I am utterly hopeless when trying to get this GUI up and running correctly.

Does anyone want to spare some time to help me get this up and running?

I'm using Visual Studio 6 (Enterprise Edition) SP 4

I've downloaded the source code for CEGUI as well as the precompilled libraries. At this point: I've unzipped the CEGUI .zip file (do you need to put this in the Ogre directory? if so where, with the samples) and created a blank project. So from here where do I go? I know I need to include the libraries, and include directories, which ones? I know I need to add the source files to the project...

Basically...can anyone take me from a blank project to correctly configured project? or does anyone that has compiled and run successfully with vs 6 want to post their project file...I know I'll need to change all the directories and includes, but it at least gives me a place to start.

Or am I too hopeless...and I should give up.
:? :? :(
Thanks!

edit:

Have set additional include directories to:
dependencies/include (this has the .h's for boost, xerces, freetype)
include (this has the cegui includes)

Have set additional .lib directories to:
dependencies/lib (this has the .libs for boost, xerces, freetype)

Have added the OgreMain.lib to the dependencies/lib directory
Do I need to add all the .lib names to the .lib list in the project settings (like you have to add OgreMain.lib to your library list for ogre programs)

Questions:
What else do I need to do?
Do I need to copy all the .dll's from ogre common/bin/debug to cegui_mk2/bin/debug?
Do I need to add all the .h files from boost, freetype, xerces to the project?

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 19:43
by CrazyEddie
No! Don't give up :)

I haven't checked the downloads to see if they got the VC6 workspace/project files before SF stopped cron (it will be back soon!). I'll do this in a mo, and if not manually trigger the update of the source packages.

Once you have the source (with the new VC6 workspace/projects), the cegui_mk2 directory needs to sit side-by-side with your ogrenew directory. You then have to build CEGUI (you didn't say whether you'd done this so I presume you haven't) - all you have to do here is make sure the dependencies are in the cegui_mk2 directory and hit the build button.

For your first client application, I strongly urge you to look at the code for the demos (though not 5 or 8 as they didn't have source). Set-up for rendering is very easy - typically two lines of code. Setup for inputs (assuming you're using the Ogre built in stuff), requires your application to register for input notifications etc - the demos all do this, but I wont post any more yet, until I have checked the state of the downloads and you've confirmed whether you have the system built or not ;)

CE.

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 19:48
by saetrum
CrazyEddie,

You are correct in assuming I haven't built CEGUI yet, that is what I am having difficulty with ...I didn't realize you had a VC++ 6 project file included with CEGUI...My download from a couple of days ago didn't include one...I haven't tried a new download :oops: I'll do that now.

I'll get back to you after I attempt that.

BTW - Thanks for your help...and for the work on CEGUI.

edit: The VS 6 project file is indeed in the latest CVS version...can I say I feel like a complete idiot :oops: :oops:

I'm sure I'll be back with more questions...but I'll try to be a little more careful before I embarass myself again...well no promises! :D

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 19:51
by CrazyEddie
I have just forced the source package update - the files now contain all the latest updates.

Let me know what happens next! ;)

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 20:09
by saetrum
At the risk of sounding dumb again:

I can't seem to get the workspace to open, well it opens, but it is empty. When I try to open the project files, it says it needs to recreate it, afterwhich I get a new workspace and trying to build with it doesn't work.

Any ideas?

Has anyone gotten this to work? IF so I'll assume it is my error (which is probably a safe assumption).

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 20:22
by CrazyEddie
^^^^^^ That was me! ^^^^^^

VC++ 6 project settings - help needed

Posted: Thu Jul 22, 2004 20:25
by saetrum
I'll try it and report back.

Thanks for helping me with this...

edit:
Built Successfully, now to check out the demos and see what I've been missing.

Thanks again Crazy Eddie!

VC++ 6 project settings - help needed

Posted: Fri Jul 23, 2004 10:17
by CrazyEddie
Great! Glad you got it compiled okay.

Let us know how you get on with everything :)

VC++ 6 project settings - help needed

Posted: Mon Jul 26, 2004 15:13
by saetrum
Got caught up doing things around the house, and didn't have a chance to look at this until this morning. I'm having trouble compiling the demo...get an error about not finding the string.h file...don't know what happened, but I'll try to figure it out.

VC++ 6 project settings - help needed

Posted: Mon Jul 26, 2004 17:44
by CrazyEddie
The only thing that comes to mind is that the demo project is not in the right place in relation to everything else. As before, it was originally built side-by-side with the main cegui_mk2 directory. Hopefully it's something simple like this :)

VC++ 6 project settings - help needed

Posted: Mon Jul 26, 2004 18:07
by saetrum
The actual error I'm getting is:

Compiling...
CEGUIOgre_TestDriver1.cpp
c:\cegui_mk2\include\ceguistring.h(30) : fatal error C1083: Cannot open include file: 'string': No such file or directory
Error executing cl.exe.

CEGUI.exe - 1 error(s), 0 warning(s)


The line it is complaining about is simply the #include <string> line in ceguistring.h

I'm hoping I didn't screw something up with stlport somehow. Although, my regular Ogre programs do not have any trouble running. :? And I didn't run into this error when compiling CEGUI.

Since I use VC++ 6, I had to create a new project/workspace and manually tell it where to look for project files. I am pretty sure I got it all correct.

VC++ 6 project settings - help needed

Posted: Mon Jul 26, 2004 20:09
by CrazyEddie
Definately sounds like an STL include path issue, though if all your other stuff works okay, then that's very strange (in fact it makes no sense at all :().

Don't know what else to suggest at the moment. I'll have a play about with it on VC6 tomorrow and see if I get similar results.

VC++ 6 project settings - help needed

Posted: Mon Jul 26, 2004 20:16
by saetrum
Okay, I think I have all the issues sorted out...but now I am running into the Ogre::string issue. I got the cvs version of ogre on the 19th, I think I may have missed the actual update. I'll get the latest and try the demo again.

VC++ 6 project settings - help needed

Posted: Tue Jul 27, 2004 16:07
by saetrum
I keep getting exceptions when I run demo 7...here is where I am running into problems

Code: Select all

PushButton* btn = (PushButton*)winMgr.createWindow((utf8*)"Taharez Button", (utf8*)"Demo7/Window1/Quit");
   fwnd1->addChildWindow(btn);
   btn->setMaximumSize(Size(1.0f, 1.0f));
   btn->setPosition(Point(0.02f, 0.1f));
   btn->setSize(Size(0.25f, 0.1f));
   btn->setText((utf8*)"Exit Demo");


Inside the createWindow function everything looks ok, but the pointer that is returned, is not complete. Specifically, the d_events attribute (part of EventSet) is size 0 in btn, but was size 39, in the Window* which returned from CreateWindow. I'm a bit mystified why this is happening...and it does cause a nasty crash (freezes windows completely) if I let it go on without catching it. I have not modified the Demo 7 files at all and am using cegui_mk2 as of 7/22 cvs version with Ogre CVS as of this morning, pre-built dependencies.

Have I missed something I need? Anyone else have issues like this?