Page 1 of 1

libraries needed when building cegui / demo

Posted: Thu Aug 19, 2004 19:50
by CrazyEddie
The OgreMain_d.lib is a for a post 0.14.x change, for earlier versions all you need to do is edit the project link settings and change the name to OgreMain.lib. You'll also need to #define CEGUI_USEOLDOGRESTRING for that project, since the Ogre guys made a breaking change with regards to their string, so I have to have this option in there to remain compatible with both possibilities.

The other errors are because I stupidly forgot to remove all the Lua stuff I was testing from the demo source and project :oops:. You can safely delete all this lua related stuff and the demo will compile and run.

HTH

CE.

libraries needed when building cegui / demo

Posted: Fri Aug 20, 2004 04:54
by CrazyEddie
This is mentioned somewhere on the front page, and in a load of other postings here.

The problem is that things have been updated since those demos were released, and you need some updated files.

Copy all the files from cegui_mk2/XMLRefSchema over the to of the ones in the demo directory.

Download ----->THIS<----- and copy the files from the .zip over the top of the old files in the demo directory, and then eveything will work.

CE.

libraries needed when building cegui / demo

Posted: Fri Aug 20, 2004 21:00
by tanis
Is there an alternate download location for the zip file?
http://crazy-eddie.myby.co.uk/files/TaharezLook.zip nets me a 404. :(
[edit] touch for signature update [/edit]

libraries needed when building cegui / demo

Posted: Sat Aug 21, 2004 06:26
by CrazyEddie
Sorry about that :oops:

libraries needed when building cegui / demo

Posted: Sat Sep 04, 2004 23:35
by SauRooN
Hi!

I had the same problem as Guest, so i've changed name of ogre lib in settings and define CEGUI_USEOLDOGRESTRING, but it's not enought. I get an error:

Code: Select all

Linking...
   Creating library ../../../../../lib/win32/debug/OgreGUIRenderer.lib and object ../../../../../lib/win32/debug/OgreGUIRenderer.exp
ogretexture.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class Ogre::String & __thiscall Ogre::String::operator<<(unsigned long)" (__imp_??6String@Ogre@@QAEAAV01@K@Z)
../../../../../bin/win32/debug/OgreGUIRenderer.dll : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

What should i do? I use 0.14.1 Ogre, class Ogre::String is not include operator <<

// edit
ok, i found solution of my problem. It is here:
http://www.ogre3d.org/phpBB2/viewtopic.php?t=5547&highlight=string

P.S. sry 4 my english...

libraries needed when building cegui / demo

Posted: Sun Sep 05, 2004 05:53
by CrazyEddie
Glad you got it working :)

But:
Defining CEGUI_USEOLDOGRESTRING for the OgreGUIRenderer project definately does work (otherwise I would not have bothered putting it in as an option ;) ), so there must have been some other cause for the continued error.

CE.

libraries needed when building cegui / demo

Posted: Sun Sep 05, 2004 11:26
by SauRooN
Check if u have << operator in your Ogre::String class.

libraries needed when building cegui / demo

Posted: Sun Sep 05, 2004 12:11
by CrazyEddie
operator<< for Ogre::String was removed by the Ogre devs due to some issues they were having under certain circumstances. When their code was changed, I surrounded the code within CEGUI that used it with a conditional, and added alternative code to be compatible with the new Ogre::String.

Subsequent testing has shown this conditional to work successfully for both paths of the conditional. You can see from the code in ogretexture.cpp (near the end of the file) that when CEGUI_USEOLDOGRESTRING is defined, no usage of the << operator is made. This is the only place in the entire system that Ogre::String is referenced, so it's easy to check what is happening.

Any continuing fault with regard to this is nothing to do with the code itself. A full re-compile is advised though, since the minimal recompile within MSVC has a tendency to get things wrong under certain circumstances.

CE.