When I try to run the sample programs it pops up a window asking what renderer I want to use. There are no options.
I've built CEGUI in visual studio 10, got the basic tutorials working and my own program just fine. Now I want to do some more stuff and I thought looking through the samples would be a good step.
config.lua :
-- Renderers
OGRE_RENDERER = true
-- Samples
SAMPLES_OGRE = true
SAMPLES_INCLUDED = true
They all build just fine.
I've built in debug config to start.
I found the exe files in CEGUI-SDK-0.7.5-cv10/bin along with the other built files.
Sample_FirstWindow_d.exe gets as far as asking what renderer I want - none are listed.
I've copied the exe file to a different VS10 project folder where I have a working exe. In that project folder are copies of the CEGUI dlls and the OGRE dlls. Same result.
I've looked through the headers in samples/common but the config headers don't seem to have any options which would obviously fix this.
Please help, thanks!
No renderer options in sample programmes
Moderators: CEGUI MVP, CEGUI Team
Re: No renderer options in sample programmes
29/04/2011 12:57:00 (Std) * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
29/04/2011 12:57:00 (Std) ********************************************************************************
29/04/2011 12:57:00 (Std) ---- Version 0.7.5 (Build: Apr 25 2011 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
29/04/2011 12:57:00 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
29/04/2011 12:57:00 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
29/04/2011 12:57:00 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
29/04/2011 12:57:00 (Std) ---- Scripting module is: None ----
29/04/2011 12:57:00 (Std) ********************************************************************************
29/04/2011 12:57:00 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
29/04/2011 12:57:00 (Std) ********************************************************************************
29/04/2011 12:57:00 (Std) ********************************************************************************
29/04/2011 12:57:00 (Std) ---- Version 0.7.5 (Build: Apr 25 2011 Debug Microsoft Windows MSVC++ 10.0 32 bit) ----
29/04/2011 12:57:00 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
29/04/2011 12:57:00 (Std) ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
29/04/2011 12:57:00 (Std) ---- Image Codec module is: SILLYImageCodec - Official SILLY based image codec ----
29/04/2011 12:57:00 (Std) ---- Scripting module is: None ----
29/04/2011 12:57:00 (Std) ********************************************************************************
29/04/2011 12:57:00 (Std) * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM -------- *
29/04/2011 12:57:00 (Std) ********************************************************************************
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: No renderer options in sample programmes
I didn't think there was a config.lua in the SDKs If it's there (and was not added by the user), it should not have been included in the package.
I think in order to have this work you need to instead edit the Samples/common/include/config.h file - it contains definitions generated from when the SDK was originally built. You will likely have to add appropriate search paths for headers and libs and also appropriate libs to the SampleHelper project so that it can find all the things it needs.
CE.
I think in order to have this work you need to instead edit the Samples/common/include/config.h file - it contains definitions generated from when the SDK was originally built. You will likely have to add appropriate search paths for headers and libs and also appropriate libs to the SampleHelper project so that it can find all the things it needs.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: No renderer options in sample programmes
hi,
I'm having the same problem like the original post
I built CEGUI 0.7.5 and OGRE 1.7.3 and I can run the tutorial from Ogre as well
I edited config.lua
also CEGUISamplesConfig.h
I noticed the #define CEGUI_SAMPLES_USE_OGRE was originally in __APPLE__
so I pasted one outside of it and compiled
there were some errors, but after I moved a couple of dll's and libs around ( specifically OgreMain_d.dll and OIS_d.dll into the CEGUI bin folder, but I think this is irrelevant)
then the drop down menu changed to Ogre dialog, which still showed no options
I noticed in another thread you said that when there's no options available, it means no Renderer Module was built
May I ask when did we build Renderer Module?
For Ogre all we built was CEGUIOgreRenderer along with CEGUIBase, and CEGUIFalagardWRBase, CEGUIExpatParser
I didn't noticed anything about Renderer Modules
So I tried tracing the CEGUISampleHelper project and see what I can find
here it is in CEGuiSample.cpp
which CEGUI_SAMPLES_USE_OGRE is only defined in CEGUISamplesConfig.h
so it would mean that if I defined CEGUI_SAMPLES_USE_OGRE in that header
the option would be available right?
Can you enlighten me what I missed?
I'm having the same problem like the original post
I built CEGUI 0.7.5 and OGRE 1.7.3 and I can run the tutorial from Ogre as well
I edited config.lua
Code: Select all
-----------
-- Samples
-- remember you have to edit CEGUISamplesConfig.h as well this just controls
-- dependencies etc. if the renderer is disabled this has no effect
SAMPLES_GL = true
SAMPLES_DX9 = true
SAMPLES_DX10 = false
SAMPLES_IRRLICHT = false
SAMPLES_OGRE = true
also CEGUISamplesConfig.h
Code: Select all
This file can be used to set certain configuration options which are used
when compiling the samples for Crazy Eddie's GUI System.
Each item in here has a comment to describe what it's for.
*************************************************************************/
//////////////////////////////////////////////////////////////////////////
#ifndef _CEGUISamplesConfig_h_
#define _CEGUISamplesConfig_h_
// Bring in main config file
#include "CEGUIConfig.h"
//////////////////////////////////////////////////////////////////////////
// The following are intended for X-Code users.
//
// The Linux build can both auto-configure itself, and also take
// configure parameters which control the settings presented below.
//
// The Premake solution will generate these for you according to the
// config.lua script.
//////////////////////////////////////////////////////////////////////////
#if defined(__APPLE__)
//////////////////////////////////////////////////////////////////////////
// Comment/Uncomment these lines to control renderer use in samples.
//////////////////////////////////////////////////////////////////////////
#define CEGUI_SAMPLES_USE_OPENGL
// If you want to enable the Irrlicht renderer in the samples:
// - In main project settings, set CEGUI_IRR_SDK_PATH to where your SDK is.
// - In main project settings, set CEGUI_IRR_SDK_VERSION to 12, 13 or 14
// - Build the CEGUIrrlichtRenderer framework(!) + add it to CEGUISampleHelper
// 'Linked libraries' in the General build settings.
// - Add $(CEGUI_IRR_LINK_FLAGS) and $(CEGUI_IRR_SAMPLE_LINK_FLAGS) to the
// 'Other Linker Flags' in the CEGUISampleHelper target build settings.
// - Uncomment the following line and build.
//#define CEGUI_SAMPLES_USE_IRRLICHT
#define CEGUI_SAMPLES_USE_OGRE
#endif // defined(__APPLE__)
#define CEGUI_SAMPLES_USE_OGRE
#endif // end of guard _CEGUISamplesConfig_h_
I noticed the #define CEGUI_SAMPLES_USE_OGRE was originally in __APPLE__
so I pasted one outside of it and compiled
there were some errors, but after I moved a couple of dll's and libs around ( specifically OgreMain_d.dll and OIS_d.dll into the CEGUI bin folder, but I think this is irrelevant)
then the drop down menu changed to Ogre dialog, which still showed no options
I noticed in another thread you said that when there's no options available, it means no Renderer Module was built
May I ask when did we build Renderer Module?
For Ogre all we built was CEGUIOgreRenderer along with CEGUIBase, and CEGUIFalagardWRBase, CEGUIExpatParser
I didn't noticed anything about Renderer Modules
So I tried tracing the CEGUISampleHelper project and see what I can find
here it is in CEGuiSample.cpp
Code: Select all
#ifdef CEGUI_SAMPLES_USE_OGRE
d_rendererSelector->setRendererAvailability(OgreGuiRendererType);
which CEGUI_SAMPLES_USE_OGRE is only defined in CEGUISamplesConfig.h
so it would mean that if I defined CEGUI_SAMPLES_USE_OGRE in that header
the option would be available right?
Can you enlighten me what I missed?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: No renderer options in sample programmes
In 0.7.x the settings will be in cegui/include/config.h and not CEGUISamplesConfig.h.
There are settings in config.lua to control the build of the CEGUIOgreRenderer module. Please see here: http://www.cegui.org.uk/wiki/index.php/ ... reRenderer
Once you get it all building, you'll also need to ensure you have a plugins.cfg file for Ogre to start up correctly.
CE.
There are settings in config.lua to control the build of the CEGUIOgreRenderer module. Please see here: http://www.cegui.org.uk/wiki/index.php/ ... reRenderer
Once you get it all building, you'll also need to ensure you have a plugins.cfg file for Ogre to start up correctly.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: No renderer options in sample programmes
Hi, thanks for the reply
do you mean config.h.in ?
or config.h ?
// config.h - generated by premake
// do not edit by hand, instead edit config.lua and regenerate
// it is important that you use premake recreate this file if changing xml parsers or codecs for the static builds
#define CEGUI_WITH_EXPAT 1
#define CEGUI_HAS_FREETYPE
#define CEGUI_CODEC_SILLY 1
#define CEGUI_DEFAULT_IMAGE_CODEC SILLYImageCodec
#define CEGUI_HAS_DEFAULT_LOGGER
#define CEGUI_HAS_PCRE_REGEX
#define CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER
#define CEGUI_FALAGARD_RENDERER
#define CEGUI_TINYXML_H "ceguitinyxml/tinyxml.h"
#define CEGUI_DEFAULT_XMLPARSER ExpatParser
#define CEGUI_TINYXML_NAMESPACE CEGUITinyXML
#define CEGUI_LUA_VER 51
#if defined(_DEBUG) || defined(DEBUG)
# define CEGUI_HAS_BUILD_SUFFIX
# define CEGUI_BUILD_SUFFIX "_d"
#endif
what do I do with it?
Oh and I did read through the link you gave me, but it gave no directions of how I might compile the samples or edit the configs to get the renderer modules built
oh, and once edited, should I rebuild whole CEGUI or just the sample solution?
reason I'm asking is because I edited config.h, added
#define CEGUI_SAMPLES_USE_OGRE 1
to it, but after compiling SampleHelper, it didn't make any difference in the Sample_demo6 or any other samples, still no option
do you mean config.h.in ?
or config.h ?
// config.h - generated by premake
// do not edit by hand, instead edit config.lua and regenerate
// it is important that you use premake recreate this file if changing xml parsers or codecs for the static builds
#define CEGUI_WITH_EXPAT 1
#define CEGUI_HAS_FREETYPE
#define CEGUI_CODEC_SILLY 1
#define CEGUI_DEFAULT_IMAGE_CODEC SILLYImageCodec
#define CEGUI_HAS_DEFAULT_LOGGER
#define CEGUI_HAS_PCRE_REGEX
#define CEGUI_HAS_MINIZIP_RESOURCE_PROVIDER
#define CEGUI_FALAGARD_RENDERER
#define CEGUI_TINYXML_H "ceguitinyxml/tinyxml.h"
#define CEGUI_DEFAULT_XMLPARSER ExpatParser
#define CEGUI_TINYXML_NAMESPACE CEGUITinyXML
#define CEGUI_LUA_VER 51
#if defined(_DEBUG) || defined(DEBUG)
# define CEGUI_HAS_BUILD_SUFFIX
# define CEGUI_BUILD_SUFFIX "_d"
#endif
what do I do with it?
Oh and I did read through the link you gave me, but it gave no directions of how I might compile the samples or edit the configs to get the renderer modules built
oh, and once edited, should I rebuild whole CEGUI or just the sample solution?
reason I'm asking is because I edited config.h, added
#define CEGUI_SAMPLES_USE_OGRE 1
to it, but after compiling SampleHelper, it didn't make any difference in the Sample_demo6 or any other samples, still no option
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: No renderer options in sample programmes
In the past when I had done this, I generally set the option to include the samples in the main solution - perhaps things are different when using the separate samples solution? I'm not certain.
All I ever did was edit config.lua, set up the paths as described in that Wiki article, set OGRE_RENDERER and SAMPLES_OGRE to true, run premake (or the batch file) to generate the project files and build...
CE.
All I ever did was edit config.lua, set up the paths as described in that Wiki article, set OGRE_RENDERER and SAMPLES_OGRE to true, run premake (or the batch file) to generate the project files and build...
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: No renderer options in sample programmes
Thanks for the reply CE.
but
I still have no luck compiling the samples
I dont know if building CEGUI multiple times made the project solution's property sheets' directories all jumbled up or not,
but even after I've tried and linked everything required up, going through all those directory searching and fixing the property sheets,
it compiled, but with the same result = no options available
I even tried it on another computer in my lab to meeting the same problems all over.
thanks for the time in reading and helping CE,
but I think i'm done
the ride was surprisingly educational, but guess its still too rough for me
- Max
but
I still have no luck compiling the samples
I dont know if building CEGUI multiple times made the project solution's property sheets' directories all jumbled up or not,
but even after I've tried and linked everything required up, going through all those directory searching and fixing the property sheets,
it compiled, but with the same result = no options available
I even tried it on another computer in my lab to meeting the same problems all over.
thanks for the time in reading and helping CE,
but I think i'm done
the ride was surprisingly educational, but guess its still too rough for me
- Max
Who is online
Users browsing this forum: No registered users and 25 guests