Changeset 942

Show
Ignore:
Timestamp:
10/13/08 01:37:11 (3 months ago)
Author:
MartinVales
Message:

Updated Mono information

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/csharp/README

    r923 r942  
    102102------------------------------------------------------------------------------ 
    103103 
     104To build liblas for MONO you need have installed these dependencies: 
     105 
     1061. mono mono-gmcs mono-gac mono-utils 
     107   mono is the Virtual machine o run the applications. 
     108   gmcs is the compiler of the c# programming language. 
     109 
     1102. In debian (or variants like ubuntu): 
     111   sudo apt-get install mono mono-gmcs mono-gac mono-utils 
     112 
     113Further you could need these dependencies if need unit testing with NUNIT 
     114 
     1151. nunit libmono-i18n2.0-cil nunit-console 
     116   sudo apt-get install libmono-i18n2.0-cil nunit nunit-console 
     117   nunit is the assembly to link to your unit test projects. 
     118   nunit-console is the tool to run the tests. 
     119    
     120 
     121Notes: 
     122- NUNIT by now have bad support in the linux repositories. Perhaps the best is download it from the official web. 
     123  You can use the compiled version of NUNIT for windows: 
     124  http://prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-2.0.zip?download 
     125  The basic assemblies are: 
     126  nunit.core.dll 
     127  nunit.core.interfaces.dll 
     128  nunit.framework.dll 
     129  nunit.util.dll 
     130  nunit-console.exe 
     131  nunit-console-runner.dll 
     132 
     133Using Monodevelop 
     134------------------------------------------------------------------------------ 
     135You could install also Monodevelop 1.x if you want have a full IDE for C#. 
     136The problem i see with this IDE now is it have an own build system. You can open Visual studio projects but with bad support. 
     137In Monodevelop 2.x (in alpha status yet) you work with visual studio solutions files like native format of the IDE. 
     138http://monodevelop.com/Release_notes_for_MonoDevelop_2.0_Alpha_1#MSBuild_File_format 
     139 
     140Besides msbuild system in MONO is xbuild. This will let us in the future release the dotnetLibLAS bindings with visual studio solutions. 
     141By now xbuild is not complete. 
     142http://www.mono-project.com/Microsoft.Build 
    104143 
    105144 
    106 TODO 
     145Compiling dotnetLibLAS in MONO 
     146------------------------------------------------------------------------------ 
     147By now dotnetLibLAS is not officially supported by MONO but it's possible use it: 
    107148 
     1491. You can use the compiled library you have in windows. It's fully compatible. 
    108150 
     1512. Compile the library by hand. 
     152   gmcs /target:library /out:dotnetLibLAS.dll *.cs /keyfile:liblas.snk 
     153   You must run this command in the /trunk/csharp/dotnetLibLAS folder. 
     154 
     1553. Autools. TODO 
     156 
     157Notes: 
     158In the project folder you can see this file dotnetLibLAS.dll.config. 
     159This file maps the linux shared library from the windows native DLL. The names shared libraries in windows and linux are different. 
     160You need have always this file in your linux applications folder. MONO read this XML file before our dotnetLibLAS assembly. 
     161 
     162Run the tests in MONO 
     163------------------------------------------------------------------------------ 
     164By now you need compile and run the tests by hand. 
     165 
     1661. The test are in the folder /trunk/csharp/NUnitTest 
     167 
     1682. You need have the assemblies of nunit and dotnetLibLAS referenced to the library. 
     169 
     1703. Run this command to compile the library: 
     171   gmcs /target:library /r:nunit.framework.dll /r:dotnetLibLAS.dll /out:pruebaunit.dll *.cs 
     172    
     1734. Run the tests: 
     174   mono nunit-console.exe pruebaunit.dll 
    109175 
    110176$Id$