CEGUI and Ogre3D...

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

qdelpeche
Just popping in
Just popping in
Posts: 1
Joined: Tue Mar 07, 2006 08:24
Contact:

CEGUI and Ogre3D...

Postby qdelpeche » Tue Mar 07, 2006 09:36

Hi,

I have searched the forums but have NOT managed to find any help regarding
this. I have also trolled through the documentation and forums on both sites
but have not managed to find any suitable solutions.

Here is my problem:
1). I have compiled Ogre3D from source on Linux (SuSE 10) and I am able to run
all the demos including the GUI demo successfully.
2). I am able to do all of the 5 basic tutorials and the intermediate 1
tutorial without any problems.
3). I have compiled CEGUI from source on Linux (SuSE 10) and I am able to run
all the demos for it sucessfully.

But now when I try to do Basic Tutorial 6 or Intermediate Tutorial 2 I get the
following errors:
cd '/home/quintond/Development/C++/basic_tutorial_6/debug' &&
WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k
gmake all-recursive
Making all in src
linking basic_tutorial_6 (libtool)
linking basic_tutorial_6 (g++)
basic_tutorial_6.o: In function `CEGUI::String::assign(char const*, unsigned
int)':
/usr/local/include/CEGUI/CEGUIString.h:1536: undefined reference to
`CEGUI::String::grow(unsigned int)'
basic_tutorial_6.o: In function `CEGUI::String::assign(unsigned char const*,
unsigned int)':
/usr/local/include/CEGUI/CEGUIString.h:1426: undefined reference to
`CEGUI::String::npos'
/usr/local/include/CEGUI/CEGUIString.h:1431: undefined reference to
`CEGUI::String::grow(unsigned int)'
basic_tutorial_6.o: In function `~TutorialApplication':
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:50:
undefined reference to `CEGUI::WindowManager::getSingleton()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:50:
undefined reference to `CEGUI::WindowManager::destroyWindow(CEGUI::Window*)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:50:
undefined reference to `CEGUI::WindowManager::getSingleton()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:50:
undefined reference to `CEGUI::WindowManager::destroyWindow(CEGUI::Window*)'
basic_tutorial_6.o: In function `TutorialApplication::createScene()':
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:73:
undefined reference to
`CEGUI::OgreCEGUIRenderer::OgreCEGUIRenderer(Ogre::RenderWindow*,
Ogre::RenderQueueGroupID, bool, unsigned int, Ogre::SceneType)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:77:
undefined reference to `CEGUI::System::System(CEGUI::Renderer*, unsigned char
const*)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:78:
undefined reference to `CEGUI::Logger::getSingleton()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::SchemeManager::getSingleton()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::SchemeManager::loadScheme(CEGUI::String
const&, CEGUI::String const&)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:81:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:82:
undefined reference to `CEGUI::System::setDefaultMouseCursor(CEGUI::String
const&, CEGUI::String const&)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:82:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:82:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:82:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:83:
undefined reference to `CEGUI::System::setDefaultFont(CEGUI::String const&)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:82:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:83:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:83:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::WindowManager::getSingleton()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::WindowManager::createWindow(CEGUI::String
const&, CEGUI::String const&)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::String::~String()'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:85:
undefined reference to `CEGUI::System::setGUISheet(CEGUI::Window*)'
/home/quintond/Development/C++/basic_tutorial_6/src/basic_tutorial_6.cpp:84:
undefined reference to `CEGUI::String::~String()'
collect2: ld returned 1 exit status
gmake[2]: *** [basic_tutorial_6] Error 1
gmake[2]: Target `all' not remade because of errors.
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** Exited with status: 2 ***


I have tried all different libs and includes but cannot solve this problem.

I am using KDevelop and my basic project setup works and compiles.

Any help will be greatly appreciated.

Q

User avatar
jacmoe
Just can't stay away
Just can't stay away
Posts: 136
Joined: Sun Apr 03, 2005 14:18
Location: Holbaek, Denmark
Contact:

Postby jacmoe » Wed Mar 08, 2006 20:49

You compilation is not picking up the CEGUI includes.
I think you can set that up in the project setting in KDevelop.

I am sorry that I can't provide more details: I am sitting in front of Windows atm. I am a not a Linux pro. :wink:

darko
Just popping in
Just popping in
Posts: 4
Joined: Fri Feb 24, 2006 13:52
Contact:

Postby darko » Thu Mar 09, 2006 20:42

mmm.. no, includes don't fit as the problem is from the linker.

have you set up the path of the Cegui libraries? I can't tell you anymore, as I work on m$ with code::blocks.

erik.vonderheid
Just popping in
Just popping in
Posts: 1
Joined: Tue Jun 03, 2008 06:51

Postby erik.vonderheid » Tue Jun 03, 2008 06:53

you have to add the CEGUIOgreRenderer library to your linker call (-lCEGUIOgreRenderer)

klaus
Just popping in
Just popping in
Posts: 4
Joined: Thu Jun 26, 2008 14:23
Contact:

Postby klaus » Thu Jun 26, 2008 14:56

Thanks buddy, that solved the problem. I did not known what was was the library name.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 15 guests