| | 104 | To build liblas for MONO you need have installed these dependencies: |
| | 105 | |
| | 106 | 1. 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 | |
| | 110 | 2. In debian (or variants like ubuntu): |
| | 111 | sudo apt-get install mono mono-gmcs mono-gac mono-utils |
| | 112 | |
| | 113 | Further you could need these dependencies if need unit testing with NUNIT |
| | 114 | |
| | 115 | 1. 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 | |
| | 121 | Notes: |
| | 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 | |
| | 133 | Using Monodevelop |
| | 134 | ------------------------------------------------------------------------------ |
| | 135 | You could install also Monodevelop 1.x if you want have a full IDE for C#. |
| | 136 | The problem i see with this IDE now is it have an own build system. You can open Visual studio projects but with bad support. |
| | 137 | In Monodevelop 2.x (in alpha status yet) you work with visual studio solutions files like native format of the IDE. |
| | 138 | http://monodevelop.com/Release_notes_for_MonoDevelop_2.0_Alpha_1#MSBuild_File_format |
| | 139 | |
| | 140 | Besides msbuild system in MONO is xbuild. This will let us in the future release the dotnetLibLAS bindings with visual studio solutions. |
| | 141 | By now xbuild is not complete. |
| | 142 | http://www.mono-project.com/Microsoft.Build |
| | 151 | 2. 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 | |
| | 155 | 3. Autools. TODO |
| | 156 | |
| | 157 | Notes: |
| | 158 | In the project folder you can see this file dotnetLibLAS.dll.config. |
| | 159 | This file maps the linux shared library from the windows native DLL. The names shared libraries in windows and linux are different. |
| | 160 | You need have always this file in your linux applications folder. MONO read this XML file before our dotnetLibLAS assembly. |
| | 161 | |
| | 162 | Run the tests in MONO |
| | 163 | ------------------------------------------------------------------------------ |
| | 164 | By now you need compile and run the tests by hand. |
| | 165 | |
| | 166 | 1. The test are in the folder /trunk/csharp/NUnitTest |
| | 167 | |
| | 168 | 2. You need have the assemblies of nunit and dotnetLibLAS referenced to the library. |
| | 169 | |
| | 170 | 3. Run this command to compile the library: |
| | 171 | gmcs /target:library /r:nunit.framework.dll /r:dotnetLibLAS.dll /out:pruebaunit.dll *.cs |
| | 172 | |
| | 173 | 4. Run the tests: |
| | 174 | mono nunit-console.exe pruebaunit.dll |