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?
[SOLVED] Include files missing after building
Moderators: CEGUI MVP, CEGUI Team
[SOLVED] Include files missing after building
Last edited by Walta69 on Sun Jun 29, 2014 08:16, edited 1 time in total.
Re: Include files missing after building
Hi Walta69,
copy these three .h files from build/cegui/include folder to the cegui/include folder of cegui source and it should work.
copy these three .h files from build/cegui/include folder to the cegui/include folder of cegui source and it should work.
Re: Include files missing after building
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)
Re: Include files missing after building
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.
(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.
Re: Include files missing after building
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".
Instead set the include path properly. set it to contain "cegui/build/include" as well as "cegui/include".
Re: Include files missing after building
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 :/
Re: Include files missing after building
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?
Re: Include files missing after building
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.
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.
Re: Include files missing after building
Kulik wrote:Instead set the include path properly. set it to contain "cegui/build/include" as well as "cegui/include".
That did it

Re: [SOLVED] Include files missing after building
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.
• 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"
Who is online
Users browsing this forum: No registered users and 7 guests