LennardF
25-04-2006 19:39:29
Hello all,
At first; I'm new to Ogre, but it came out best of my personal test and i'm a quite good programmer in VB.NET (and a lot of other languages). Because i really have no clue what C++ means, i needed to use the OgreDotNet wrapper.
This is what i have done:
First i downloaded OgreSDKSetup1.2.0_RC2_VC71p1.exe, The Ogre SDK, so i have the files to be wrapped.
Then WinCVS (Download: WinCvs2_0_2-4.zip) which i used to get the project files.
Then i downloaded SWIG (swigwin-1.3.29.zip), and installed it like the install tutorial sad i needed todo.
I also have VS.NET 2003 installed (as my All language compiler
)
But now, after rechecking all settings etc. The tutorial sad to just press the compile button, and SWIG will be contacted etc.
I did that, but i came through a lot of errors, which resulted that it only (maybe halfcompiled) the files: CeguiDotNet.dll, Math3D.dll and CeguiBindings.dll.
Errors are like this:
c:\Documents and Settings\Eigenaar\Bureaublad\Game\OgreDotNet\OgreNet\GpuProgramExt.h(306) : warning C4172: returning address of local variable or temporary
or
c:\Documents and Settings\Eigenaar\Bureaublad\Game\OgreDotNet\OgreNet\OgreBindings_wrap.cxx(85808) : error C2065: 'SkyDomeGenParameters' : undeclared identifier
Am i missing something here? Forgetting something, i know there is a precompiled set of files, but i 'd like to have it working om my own.
Anyone to help?
Best Regards,
Lennard Fonteijn
EagleEye
25-04-2006 20:06:09
Most of the warnings that SWIG generates can be ignored.
What would be good is if you went to the top of the output and find the first error that happens... let us know what they are.
LennardF
25-04-2006 20:14:34
First when i open the sln file and press compile it says this:
http://a4a.brcollege.nl/LennardFonteijn ... arning.PNG
Then when i press yes, this is the first error that appairs:
c:\Documents and Settings\Eigenaar\Bureaublad\Game\OgreDotNet\OgreNet\GpuProgramExt.h(56) : warning C4172: returning address of local variable or temporary
this is the next different error after a bunch of above errors:
c:\Documents and Settings\Eigenaar\Bureaublad\Game\OgreDotNet\OgreNet\OgreBindings_wrap.cxx(65537) : warning C4049: compiler limit : terminating line number emission
(It first says, compiling OgreBindings_wrap.cxx etc.)
But there is definatly something wrong, it only outputs 3 files :S
---
Did i do something wrong in the setup of it? Or does this all look okay, and could you maybe give me a little tutorial on how to create the .cs files using SWIG manually? If there is no other way of prefending the errors.
---
By the way... The errors in the project itself are overwelming, here's the first error in the list: C:\Documents and Settings\Eigenaar\Bureaublad\Game\OgreDotNet\CeguiNet\Checkbox.cs(55): The keyword new is required on 'CeguiDotNet.Checkbox.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
How did you compiled the pre-compiled files? And are they the latest OgreDotNet Version, cause i will use them to start my FPS game.
But i still wnat ot get this all to work on my own (for updates par example).
EagleEye
25-04-2006 21:32:57
It seems like you might have the wrong version of something...
I'm not sure right now.
LennardF
25-04-2006 22:09:36
What version of SWIG have you used?
rastaman
25-04-2006 22:10:14
see
this thread
you have ODN source before it was updated to Ogre RC2.
rastaman
25-04-2006 22:14:49
OgreDotNet source code
in link see, my post about adding lines to one file.
after you add them do a batch REbuild of all the projects.
LennardF
25-04-2006 22:18:16
But what are these errors, can i ignore them:
c:\Program Files\Game Programming\OgreSDK\include\CEGUI\CEGUIUDim.h(91): Warning(503): Can't wrap 'operator /=' unless renamed to a valid identifier.
BTW... The rebuild only gives errors and again errors.
I uploaded the BuildError.htmof all files...
http://a4a.brcollege.nl/LennardFonteijn/Error/
(These are the only ones that actually rebuild, all the other i selected output nothing :S)
I dont get it anymore... Am i doing the things right, i download it with WinCVS, i make the SWIG settings, then i open up the sln file, (added the lines to that file), batch rebuild and then batch build. Then i should get what EaglesEye madeD (the pre-compiled files), but i dont get any of them, my OgreDotNet file is 1,8mb, while EaglesEye is 3,2MB :S
Please Help
rastaman
25-04-2006 22:58:35
First go to the OgreSDK/Samples/include and copy the files listed below to OgreSDK/include
ExampleApplication.h
ExampleFrameListener.h
ExampleLoadingBar.h
OgreCEGUIRenderer.h
OgreCEGUITexture.h
OgreCEGUIResourceProvider.h
Second remove GangstaNet from your solution, it's not required and difficult to get.
Third the error PRJ0019 you get is because of where you put ODN (program file). you need to add quotes around the paths in all of the projects post-build events. I did this in the last cvs update.
Project : error PRJ0019: A tool returned an error code from "Performing Post-Build Event..."
Now folow the wiki instructions to build.
I hope this helps.
LennardF
26-04-2006 07:27:33
So when i copy those files to SDK dir, and redownload the project files from CVS, it should work?
---
Update:
I copied the files
Redownloaded the CVS
Opened up the .SLN file
Excluded Everthing that begins with Gangsta
And did a Batch Build
But i still get errors :S
here's one from the error list after compiling:
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\Checkbox.cs(55): The keyword new is required on 'CeguiDotNet.Checkbox.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\Combobox.cs(224): The keyword new is required on 'CeguiDotNet.Combobox.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\DragContainer.cs(172): The keyword new is required on 'CeguiDotNet.DragContainer.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
etc. Till around 168 errors!!!
BTW, what files do i need to get on the end if the build succeeds? The files from the precompiled one?
LennardF
26-04-2006 10:41:43
Okay, to make something up... could someone please say i do everything okay.
I'm Using Ogre 1.2RC2 (for Vs.NET 2003) with SWIG 1.3.29, VS.NET 2003 with everything installed (thats on the cd), and i use WinCVS to download the OgreDotNet project.
I have put everything in: C:\Program Files\Game Programming.
(so SWIG has subdir Swig and Ogre has OgreSDK).
I first installed Ogre 1.2 RC2, and then SWIG 1.3.29, i putted the Variable of the Swig homedir in my Windows Settings.
Then i installed WinCVS and grabbed the project and placed in the Game Programming dir (subdir ogreaddons).
After that, i putted the lines RastaMan noticed in another thread (ofcourse i saved the file).
Then i copied the files RastaMan mentioned to the include dir.
Now i opened up the project and removed the GanstaNet stuff from the solution (I also rechecked the linking things etc). Then i popped up the Batch Build window and pressed Select All. Then i press Build.
--- Thats what the tutorial want you do right? Now SWIG (which is linked in a mysterious way to the .i files), will compile those to .cs files, and then the project should build the .DLL files.
Only im getting are errors from SWIG (like i posted above).
And it will only build a few files... After building i get a list with 168 errors in it.
I dont know what todo anymore. Am i doing somethnig wrong in my routine?
Best Regards,
Lennard Fonteijn
rastaman
26-04-2006 12:59:34
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\Checkbox.cs(55): The keyword new is required on 'CeguiDotNet.Checkbox.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\Combobox.cs(224): The keyword new is required on 'CeguiDotNet.Combobox.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
C:\Program Files\Game Programming\Game\ogreaddons\ogredotnet\ogreaddons\ogredotnet\CeguiNet\DragContainer.cs(172): The keyword new is required on 'CeguiDotNet.DragContainer.EventNamespace' because it hides inherited member 'CeguiDotNet.Window.EventNamespace'
Those are not errors. They are warnings I don't know why VC does not say that.
Ignore warnings...
LennardF
26-04-2006 14:31:39
But my routine is ok?
And could you give me a list of files i need to get when the build succeeds?
And could you also put the sizes with it?
But those 168 'errors' are actually Warnings, which i can ignore? So when i get a OgreDotNet.dll file of 273kb its okay?
Sorry for all the questions, but i want know it excactly
Thanks for your help!!!