My favorites | Sign in
Project Logo
                
Search
for
Updated Oct 07, 2009 by lavima
Installation  
How to set up development environment

Introduction

This page describe the process of the setting up the Mono.Xna development environment. The environment is available here.

Dependencies

Mono.Xna is dependent on Tao Framework and the NUnit libraries. The versions referenced in the projects are supplied in ./lib/. To allow for single solution the assemblies should be installed into the GAC instead of referenced directly.

Linux

This approach has been tested in Ubuntu 9.04 and openSUSE 11.1.

Run the following commands in the ./lib/ directory to install the Tao assemblies utilized in the project:

sudo gacutil -i -package taoframework-2.1.0 taoframework-2.1.0/Tao.Sdl.dll
sudo gacutil -i -package taoframework-2.1.0 taoframework-2.1.0/Tao.OpenGl.dll
sudo gacutil -i -package taoframework-2.1.0 taoframework-2.1.0/Tao.DevIl.dll

Copy the taoframework-2.1.0.pc file from ./lib/ to /usr/lib/pkgconfig to make the assemblies available under Packages in MonoDevelop. If they don't show up you can try manually copying them into /usr/lib/mono/taoframework-2.1.0, and remember to reload MonoDevelop.

The NUnit library version 2.4.8 is the default version in the current stable Mono, but Ubuntu only offers packages for 2.4.7. The following commands can be used to install the correct version.

sudo gacutil -i -package nunit-2.4.8 nunit-2.4.8/nunit.core.dll
sudo gacutil -i -package nunit-2.4.8 nunit-2.4.8/nunit.core.interfaces.dll
sudo gacutil -i -package nunit-2.4.8 nunit-2.4.8/nunit.framework.dll

Copy the nunit-2.4.8.pc file to /usr/lib/pkgconfig to finish up.

Scripts will eventually be added to make the installation easier.

Windows

Download the Tao.Framework 2.1.0: Tao.Framework 2.1.0 Setup Windows

Start the Tao.Framework-Setup.

Download NUnit installer version 2.4.8: NUnit-Installer 2.4.8

Start the NUnit installer.

MonoDevelop & Visual Studio Solution

The solution file in the root directory is all that is needed for development in MonoDevelop 2.0. The Visual Studio support needs testing.

The solution contain the MonoDevelop.Xna addin, so to be able to build in Visual Studio, either the dependencies has to be install, or the project has to be skipped during build.


Comment by gsedej, Sep 16, 2009

Hi! (there is something wrong with line break in comments) (sorry if it is wrong place to ask qestions) I do as it is said up. I can compile my game (very simple, written in windows) and I coppied ms.xna.framework dll-s to the game bin directory, but stil says error (not the same as before): Unhandled Exception:

Unhandled Exception: System.DllNotFoundException?: libIL.so.1

at (wrapper managed-to-native) Tao.DevIl?.Il:ilInit () at Microsoft.Xna.Framework.SdlGameHost?.EnsureHost? () 0x0002a? in /home/gasper/monoxna-read-only/src/Microsoft.Xna.Framework.Game/SdlGameHost?.cs:45 at Microsoft.Xna.Framework.Game.Run () 0x00023? in /home/gasper/monoxna-read-only/src/Microsoft.Xna.Framework.Game/Game.cs:209 at FERI_bomberman.Program.Main (System.String args) 0x00000?

My computer conf: -Computer- Processor : 2x Intel(R) Core(TM)2 Duo CPU E6550 @ 2.33GHz Memory : 2061MB (968MB used) Operating System : Ubuntu 9.04 User Name : gsedej Date/Time : sre 16 sep 2009 09:12:36 CEST -Display- Resolution : 1680x1050 pixels OpenGL Renderer : GeForce?? 8600 GT/PCI/SSE2 X11 Vendor : The X.Org Foundation -Multimedia- Audio Adapter : HDA-Intel - HDA Intel -Input Devices-

Power Button (FF) Power Button (CM) Macintosh mouse button emulation AT Translated Set 2 keyboard USB Multi-Smart Mouse PC Speaker -Version- Kernel : Linux 2.6.28-15-generic (i686) Compiled : #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009 C Library : GNU C Library version 2.9 (stable) Default C Compiler : GNU C Compiler version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) Distribution : Ubuntu 9.04 -Current Session- Computer Name : gasper-desktop User Name : gasper (Gašper Sedej) Home Directory : /home/gasper -Misc- Uptime : 12 hours, 40 minutes Load Average : 0,00, 0,00, 0,00

Thanks for support gsedej

Comment by timpambor, Sep 16, 2009

Thanks for reporting this bug. Please create a new bug under the issues tab. The problem is that you haven't installed devil on your machine. I hope that I could help you.

timpambor

Comment by gsedej, Sep 16, 2009

I solved problem. I didn't have libDevil (1c2) installed on my Ubuntu. (you can update install guide) Thanks for help!Now it is working!!!! YOU GUYS ARE GREAT! (is it possible to contribute? how)

Comment by timpambor, Sep 16, 2009

Thank you! Please look on our homepage. http://monoxna.org/en/howtotakepart

Comment by gsedej, Oct 07, 2009

For Ubuntu 9.04 and 9.10 you need to have installed: libtaoframework-devil1.6-cil (optional?) libdevil1c2 libdevil-dev monodevelop monodevelop-nunit mono-xbuild

simple command: sudo apt-get update

sudo apt-get install libtaoframework-devil1.6-cil libdevil1c2 libdevil-dev monodevelop monodevelop-nunit mono-xbuild


Sign in to add a comment
Hosted by Google Code