[SOLVED] Building CEGUI Editor

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
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

[SOLVED] Building CEGUI Editor

Postby tgraupmann » Sat Apr 28, 2007 00:16

What are the CEGUI Editor dependencies to build from source?

First error I see is:

Code: Select all

#include <wx/wx.h>


Is that WxWidgets?
http://www.wxwidgets.org/
Last edited by tgraupmann on Sat Apr 28, 2007 22:35, edited 1 time in total.

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 00:53

What version of WxWidgets does CEGUI depend on?

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Sat Apr 28, 2007 08:33

Probably 2.8.0, cant say for sure though
Image
Image

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sat Apr 28, 2007 09:45

Hi,

have you read this page?:
http://www.cegui.org.uk/wiki/index.php/Getting_Started

About the wx dependency. I initially built it with 2.6.1, but a while ago it was patched to work with 2.8 as well. So that should be a safe one to pick.

Good luck :)

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 18:54

I tried using 2.8.3 and added this to my include path:

Code: Select all

wxWidgets-2.8.3\include
wxWidgets-2.8.3\include\msvc


Both of these steps seem obsolete:

Code: Select all

Because of issues I had compiling wxWidgets properly, I'm going to go into more depth for using Visual Studio 7.1 or 8.0 to do so. (Jouninkomiko 05-20-2006)

    * Because the editor uses the wxGLCanvas, open include/msvc/wx/setup.h, and change the define for wxUSE_GLCANVAS from 0 to 1.
          o Within the src/wxWindows.dsw solution you'll find this setting inside the wxWindows project, under Headers/Setup/setup.h


There doesn't appear to be a define for wxUSE_GLCANVAS.

While I compile the editor I get the following error:

Code: Select all

1>------ Build started: Project: CELayoutEditor, Configuration: Debug Win32 ------
1>Compiling...
1>pch.cpp
1>c:\cpplibraries\wxwidgets-2.8.3\include\msvc\wx\setup.h(140) : fatal error C1083: Cannot open include file: '../../../lib/vc_lib/mswd/wx/setup.h': No such file or directory


You know it would be easier if the CEGUI Layout Editor had a dependencies.zip the same way CEGUI has a dependencies.zip...

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Sat Apr 28, 2007 20:31

Have you compiled wxWidgets first? Because that should result in the header file you are missing. Also try the static wx build first, since i am more sure of those then about the dll versions.

I am leaving for a short holidays so i won't be able to reply for a couple of days. I hope that someone else can help you further.

Good luck!

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 21:55

I compiled wx.dsp after making the #define wxUSE_GLCANVAS 1 change.

When compiling the CEGUI editor this is as far as I get. I know it's related to the GL CANVAS...

Code: Select all

1>------ Rebuild All started: Project: CELayoutEditor, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'CELayoutEditor', configuration 'Debug|Win32'
1>Compiling...
1>pch.cpp
1>Compiling...
1>WindowBox.cpp
1>SelectionMover.cpp
1>Selection.cpp
1>Options.cpp
1>c:\cpplibraries\celayouteditor-0.5.0\src\options.cpp(149) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\cpplibraries\celayouteditor-0.5.0\src\options.cpp(176) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>EditorView.cpp
1>c:\cpplibraries\celayouteditor-0.5.0\inc\editorcanvas.h(29) : error C2504: 'wxGLCanvas' : base class undefined


Edit. Nevermind. I had to change the define in more than one place.
Last edited by tgraupmann on Sat Apr 28, 2007 22:08, edited 1 time in total.

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Sat Apr 28, 2007 22:02

altough scriptkid said it should work with 2.8.3, the only logical explanation I can think of is that the definition of wxGLCanvas has changed between the two versions. Probably code has been edited to work for 2.8.3. If you dont want to find out what code that is, use 2.6.1, because that updated code for 2.8.3 probably never reached svn.
Image

Image

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 22:09

Yeah the canvas probably changed. That's why I'm seeing this error now.

Code: Select all

1>------ Rebuild All started: Project: CELayoutEditor, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'CELayoutEditor', configuration 'Debug|Win32'
1>Compiling...
1>pch.cpp
1>Compiling...
1>WindowBox.cpp
1>SelectionMover.cpp
1>Selection.cpp
1>Options.cpp
1>c:\cpplibraries\celayouteditor-0.5.0\src\options.cpp(149) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>c:\cpplibraries\celayouteditor-0.5.0\src\options.cpp(176) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>EditorView.cpp
1>EditorFrame.cpp
1>EditorDocument.cpp
1>EditorCanvas.cpp
1>DialogMain.cpp
1>DialogGrid.cpp
1>DialogAddWindow.cpp
1>c:\cpplibraries\celayouteditor-0.5.0\src\dialogaddwindow.cpp(165) : error C2664: 'wxTreeCtrl::GetFirstChild' : cannot convert parameter 2 from 'long' to 'wxTreeItemIdValue &'

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 22:13

Levia wrote:altough scriptkid said it should work with 2.8.3, the only logical explanation I can think of is that the definition of wxGLCanvas has changed between the two versions. Probably code has been edited to work for 2.8.3. If you dont want to find out what code that is, use 2.6.1, because that updated code for 2.8.3 probably never reached svn.


Ok I'm downgrading to 2.6.1. Well... the 2.6.4 branch should work right?

User avatar
Levia
Quite a regular
Quite a regular
Posts: 83
Joined: Mon May 22, 2006 18:25
Location: Bergen op zoom, The Netherlands
Contact:

Postby Levia » Sat Apr 28, 2007 22:14

Probably needs a type cast there, or some other hacking. I might have a look at this tomorrow, if you think that'll help.
Image

Image

User avatar
tgraupmann
Quite a regular
Quite a regular
Posts: 78
Joined: Thu Aug 18, 2005 00:47
Contact:

Postby tgraupmann » Sat Apr 28, 2007 22:25

It's not a priority. But if you would like to give everybody the opportunity to upgrade that would be nice!

Downgrading to Wx 2.6.4 did the trick!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 31 guests