[SOLVED] Include files missing after building

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

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

[SOLVED] Include files missing after building

Postby Walta69 » Fri Jun 27, 2014 15:24

Hi,

So finally I have managed to finished building cegui for visual studio 2010. It built with no errors and everything seems fine except for the includes. The cegui include folder only contains three .h files. I have searched all files in build folder and cannot find any other .h files.

In particular I need the files for the OgreRenderer (CEGUIOgreRenderer.h) as I am working through ogre tutorials. Any idea why these files would not be here?
Last edited by Walta69 on Sun Jun 29, 2014 08:16, edited 1 time in total.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Include files missing after building

Postby lucebac » Fri Jun 27, 2014 15:41

Hi Walta69,
copy these three .h files from build/cegui/include folder to the cegui/include folder of cegui source and it should work.

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Include files missing after building

Postby Walta69 » Fri Jun 27, 2014 15:47

Sorry but I don't see how this is fixing it. For example the Ogre tutorial needs me to include <CEGUI/CEGUIOgreRenderer.h> which does not exist (was not generated by the build)

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Include files missing after building

Postby lucebac » Fri Jun 27, 2014 15:53

Your folder structure should like like this:
(1) path_to_cegui\cegui\include
(2) path_to_cegui\cegui\src
(3) path_to_cegui_build\include
and other folders.
Copy the headers from folder (3) to folder (1). This should fix it.

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

Re: Include files missing after building

Postby Kulik » Fri Jun 27, 2014 16:15

Please please please, do not copy files around. That will bite you at some point.

Instead set the include path properly. set it to contain "cegui/build/include" as well as "cegui/include".

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Include files missing after building

Postby Walta69 » Fri Jun 27, 2014 16:57

Ok I did that, now suddenly when I try build it opens up base.h and says "typedef std::ostream OutStream;" -> ostream is not a member of std :/

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Include files missing after building

Postby Walta69 » Fri Jun 27, 2014 22:04

I deleted my files and started again. Please can someone tell me direct instructions as to what I must do after I have built cegui with visual studio as the wiki is very vague here. Must I merge the two cegui folders that I have? i.e. the newly built folder and the folder I used with cmake?

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

Re: Include files missing after building

Postby thomas » Fri Jun 27, 2014 22:19

Are you building cegui or a project which uses cegui? If you built cegui successfully, perform the install build and it will place all of the necessary files in the dir you specified in cmake in their proper stucure, then use that for your project.

Ther should be a dropdown or something in build menu and select install. if you see install, install/local, install/whatever choose just install. I didn't use VS so I do not know if it does thi automatically, I had to do it this way.

Or if you can't see that, then do as Kulik said and just put both of the includes.

Walta69
Not too shy to talk
Not too shy to talk
Posts: 31
Joined: Wed Jun 25, 2014 08:40

Re: Include files missing after building

Postby Walta69 » Sun Jun 29, 2014 08:15

Kulik wrote:Instead set the include path properly. set it to contain "cegui/build/include" as well as "cegui/include".


That did it :D

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

Re: [SOLVED] Include files missing after building

Postby Ident » Sun Jun 29, 2014 09:26

There is two good solutions for this on Windows:
• Set the include path properly. Set it to contain "cegui/build/include" as well as "cegui/include"
or
• Right click on INSTALL in your visual studio solution and click Build. This creats a folder as specified in your CMake configuration and move all important files there automatically. This folder can be used to refer to from your project when including headers , lib files , and you can also get your dll files from there.

However, the suggested copying of files is not recommended as it might lead to issues (and we had users having these self-made issues), for example if you change your local CEGUI repository to another branch and forget to copy the newly generated files over again. In such a case you will be using old files together with new ones, which can lead to serious issues.
CrazyEddie: "I don't like GUIs"


Return to “Help”

Who is online

Users browsing this forum: No registered users and 7 guests