Scarfman007
28-05-2006 12:44:45
Hi everyone,
I'm really impressed with what I've seen from Ogre, OgreDotNet and the community so far, but I'm very confused as to how to get it to build!
My VS2003 has VB.NET, C# and C++ support installed, I also have the platform SDK and newest DirectX SDK set up, if that is of any relevance.
I've been following the wiki instructions as best I can, here is what I did:
1) Downloaded (and installed to C:\OgreSDK) the Ogre SDK from here.
2) Used tortoiseCVS to get OgreDotNet using command ":pserver:anonymous@ogre.cvs.sourceforge.net:/cvsroot/ogre".
3) Downloaded latest version (swigwin-1.3.29) of, and set up, SWIG. The environment variable is set up.
4) Opened "OgreDotNet.sln", checked the C++ library and include paths as per the wiki.
5) Attempted to build the debug version.
After much puffing and grunting from my PC it partially succeeds. GangstaDotNet doesn't work, so I remove the Gangsta* projects (don't need them yet) and the DemoGAPyramid demo, and attempted to build again.
All the *.cs files are generated except for those in OgreNet.CeguiRenderer - OgreBindings_Cegui.cs, OgreBindings_CeguiPINVOKE.cs, OgreCEGUIRenderer.cs, OgreCEGUIResourceProvider.cs and OgreCEGUITexture.cs.
So I try to manually compile each *.i file from the *Bindings projects. The all work except OgreBindings.Cegui.i in the project OgreBindings_Cegui, which gives the output:
They appear to be the C++ versions of the missing OgreCEGUIRenderer.cs, OgreCEGUIResourceProvider.cs and OgreCEGUITexture.cs files?
Looking where it is looking (C:\OgreSDK\include and C:\OgreSDK\include\CEGUI) I can't find these files, either. In C:\OgreSDK\include\CEGUI I can however find: CEGUIRenderer.h, CEGUIResourceProvider.h and OgreCEGUITexture.h. So I edited OgreBindings.Cegui.i, changing all #include and %include references to the .h files that I could find. If I now try to compile it gives:
Where c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(68) is:
I'm really stuck now . I hope that someone can point out where I have gone wrong...
Thanks a lot,
Scarfman007
I'm really impressed with what I've seen from Ogre, OgreDotNet and the community so far, but I'm very confused as to how to get it to build!
My VS2003 has VB.NET, C# and C++ support installed, I also have the platform SDK and newest DirectX SDK set up, if that is of any relevance.
I've been following the wiki instructions as best I can, here is what I did:
1) Downloaded (and installed to C:\OgreSDK) the Ogre SDK from here.
2) Used tortoiseCVS to get OgreDotNet using command ":pserver:anonymous@ogre.cvs.sourceforge.net:/cvsroot/ogre".
3) Downloaded latest version (swigwin-1.3.29) of, and set up, SWIG. The environment variable is set up.
4) Opened "OgreDotNet.sln", checked the C++ library and include paths as per the wiki.
5) Attempted to build the debug version.
After much puffing and grunting from my PC it partially succeeds. GangstaDotNet doesn't work, so I remove the Gangsta* projects (don't need them yet) and the DemoGAPyramid demo, and attempted to build again.
All the *.cs files are generated except for those in OgreNet.CeguiRenderer - OgreBindings_Cegui.cs, OgreBindings_CeguiPINVOKE.cs, OgreCEGUIRenderer.cs, OgreCEGUIResourceProvider.cs and OgreCEGUITexture.cs.
So I try to manually compile each *.i file from the *Bindings projects. The all work except OgreBindings.Cegui.i in the project OgreBindings_Cegui, which gives the output:
Invoking Swig on OgreBindings.Cegui.i
c:\Documents and Settings\rg127543\My Documents\Visual Studio Projects\ogredotnet\OgreNet.Cegui>"C:\Program Files\swigwin-1.3.29\swig.exe" -c++ -csharp -namespace OgreDotNet.Cegui -D_SWIG_VS2003 -I"c:\OgreSDK\include" -I"c:\OgreSDK\include\CEGUI" OgreBindings.Cegui.i
OgreBindings.Cegui.i(129): Error: Unable to find 'OgreCEGUIRenderer.h'
OgreBindings.Cegui.i(133): Error: Unable to find 'OgreCEGUIResourceProvider.h'
OgreBindings.Cegui.i(136): Error: Unable to find 'OgreCEGUITexture.h'
Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
Build log was saved at "file://c:\Documents and Settings\rg127543\My Documents\Visual Studio Projects\ogredotnet\OgreNet.Cegui\Debug\BuildLog.htm"
OgreBindings_Cegui - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
They appear to be the C++ versions of the missing OgreCEGUIRenderer.cs, OgreCEGUIResourceProvider.cs and OgreCEGUITexture.cs files?
Looking where it is looking (C:\OgreSDK\include and C:\OgreSDK\include\CEGUI) I can't find these files, either. In C:\OgreSDK\include\CEGUI I can however find: CEGUIRenderer.h, CEGUIResourceProvider.h and OgreCEGUITexture.h. So I edited OgreBindings.Cegui.i, changing all #include and %include references to the .h files that I could find. If I now try to compile it gives:
Invoking Swig on OgreBindings.Cegui.i
c:\Documents and Settings\rg127543\My Documents\Visual Studio Projects\ogredotnet\OgreNet.Cegui>"C:\Program Files\swigwin-1.3.29\swig.exe" -c++ -csharp -namespace OgreDotNet.Cegui -D_SWIG_VS2003 -I"c:\OgreSDK\include" -I"c:\OgreSDK\include\CEGUI" OgreBindings.Cegui.i
c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(68): Error: Syntax error in input(1).
c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(374): Warning(314): void is a csharp keyword
c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(377): Warning(314): void is a csharp keyword
c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(395): Warning(844): C# exception may not be thrown - no $excode or excode attribute in 'csout' typemap.
Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
Build log was saved at "file://c:\Documents and Settings\rg127543\My Documents\Visual Studio Projects\ogredotnet\OgreNet.Cegui\Debug\BuildLog.htm"
OgreBindings_Cegui - 1 error(s), 0 warning(s)
---------------------- Done ----------------------
Build: 0 succeeded, 1 failed, 0 skipped
Where c:\OgreSDK\include\CEGUI\CEGUIRenderer.h(68) is:
class CEGUIEXPORT Renderer : public EventSet
I'm really stuck now . I hope that someone can point out where I have gone wrong...
Thanks a lot,
Scarfman007