[Solved] Building 3.2 with vs2008 sln...

ZealAddon

18-10-2011 23:01:39

So I downloaded mygui 3.2 along with the visual studio solution, but I cant quite figure out how to point the solution to the ogre include/src directories. I am using vs2008, and there is no 'additional include directories' in the project properties. The wiki only talks about building with cmake, so I didnt find any help there... What am I missing here?

*Is there a tutorial wiki anywhere that describes the steps needed to build with vs? If I recall when I built a earlier version a long time ago I also had to point mygui to some other dependencies (like freetype). Do I still need to do that for 3.2?

simed

19-10-2011 08:32:04

Did you try using CMake or are you trying to do this manually?

ZealAddon

19-10-2011 19:16:51

Dont have cmake on this box, thats why I downloaded the visual studio solutions. I used cmake once a long time ago, would rather avoid having to use it if possible. Its strange, I have never seen a project setup like this, there is just no way to specify dependencies... I mean it must be there.. but where?

simed

19-10-2011 19:48:15

CMake and the SLNs are not contrary - CMake creates the SLNs. That said, I remember building MyGUI without CMake in the past although that was 2.x.

Anyway - don't you just add your Ogre header path to the VC++ "Configuration Properties->C/C++: Additional Include Directories", and Ogre lib path to ""Configuration Properties->Linker->General: Additional Library Directories" for the few projects which require Ogre? You need to be doing this for each PROJECT, not the SOLUTION, remember.

Few MyGUI projects depend on Ogre - in fact maybe only MyGUI.OgrePlatform - though I see MyGUIEngine uses the Ogre dependency dir presumably for FreeType.

Sorry if that doesn't help, if not you'll have to wait for someone who knows properly rather than someone who just managed to get it to build!

ZealAddon

19-10-2011 21:28:07

Prebuilt visual studio solutions can be found here... https://sourceforge.net/projects/my-gui ... 3.2.0_RC1/
Are you saying I still need to use cmake if I am using those?...

Anyway - don't you just add your Ogre header path to the VC++ "Configuration Properties->C/C++: Additional Include Directories", and Ogre lib path to ""Configuration Properties->Linker->General: Additional Library Directories" for the few projects which require Ogre? You need to be doing this for each PROJECT, not the SOLUTION, remember.

Thats my whole problem - The "ALL_BUILD" project has no where (that I can see at least) to specify the path to the ogre lib. There is no "Configuration Properties->C/C++: Additional Include Directories". Its just not there.

simed

19-10-2011 22:14:16

I assume pre-built SLns don't need CMAKE.

But, ALL_BUILD is not a C++ project, it is a special project to build all the actual code projects and copy files around to right places. You need to set include dirs on the specific projects which need Ogre... such as MyGUI.OgrePlatform and MyGUIEngine. Take a look at project properties on those and it should look more familiar.

ZealAddon

19-10-2011 22:40:08

Ah right you are! Ok so I am pointing all the 'ogrey' projects to my ogre include directory, but I am getting a new error about "ft2build.h" (free type?).

..\..\MyGUIEngine\src\MyGUI_ResourceTrueTypeFont.cpp(28) : fatal error C1083: Cannot open include file: 'ft2build.h': No such file or directory

also

\ogre_src_v1-7-1\ogremain\include\OgreConfig.h(35) : fatal error C1083: Cannot open include file: 'OgreBuildSettings.h': No such file or directory

BTW is there some 'mygui dependencies' directory I can just copy the ogre headers to so that I dont have to manually point a hundred different projects?

simed

20-10-2011 08:22:26

The first one is because MyGUI requires freetype. This is normally included with Ogre since Ogre also uses it... typically in a dir called <ogre>/dependencies.

I don't know about the 2nd one - I think you'll have to play around and maybe ask on the main Ogre forum.

ZealAddon

20-10-2011 21:19:51

Ok I downloaded and built the ogre dependencies (freetype was among them). But configuring all these projects to point to the correct directories will be a royal pain. I see now that there is a OGRE_SRC and OGRE_HOME variable being used in all the projects that seem to depend on ogre. How do I set this variable in vs 2008 so that it points to my ogre directory?

ZealAddon

21-10-2011 05:10:54

Wohoo ok figured it out. Turns out the vs project depends on two environment variables (OGRE_HOME and OGRE_SRC). Not sure how you set them locally in vs, but I found this that explains how to set them globally in win 7....

http://www.itechtalk.com/thread3595.html

Point HOME to your ogre headers, and SRC to your ogre libs. And you also need to create a Dependencies folder in the MyGUI root dir, and toss in the freetype headers and lib. Everything builds fine now, no errors, BUT I get a crash when trying to run any of the demos, it looks like Ogre is complaining about some viewport orientation?

22:05:14: Creating resource group General
22:05:14: Creating resource group Internal
22:05:14: Creating resource group Autodetect
22:05:14: SceneManagerFactory for type 'DefaultSceneManager' registered.
22:05:14: Registering ResourceManager for type Material
22:05:14: Registering ResourceManager for type Mesh
22:05:14: Registering ResourceManager for type Skeleton
22:05:14: MovableObjectFactory for type 'ParticleSystem' registered.
22:05:14: OverlayElementFactory for type Panel registered.
22:05:14: OverlayElementFactory for type BorderPanel registered.
22:05:14: OverlayElementFactory for type TextArea registered.
22:05:14: Registering ResourceManager for type Font
22:05:14: ArchiveFactory for archive type FileSystem registered.
22:05:14: ArchiveFactory for archive type Zip registered.
22:05:14: DDS codec registering
22:05:14: FreeImage version: 3.13.1
22:05:14: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
22:05:14: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
22:05:14: Registering ResourceManager for type HighLevelGpuProgram
22:05:14: Registering ResourceManager for type Compositor
22:05:14: MovableObjectFactory for type 'Entity' registered.
22:05:14: MovableObjectFactory for type 'Light' registered.
22:05:14: MovableObjectFactory for type 'BillboardSet' registered.
22:05:14: MovableObjectFactory for type 'ManualObject' registered.
22:05:14: MovableObjectFactory for type 'BillboardChain' registered.
22:05:14: MovableObjectFactory for type 'RibbonTrail' registered.
22:05:14: Loading library .\RenderSystem_Direct3D9_d
22:05:14: Installing plugin: D3D9 RenderSystem
22:05:14: D3D9 : Direct3D9 Rendering Subsystem created.
22:05:14: D3D9: Driver Detection Starts
22:05:14: D3D9: Driver Detection Ends
22:05:14: Plugin successfully installed
22:05:14: Loading library .\RenderSystem_GL_d
22:05:14: Installing plugin: GL RenderSystem
22:05:14: OpenGL Rendering Subsystem created.
22:05:15: Plugin successfully installed
22:05:15: *-*-* OGRE Initialising
22:05:15: *-*-* Version 1.7.2 (Cthugha)
22:05:15: Added resource location '../../../Media' of type 'FileSystem' to resource group 'General'
22:05:15: Added resource location '../../../Media/MyGUI_Media' of type 'FileSystem' to resource group 'General'
22:05:15: Added resource location '../../../Media/Common/Base' of type 'FileSystem' to resource group 'General'
22:05:15: Added resource location '../../../Media/Demos/Demo_Colour' of type 'FileSystem' to resource group 'General'
22:05:15: Added resource location '../../../Media/Common/Demos' of type 'FileSystem' to resource group 'General'
22:05:15: OGRE EXCEPTION(6:FileNotFoundException): 'ogre.cfg' file not found! in ConfigFile::load at ..\..\..\..\OgreMain\src\OgreConfigFile.cpp (line 83)
22:05:15: OGRE EXCEPTION(6:FileNotFoundException): 'ogre.cfg' file not found! in ConfigFile::load at ..\..\..\..\OgreMain\src\OgreConfigFile.cpp (line 83)
22:05:24: D3D9 : RenderSystem Option: Full Screen = No
22:05:24: CPU Identifier & Features
22:05:24: -------------------------
22:05:24: * CPU ID: AuthenticAMD: AMD Phenom(tm) II X4 955 Processor
22:05:24: * SSE: yes
22:05:24: * SSE2: yes
22:05:24: * SSE3: yes
22:05:24: * MMX: yes
22:05:24: * MMXEXT: yes
22:05:24: * 3DNOW: yes
22:05:24: * 3DNOWEXT: yes
22:05:24: * CMOV: yes
22:05:24: * TSC: yes
22:05:24: * FPU: yes
22:05:24: * PRO: yes
22:05:24: * HT: no
22:05:24: -------------------------
22:05:24: D3D9 : Subsystem Initialising
22:05:24: Registering ResourceManager for type Texture
22:05:24: Registering ResourceManager for type GpuProgram
22:05:24: D3D9RenderSystem::_createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=false vsyncInterval=1
22:05:24: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
22:05:24: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
22:05:25: D3D9: Vertex texture format supported - PF_L8
22:05:25: D3D9: Vertex texture format supported - PF_L16
22:05:25: D3D9: Vertex texture format supported - PF_A8
22:05:25: D3D9: Vertex texture format supported - PF_A4L4
22:05:25: D3D9: Vertex texture format supported - PF_BYTE_LA
22:05:25: D3D9: Vertex texture format supported - PF_R5G6B5
22:05:25: D3D9: Vertex texture format supported - PF_B5G6R5
22:05:25: D3D9: Vertex texture format supported - PF_A4R4G4B4
22:05:25: D3D9: Vertex texture format supported - PF_A1R5G5B5
22:05:25: D3D9: Vertex texture format supported - PF_A8R8G8B8
22:05:25: D3D9: Vertex texture format supported - PF_B8G8R8A8
22:05:25: D3D9: Vertex texture format supported - PF_A2R10G10B10
22:05:25: D3D9: Vertex texture format supported - PF_A2B10G10R10
22:05:25: D3D9: Vertex texture format supported - PF_DXT1
22:05:25: D3D9: Vertex texture format supported - PF_DXT2
22:05:25: D3D9: Vertex texture format supported - PF_DXT3
22:05:25: D3D9: Vertex texture format supported - PF_DXT4
22:05:25: D3D9: Vertex texture format supported - PF_DXT5
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
22:05:25: D3D9: Vertex texture format supported - PF_X8R8G8B8
22:05:25: D3D9: Vertex texture format supported - PF_X8B8G8R8
22:05:25: D3D9: Vertex texture format supported - PF_R8G8B8A8
22:05:25: D3D9: Vertex texture format supported - PF_DEPTH
22:05:25: D3D9: Vertex texture format supported - PF_SHORT_RGBA
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT16_R
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT32_R
22:05:25: D3D9: Vertex texture format supported - PF_SHORT_GR
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT16_GR
22:05:25: D3D9: Vertex texture format supported - PF_FLOAT32_GR
22:05:25: D3D9: Vertex texture format supported - PF_SHORT_RGB
22:05:25: D3D9: Vertex texture format supported - PF_PVRTC_RGB2
22:05:25: D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
22:05:25: D3D9: Vertex texture format supported - PF_PVRTC_RGB4
22:05:25: D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
22:05:25: RenderSystem capabilities
22:05:25: -------------------------
22:05:25: RenderSystem Name: Direct3D9 Rendering Subsystem
22:05:25: GPU Vendor: ati
22:05:25: Device Name: Monitor-1-ATI Radeon HD 4800 Series
22:05:25: Driver Version: 8.17.10.1077
22:05:25: * Fixed function pipeline: yes
22:05:25: * Hardware generation of mipmaps: yes
22:05:25: * Texture blending: yes
22:05:25: * Anisotropic texture filtering: yes
22:05:25: * Dot product texture operation: yes
22:05:25: * Cube mapping: yes
22:05:25: * Hardware stencil buffer: yes
22:05:25: - Stencil depth: 8
22:05:25: - Two sided stencil support: yes
22:05:25: - Wrap stencil values: yes
22:05:25: * Hardware vertex / index buffers: yes
22:05:25: * Vertex programs: yes
22:05:25: * Number of floating-point constants for vertex programs: 256
22:05:25: * Number of integer constants for vertex programs: 16
22:05:25: * Number of boolean constants for vertex programs: 16
22:05:25: * Fragment programs: yes
22:05:25: * Number of floating-point constants for fragment programs: 224
22:05:25: * Number of integer constants for fragment programs: 16
22:05:25: * Number of boolean constants for fragment programs: 16
22:05:25: * Geometry programs: no
22:05:25: * Number of floating-point constants for geometry programs: 52428
22:05:25: * Number of integer constants for geometry programs: 52428
22:05:25: * Number of boolean constants for geometry programs: 52428
22:05:25: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
22:05:25: * Texture Compression: yes
22:05:25: - DXT: yes
22:05:25: - VTC: no
22:05:25: - PVRTC: no
22:05:25: * Scissor Rectangle: yes
22:05:25: * Hardware Occlusion Query: yes
22:05:25: * User clip planes: yes
22:05:25: * VET_UBYTE4 vertex element type: yes
22:05:25: * Infinite far plane projection: yes
22:05:25: * Hardware render-to-texture: yes
22:05:25: * Floating point textures: yes
22:05:25: * Non-power-of-two textures: yes
22:05:25: * Volume textures: yes
22:05:25: * Multiple Render Targets: 4
22:05:25: - With different bit depths: yes
22:05:25: * Point Sprites: yes
22:05:25: * Extended point parameters: yes
22:05:25: * Max Point Size: 10
22:05:25: * Vertex texture fetch: yes
22:05:25: * Number of world matrices: 0
22:05:25: * Number of texture units: 8
22:05:25: * Stencil buffer depth: 8
22:05:25: * Number of vertex blend matrices: 0
22:05:25: - Max vertex textures: 4
22:05:25: - Vertex textures shared: no
22:05:25: * Render to Vertex Buffer : no
22:05:25: * DirectX per stage constants: yes
22:05:25: ***************************************
22:05:25: *** D3D9 : Subsystem Initialised OK ***
22:05:25: ***************************************
22:05:25: DefaultWorkQueue('Root') initialising on thread 0032EEA0.
22:05:25: DefaultWorkQueue('Root')::WorkerFunc - thread 00349100 starting.
22:05:25: DefaultWorkQueue('Root')::WorkerFunc - thread 00349130 starting.
22:05:25: DefaultWorkQueue('Root')::WorkerFunc - thread 00349190 starting.
22:05:25: DefaultWorkQueue('Root')::WorkerFunc - thread 003491F0 starting.
22:05:25: Particle Renderer Type 'billboard' registered
22:05:25: Parsing scripts for resource group Autodetect
22:05:25: Finished parsing scripts for resource group Autodetect
22:05:25: Parsing scripts for resource group General
22:05:25: Finished parsing scripts for resource group General
22:05:25: Parsing scripts for resource group Internal
22:05:25: Finished parsing scripts for resource group Internal
22:05:25: OGRE EXCEPTION(9:UnimplementedException): Getting Viewport orientation mode is not supported in Ogre::Viewport::getOrientationMode at ..\..\..\..\OgreMain\src\OgreViewport.cpp (line 243)


Zuh?

*edit

Guh, well I see in the ogre src for the viewport class...

//---------------------------------------------------------------------
OrientationMode Viewport::getOrientationMode() const
{
#if OGRE_NO_VIEWPORT_ORIENTATIONMODE != 0
OGRE_EXCEPT(Exception::ERR_NOT_IMPLEMENTED,
"Getting Viewport orientation mode is not supported",
__FUNCTION__);
#endif
return mOrientationMode;
}


I assume that flag was enabled in the 1.7.2 prebuilt ogre sdk (thats what I was linking MyGUI with). Do I need to build Ogre from source and turn off this flag? That doesnt seem right... whats going on here...

ZealAddon

21-10-2011 19:04:21

Gah well getting closer. I set the flag in my build settings so were not getting those viewport orientation errors anymore, but now I am getting a new error when I launch any of the demos...

Debug Error!

Run-Time check failure #2 - Stack around the variable 'stream' was corrupeted.


Unfortunately I dont see anything in the ogre log or my gui log....

12:00:44: Creating resource group General
12:00:44: Creating resource group Internal
12:00:44: Creating resource group Autodetect
12:00:44: SceneManagerFactory for type 'DefaultSceneManager' registered.
12:00:44: Registering ResourceManager for type Material
12:00:44: Registering ResourceManager for type Mesh
12:00:44: Registering ResourceManager for type Skeleton
12:00:44: MovableObjectFactory for type 'ParticleSystem' registered.
12:00:44: OverlayElementFactory for type Panel registered.
12:00:44: OverlayElementFactory for type BorderPanel registered.
12:00:44: OverlayElementFactory for type TextArea registered.
12:00:44: Registering ResourceManager for type Font
12:00:44: ArchiveFactory for archive type FileSystem registered.
12:00:44: ArchiveFactory for archive type Zip registered.
12:00:44: DDS codec registering
12:00:44: FreeImage version: 3.13.1
12:00:44: This program uses FreeImage, a free, open source image library supporting all common bitmap formats. See http://freeimage.sourceforge.net for details
12:00:44: Supported formats: bmp,ico,jpg,jif,jpeg,jpe,jng,koa,iff,lbm,mng,pbm,pbm,pcd,pcx,pgm,pgm,png,ppm,ppm,ras,tga,targa,tif,tiff,wap,wbmp,wbm,psd,cut,xbm,xpm,gif,hdr,g3,sgi,exr,j2k,j2c,jp2,pfm,pct,pict,pic,bay,bmq,cr2,crw,cs1,dc2,dcr,dng,erf,fff,hdr,k25,kdc,mdc,mos,mrw,nef,orf,pef,pxn,raf,raw,rdc,sr2,srf,arw,3fr,cine,ia,kc2,mef,nrw,qtk,rw2,sti,drf,dsc,ptx,cap,iiq,rwz
12:00:44: Registering ResourceManager for type HighLevelGpuProgram
12:00:44: Registering ResourceManager for type Compositor
12:00:44: MovableObjectFactory for type 'Entity' registered.
12:00:44: MovableObjectFactory for type 'Light' registered.
12:00:44: MovableObjectFactory for type 'BillboardSet' registered.
12:00:44: MovableObjectFactory for type 'ManualObject' registered.
12:00:44: MovableObjectFactory for type 'BillboardChain' registered.
12:00:44: MovableObjectFactory for type 'RibbonTrail' registered.
12:00:44: Loading library .\RenderSystem_Direct3D9_d
12:00:44: Installing plugin: D3D9 RenderSystem
12:00:44: D3D9 : Direct3D9 Rendering Subsystem created.
12:00:44: D3D9: Driver Detection Starts
12:00:44: D3D9: Driver Detection Ends
12:00:44: Plugin successfully installed
12:00:44: Loading library .\RenderSystem_GL_d
12:00:44: Installing plugin: GL RenderSystem
12:00:44: OpenGL Rendering Subsystem created.
12:00:45: Plugin successfully installed
12:00:45: *-*-* OGRE Initialising
12:00:45: *-*-* Version 1.7.2 (Cthugha)
12:00:45: Added resource location '../../../Media' of type 'FileSystem' to resource group 'General'
12:00:45: Added resource location '../../../Media/MyGUI_Media' of type 'FileSystem' to resource group 'General'
12:00:45: Added resource location '../../../Media/Common/Base' of type 'FileSystem' to resource group 'General'
12:00:45: Added resource location '../../../Media/Demos/Demo_Colour' of type 'FileSystem' to resource group 'General'
12:00:45: Added resource location '../../../Media/Common/Demos' of type 'FileSystem' to resource group 'General'
12:00:45: D3D9 : RenderSystem Option: Allow NVPerfHUD = No
12:00:45: D3D9 : RenderSystem Option: FSAA = 0
12:00:45: D3D9 : RenderSystem Option: Floating-point mode = Fastest
12:00:45: D3D9 : RenderSystem Option: Full Screen = No
12:00:45: D3D9 : RenderSystem Option: Rendering Device = Monitor-1-ATI Radeon HD 4800 Series
12:00:45: D3D9 : RenderSystem Option: Resource Creation Policy = Create on all devices
12:00:45: D3D9 : RenderSystem Option: VSync = No
12:00:45: D3D9 : RenderSystem Option: VSync Interval = 1
12:00:45: D3D9 : RenderSystem Option: Video Mode = 800 x 600 @ 32-bit colour
12:00:45: D3D9 : RenderSystem Option: sRGB Gamma Conversion = No
12:00:45: CPU Identifier & Features
12:00:45: -------------------------
12:00:45: * CPU ID: AuthenticAMD: AMD Phenom(tm) II X4 955 Processor
12:00:45: * SSE: yes
12:00:45: * SSE2: yes
12:00:45: * SSE3: yes
12:00:45: * MMX: yes
12:00:45: * MMXEXT: yes
12:00:45: * 3DNOW: yes
12:00:45: * 3DNOWEXT: yes
12:00:45: * CMOV: yes
12:00:45: * TSC: yes
12:00:45: * FPU: yes
12:00:45: * PRO: yes
12:00:45: * HT: no
12:00:45: -------------------------
12:00:45: D3D9 : Subsystem Initialising
12:00:45: Registering ResourceManager for type Texture
12:00:45: Registering ResourceManager for type GpuProgram
12:00:45: D3D9RenderSystem::_createRenderWindow "OGRE Render Window", 800x600 windowed miscParams: FSAA=0 FSAAHint= colourDepth=32 gamma=false monitorIndex=0 useNVPerfHUD=false vsync=false vsyncInterval=1
12:00:45: D3D9 : Created D3D9 Rendering Window 'OGRE Render Window' : 800x600, 32bpp
12:00:45: D3D9 : WARNING - disabling VSync in windowed mode can cause timing issues at lower frame rates, turn VSync on if you observe this problem.
12:00:45: D3D9: Vertex texture format supported - PF_L8
12:00:45: D3D9: Vertex texture format supported - PF_L16
12:00:45: D3D9: Vertex texture format supported - PF_A8
12:00:45: D3D9: Vertex texture format supported - PF_A4L4
12:00:45: D3D9: Vertex texture format supported - PF_BYTE_LA
12:00:45: D3D9: Vertex texture format supported - PF_R5G6B5
12:00:45: D3D9: Vertex texture format supported - PF_B5G6R5
12:00:45: D3D9: Vertex texture format supported - PF_A4R4G4B4
12:00:45: D3D9: Vertex texture format supported - PF_A1R5G5B5
12:00:45: D3D9: Vertex texture format supported - PF_A8R8G8B8
12:00:45: D3D9: Vertex texture format supported - PF_B8G8R8A8
12:00:45: D3D9: Vertex texture format supported - PF_A2R10G10B10
12:00:45: D3D9: Vertex texture format supported - PF_A2B10G10R10
12:00:45: D3D9: Vertex texture format supported - PF_DXT1
12:00:45: D3D9: Vertex texture format supported - PF_DXT2
12:00:45: D3D9: Vertex texture format supported - PF_DXT3
12:00:45: D3D9: Vertex texture format supported - PF_DXT4
12:00:45: D3D9: Vertex texture format supported - PF_DXT5
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT16_RGB
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT16_RGBA
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT32_RGB
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT32_RGBA
12:00:45: D3D9: Vertex texture format supported - PF_X8R8G8B8
12:00:45: D3D9: Vertex texture format supported - PF_X8B8G8R8
12:00:45: D3D9: Vertex texture format supported - PF_R8G8B8A8
12:00:45: D3D9: Vertex texture format supported - PF_DEPTH
12:00:45: D3D9: Vertex texture format supported - PF_SHORT_RGBA
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT16_R
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT32_R
12:00:45: D3D9: Vertex texture format supported - PF_SHORT_GR
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT16_GR
12:00:45: D3D9: Vertex texture format supported - PF_FLOAT32_GR
12:00:45: D3D9: Vertex texture format supported - PF_SHORT_RGB
12:00:45: D3D9: Vertex texture format supported - PF_PVRTC_RGB2
12:00:45: D3D9: Vertex texture format supported - PF_PVRTC_RGBA2
12:00:45: D3D9: Vertex texture format supported - PF_PVRTC_RGB4
12:00:45: D3D9: Vertex texture format supported - PF_PVRTC_RGBA4
12:00:45: RenderSystem capabilities
12:00:45: -------------------------
12:00:45: RenderSystem Name: Direct3D9 Rendering Subsystem
12:00:45: GPU Vendor: ati
12:00:45: Device Name: Monitor-1-ATI Radeon HD 4800 Series
12:00:45: Driver Version: 8.17.10.1077
12:00:45: * Fixed function pipeline: yes
12:00:45: * Hardware generation of mipmaps: yes
12:00:45: * Texture blending: yes
12:00:45: * Anisotropic texture filtering: yes
12:00:45: * Dot product texture operation: yes
12:00:45: * Cube mapping: yes
12:00:45: * Hardware stencil buffer: yes
12:00:45: - Stencil depth: 8
12:00:45: - Two sided stencil support: yes
12:00:45: - Wrap stencil values: yes
12:00:45: * Hardware vertex / index buffers: yes
12:00:45: * Vertex programs: yes
12:00:45: * Number of floating-point constants for vertex programs: 256
12:00:45: * Number of integer constants for vertex programs: 16
12:00:45: * Number of boolean constants for vertex programs: 16
12:00:45: * Fragment programs: yes
12:00:45: * Number of floating-point constants for fragment programs: 224
12:00:45: * Number of integer constants for fragment programs: 16
12:00:45: * Number of boolean constants for fragment programs: 16
12:00:45: * Geometry programs: no
12:00:45: * Number of floating-point constants for geometry programs: 52428
12:00:45: * Number of integer constants for geometry programs: 52428
12:00:45: * Number of boolean constants for geometry programs: 52428
12:00:45: * Supported Shader Profiles: hlsl ps_1_1 ps_1_2 ps_1_3 ps_1_4 ps_2_0 ps_2_a ps_2_b ps_2_x ps_3_0 vs_1_1 vs_2_0 vs_2_a vs_2_x vs_3_0
12:00:45: * Texture Compression: yes
12:00:45: - DXT: yes
12:00:45: - VTC: no
12:00:45: - PVRTC: no
12:00:45: * Scissor Rectangle: yes
12:00:45: * Hardware Occlusion Query: yes
12:00:45: * User clip planes: yes
12:00:45: * VET_UBYTE4 vertex element type: yes
12:00:45: * Infinite far plane projection: yes
12:00:45: * Hardware render-to-texture: yes
12:00:45: * Floating point textures: yes
12:00:45: * Non-power-of-two textures: yes
12:00:45: * Volume textures: yes
12:00:45: * Multiple Render Targets: 4
12:00:45: - With different bit depths: yes
12:00:45: * Point Sprites: yes
12:00:45: * Extended point parameters: yes
12:00:45: * Max Point Size: 10
12:00:45: * Vertex texture fetch: yes
12:00:45: * Number of world matrices: 0
12:00:45: * Number of texture units: 8
12:00:45: * Stencil buffer depth: 8
12:00:45: * Number of vertex blend matrices: 0
12:00:45: - Max vertex textures: 4
12:00:45: - Vertex textures shared: no
12:00:45: * Render to Vertex Buffer : no
12:00:45: * DirectX per stage constants: yes
12:00:45: ***************************************
12:00:45: *** D3D9 : Subsystem Initialised OK ***
12:00:45: ***************************************
12:00:45: DefaultWorkQueue('Root') initialising on thread 0026EEC8.
12:00:45: DefaultWorkQueue('Root')::WorkerFunc - thread 00285218 starting.
12:00:45: DefaultWorkQueue('Root')::WorkerFunc - thread 00285248 starting.
12:00:45: DefaultWorkQueue('Root')::WorkerFunc - thread 002852A8 starting.
12:00:45: DefaultWorkQueue('Root')::WorkerFunc - thread 00285308 starting.
12:00:45: Particle Renderer Type 'billboard' registered
12:00:45: Parsing scripts for resource group Autodetect
12:00:45: Finished parsing scripts for resource group Autodetect
12:00:45: Parsing scripts for resource group General
12:00:45: Finished parsing scripts for resource group General
12:00:45: Parsing scripts for resource group Internal
12:00:45: Finished parsing scripts for resource group Internal


12:00:45 | Core | Info | * Initialise: RenderManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 35
12:00:45 | Core | Info | RenderManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreRenderManager.cpp | 63
12:00:45 | Core | Info | * Initialise: DataManager | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 26
12:00:45 | Core | Info | DataManager successfully initialized | ..\..\..\..\Platforms\Ogre\OgrePlatform\src\MyGUI_OgreDataManager.cpp | 30
12:00:45 | Core | Info | * Initialise: Gui | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 75
12:00:45 | Core | Info | * MyGUI version 3.2.0.4077 | ..\..\MyGUIEngine\src\MyGUI_Gui.cpp | 82
12:00:45 | Core | Info | * Initialise: ResourceManager | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 48
12:00:45 | Core | Info | ResourceManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ResourceManager.cpp | 56
12:00:45 | Core | Info | * Initialise: LayerManager | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 49
12:00:45 | Core | Info | LayerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayerManager.cpp | 57
12:00:45 | Core | Info | * Initialise: WidgetManager | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 67
12:00:45 | Core | Info | WidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_WidgetManager.cpp | 98
12:00:45 | Core | Info | * Initialise: InputManager | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 58
12:00:45 | Core | Info | InputManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_InputManager.cpp | 76
12:00:45 | Core | Info | * Initialise: SubWidgetManager | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 49
12:00:45 | Core | Info | SubWidgetManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SubWidgetManager.cpp | 69
12:00:45 | Core | Info | * Initialise: SkinManager | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 53
12:00:45 | Core | Info | SkinManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_SkinManager.cpp | 61
12:00:45 | Core | Info | * Initialise: FontManager | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 48
12:00:45 | Core | Info | FontManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FontManager.cpp | 57
12:00:45 | Core | Info | * Initialise: ControllerManager | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 46
12:00:45 | Core | Info | ControllerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ControllerManager.cpp | 56
12:00:45 | Core | Info | * Initialise: PointerManager | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 60
12:00:45 | Core | Info | PointerManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PointerManager.cpp | 78
12:00:45 | Core | Info | * Initialise: ClipboardManager | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 87
12:00:45 | Core | Info | ClipboardManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ClipboardManager.cpp | 101
12:00:45 | Core | Info | * Initialise: LayoutManager | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 45
12:00:45 | Core | Info | LayoutManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LayoutManager.cpp | 50
12:00:45 | Core | Info | * Initialise: DynLibManager | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 41
12:00:45 | Core | Info | DynLibManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_DynLibManager.cpp | 45
12:00:45 | Core | Info | * Initialise: PluginManager | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 45
12:00:45 | Core | Info | PluginManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_PluginManager.cpp | 49
12:00:45 | Core | Info | * Initialise: LanguageManager | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 45
12:00:45 | Core | Info | LanguageManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_LanguageManager.cpp | 49
12:00:45 | Core | Info | * Initialise: FactoryManager | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 40
12:00:45 | Core | Info | FactoryManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_FactoryManager.cpp | 42
12:00:45 | Core | Info | * Initialise: ToolTipManager | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 48
12:00:45 | Core | Info | ToolTipManager successfully initialized | ..\..\MyGUIEngine\src\MyGUI_ToolTipManager.cpp | 60


Now I am completely stuck :(

*fyI I get the "Run-Time check failure #2 - Stack around the variable 'stream' was corrupeted." error when I call 'initialize' on my MyGUI::Gui instance. The call trace barfs at the call to OgreDataManager::getData(const std::string& _name). I have rebuilt mygui multiple times from scratch, both debug and release, yet I still get this damn 'Run-Time check failure #2' error when trying to run any of the demos.

ZealAddon

22-10-2011 04:35:12

Wohoo got it! Turns out it was an error in my OgreBuild settings, and MyGUI was not properly building with boost. The OGRE_HOME environment variable was pointing to a different/wrong ogre src directory which did not contain the correct OgreBuildSettings.h, so MyGUI was trying to link against a slightly 'off' ogre lib. Once I fixed that, the 'Run-Time check failure #2' error went away, and I can finally run all the demos!

simed

22-10-2011 12:17:33

Congratulations!