new member: linux and mono?

trevarthan

24-12-2005 22:49:44

Hello,

I'm running Gentoo linux (always kept current), and mono 1.1.12. I work professionally as a full time PHP developer (one of my least favorite languages, actually), but I'm versed in a number of languages including C/C++,Java,Perl,Python.OCaml,Bash.Tcsh,etc. Obviously I don't use all of those on a regular basis, but I can get around.

Recently, I've been reading a C# book and getting rather excited about mono on linux. I'm hoping I can use mono+Ogre3d+Blender to write a cross platform 3d game that works on Linux, Win32, and MacOSX more or less out of the box. I could probably do the same thing with Python, but then I'd have to include python itself in win32 binaries, and I generally like C# more than Python.

I've seen one post about running ogredotnet under mono from a few months ago:
http://www.ogre3d.org/phpBB2addons/view ... light=mono

So I'm guessing that ogredotnet works pretty well with mono under linux. But setting all of that up seems like a pretty daunting task. I've compiled gentoo's ogre-1.0.4 ebuild, and I'm looking at the wiki page:
http://www.ogre3d.org/wiki/index.php/OgreDotNet

I've managed to download ogredotnet with these commands (the wiki is rather vague regarding these):
cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ogre login
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/ogre co -P ogrenew ogreaddons

So, now I just have to figure out how to build it. I desperately need a working demo to get me started. Does anyone have a howto for this?

Is anyone running ogredotnet under Linux currently?

What's the current state of 'completedness' for ogredotnet with ogre3d-1.0.4? Is it mostly usable? I've seen that EagleEye is lacking time. I generally enjoy library development, so maybe I can help out a bit.

Thanks!

trevarthan

25-12-2005 01:12:50

OK, I found the README.linux in the distribution dir. Much more pointed than the Wiki page. But I'm having trouble during the `make` step:

Custom/ExampleApplication.cs(5,7): error CS0246: The type or namespace name `Math3D' could not be found. Are you missing a using directive or an assembly reference?
Custom/ExampleApplication.cs(5,1): error CS0246: The type or namespace name `Math3D' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 2 error(s), 0 warnings
make[2]: *** [../Bin/Debug/OgreDotNet.dll] Error 1
make[2]: Leaving directory `/usr/local/src/ogre3d/ogredotnet-cvs/ogreaddons/ogredotnet/OgreNet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/ogre3d/ogredotnet-cvs/ogreaddons/ogredotnet'
make: *** [all] Error 2
Exit 2


I see a Visual Studio project file in the Math3D directory, but no Makefile. Was this overlooked? How do I fix it?

Thanks!

rastaman

25-12-2005 01:45:31

Hi trevarthan.

I've seen one post about running ogredotnet under mono from a few months ago:
http://www.ogre3d.org/phpBB2addons/view ... light=mono

the ogredotnet.linux.tar.gz in cvs is more uptodate than what was in that thread. The version in cvs has a Makefile.am in the Math3D directory.

I think i mest up the one in cvs by gzipping a directory called ogredotnet.linux. what you can do is unzip it in a temp directory. Then rename the ogredotnet.linux to just ogredotnet reTar it and copy the tar to the ogreaddons directory. Extract it there and it should put all the files in place.

rastaman

25-12-2005 01:53:02

mono 1.1.12 ... what happen to .11
gess its time to update again :roll:

trevarthan

25-12-2005 07:06:24

OK. That worked. I had to recompile Ogre a few times to get the USE flags right. I'm now using these:
dev-games/ogre cg devil

I keep wondering if I should be using more. Like openexr?

Also, half of the Demos don't work. Is that normal?

DemoGrass.exe dies with a glibc free() complaint and a Warning:

01:48:21: WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was
provided. This Resource will be lost if it has to be reloaded.

DemoParticleFX.exe dies with a complaint that it can't find Examples/GreenyNimbus.
DemoWinForms.exe dies saying "01:41:21: Could not make screen: Invalid width or height"

But these all seem to work:
DemoFireworks.exe
DemoSkeletalAnimation.exe
DemoSkyBox.exe

rastaman

25-12-2005 23:00:51

I keep wondering if I should be using more. Like openexr?
I don't know what openexr is.

Also, half of the Demos don't work. Is that normal?

DemoGrass.exe dies with a glibc free() complaint and a Warning:

01:48:21: WARNING: Mesh instance 'grassblades' was defined as manually loaded, but no manual loader was
provided. This Resource will be lost if it has to be reloaded.

DemoParticleFX.exe dies with a complaint that it can't find Examples/GreenyNimbus.
DemoWinForms.exe dies saying "01:41:21: Could not make screen: Invalid width or height"


I have not seen the error with DemoGrass. Seems like something is being delete before it should be. You can ignore that warning, there's no need for a manual resource loaded.

DemoParticleFX, make sure you have all the normal ogre resources in you resource.cfg.

never did get DemoWinForms to work in linux, never really tried.

Rob Loach

13-01-2006 21:30:00

Another good resource for Linux/Mono is the Tao Framework which gives .NET bindings for a number of different libraries....

mono 1.1.12 ... what happen to .11
gess its time to update again :roll:
Mono 1.1.13 just came out :wink: .