C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

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

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Kulik » Tue Oct 15, 2013 12:29

Yes, would be great if you could test the changes.

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Tue Oct 15, 2013 12:33

Ok, I'll do and report the results.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Tue Oct 15, 2013 15:32

Well i didn't test it. I just checked if it still runs in MSVC :D
if you could test it we would have greater assurance that it works
CrazyEddie: "I don't like GUIs"

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Sat Nov 16, 2013 01:42

Hi guys, :)

Well, I took my time, but I've tested CeGUI master according to the string.h inclusion bug.

Note that, on Windows only, where file paths are case insensitive, you can't forcefully include the CEGUI/ folder in the include search folder! (-I [...]/include/CEGUI)
if you do that, depending on the order of your search paths, the compilation may or may not fail when including like this:
#include <string.h>

Depending on the file found first (the system one or the CEGUI one), the compilation is your project goes fine, or not. :)

That said, I've managed the thing easily by not including the CEGUI folder directly and did the include like this:
#include "CEGUI/String.h" (which is cross-platform compatible) and it's working that way.

Best regards, :)

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Sun Nov 17, 2013 13:18

You are not supposed to include the Cegui include directory directly. This is not done in the samples, and should not be like this in the docs or wiki either. There should always be a "CEGUI/" before the filename (or further path and filename). I am not sure if I understood you correctly on that, though.

Either way, the way it is done now, it should work everywhere, namely by having #include "CEGUI/String.h" in String.cpp.
CrazyEddie: "I don't like GUIs"

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Tue Nov 19, 2013 08:37

Hi :)

You are not supposed to include the Cegui include directory directly. This is not done in the samples, and should not be like this in the docs or wiki either. There should always be a "CEGUI/" before the filename (or further path and filename). I am not sure if I understood you correctly on that, though.
Either way, the way it is done now, it should work everywhere, namely by having #include "CEGUI/String.h" in String.cpp.


Yes, as said above, this is working fine that way using MingW. :D

The fact of not including the CEGUI folder and add "CEGUI/" as a prefix in every includes is the reverse of what is done when using SDL. But with SDL, both practices are ok, anyway. That's why I wanted to point that out, just as a piece of information.

Best regards,

User avatar
thomas
Quite a regular
Quite a regular
Posts: 64
Joined: Thu Aug 22, 2013 22:11

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby thomas » Tue Jun 17, 2014 18:17

So I had this same issue, while compiling my own project I got:

strlen not delcared and some other str... functions not declared.

I wondered why would cegui even compile if this was the case, but not compile in my own project?

So I started with the renaming it to CEGUIString.h but I looked further and realized it's like Bertram said, I had include/CEGUI in my search directories for includes when I should just have include/

This fixed it. So any other issue regarding this is likely a user error on include directories being setup wrong within the project.
Last edited by thomas on Thu Jun 19, 2014 22:34, edited 1 time in total.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Tue Jun 17, 2014 19:02

thomas wrote:This fixied it. So any other issue regarding this is likely a user error on include directories being setup wrong within the project.

Yes, usually doing things right fixes things.
CrazyEddie: "I don't like GUIs"

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Wed Jun 18, 2014 14:32

Hi guys, :)

I'm back after a few months to first say thank you all for the help given here to the noob I was (and still am).

I'm also here to say that a marvelous guy named Hwoarangmy helped us compiling CEGUI 0.8.3 and Ogre 1.9.0 using mingw and I wanted to point out that there are two changes to apply on the sources before doing so. Maybe you'll be willing to apply them?

- Add a condition to check against mingw in the src/SimpleTimer.cpp file & fix the CMakeFile linking statement for MingW:
The precise changes are listed below:
http://opendungeons.sourceforge.net/wik ... ools#cegui

I checked the file there and no fixes seem to have been done, yet:
https://bitbucket.org/cegui/cegui/src/8 ... pp?at=v0-8
https://bitbucket.org/cegui/cegui/src/1 ... at=default

Congrats for the work done on CEED!!

Best regards,

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Wed Jun 18, 2014 14:34

Bertram wrote:...

Thanks for the kind words, we appreciate it!

However, if you want us to apply changes, please fork CEGUI on bitbucket, apply the changes and make a pull request. You will find a short manual for that on the bitbucket page, it should not take long. Once you do that we can see if the changes can go into CEGUI and we will eventually approve and merge them.
CrazyEddie: "I don't like GUIs"

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Wed Jun 18, 2014 14:40

Hi :)

However, if you want us to apply changes, please fork CEGUI on bitbucket, apply the changes and make a pull request. You will find a short manual for that on the bitbucket page, it should not take long. Once you do that we can see if the changes can go into CEGUI and we will eventually approve and merge them.

Ok, I'll do that asap.

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Wed Jun 18, 2014 14:50

Ah, btw:

It seems you haven't updated the cegui-deps-0.8.x-src.zip file since when you fixed the mingw/gcc compilation on libexpat and libpng in the corresponding .def files.
Could you do that?

Thanks!

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Wed Jun 18, 2014 14:52

No we can't randomly do that but we are preparing a new release right now and once this will be released we will also release a new dependencies package. so just wait a bit!
CrazyEddie: "I don't like GUIs"

Bertram
Quite a regular
Quite a regular
Posts: 73
Joined: Wed Oct 02, 2013 14:46

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Bertram » Thu Jun 19, 2014 20:33

Hi Ident,

No we can't randomly do that but we are preparing a new release right now and once this will be released we will also release a new dependencies package. so just wait a bit!

Np at all. It was more for other users.

Here is the pull request:
https://bitbucket.org/cegui/cegui/pull- ... mingw/diff

Regards,

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: C::B Win32 - Compiling CEGUI 0.8.2 with Ogre SDK 1.8.1

Postby Ident » Thu Jun 19, 2014 22:00

Thanks a lot. Merged!
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 37 guests