| osgrid.org http://osgrid.org/forums/ |
|
| HOWTO: Build Mono with linear CIL on Linux http://osgrid.org/forums/viewtopic.php?f=14&t=475 |
Page 1 of 1 |
| Author: | Hiro Protagonist [ Tue Nov 18, 2008 10:01 am ] |
| Post subject: | HOWTO: Build Mono with linear CIL on Linux |
These instructions are for building mono with Linear CIL on Linux - they should be easily adapted to a windows installation. To build mono with Linear CIL, large heaps, and pthreads, work through the following procedure: 1. As your opensim user, and typically in his/her home directory, create a working directory and gather the sources into it from the mono svn site (for reference purposes, the URL of that site is http://mono-project.com/AnonSVN), as follows: svn co svn://anonsvn.mono-project.com/source/trunk/mcs svn co svn://anonsvn.mono-project.com/source/trunk/mono svn co svn://anonsvn.mono-project.com/source/trunk/libgdiplus 2. visit each of the base source directories obtained via svn. Read the README/INSTALL file. Each of the source trees has to be configured but each may use either configure, autoconf, or bootstrap to prepare the source for compiling. Configure the sources as directed by the README/INSTALL for each of the three source trees. This will produce 'configure' scripts which must be run for each source tree. Once this has been done, execute the configure scripts with the folowing switches: sh autogen.sh ./configure --prefix=/home/user/bin/mono23a --with-tls=pthread --with-large-heap=yes Be sure to replace the --prefix value with a target directory in your opensim user's home directory.. 3. Once configured, the mono must be built. This is accomplished by issuing the 'make' command in the same directories where configuration was completed. 4. After successfully accomplishing a 'make' for each of the source trees, you are ready for 'make install'. Do the mono/mcs first. 5. Once the install process is successfully completed, put the target directory you supplied via the --prefix switch in the opensim user's path. Be sure to get this right or your shiny new mono will go unused. Rebuild opensim and start it up with the new mono. The gains are a smaller binary (by ~10%), something close to a 10% increase in speed, and a much tighter and more stable garbage collection cycle. *** Note: it is highly recommended to leave any mono installed by your distro intact and keep the SVN mono well corralled and used by opensim only, as the mono SVN is a developement branch and may cause issues if used by things that depend on the system provided mono revision. Good Luck Hiro/daTwitch |
|
| Author: | Nebadon Izumi [ Tue Nov 18, 2008 12:41 pm ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
if your unsure on how to add mono to your user space path so mono will run from any folder you need to edit .bashrc file in your home folder (ie /home/user/.bashrc) then insert the following info: Code: export PATH="/home/user/bin/mono23a/bin:$PATH" export PKG_CONFIG_PATH="/home/user/bin/mono23a/lib/pkgconfig:$PKG_CONFIG_PATH" export MANPATH="/home/user/bin/mono23a/share/man:$MANPATH" ** make sure you modify the path to reflect the folder you installed mono too ** Neb |
|
| Author: | Nebadon Izumi [ Tue Nov 18, 2008 1:54 pm ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
If you have trouble with MCS giving you errors about compiling it and to use bootstrap method, try installing mono with the following incantation: Code: ./configure --prefix=/home/user/bin/mono23a --with-tls=pthread --with-large-heap=yes
make get-monolite-latest make install |
|
| Author: | legacy_nitephire [ Thu Nov 20, 2008 9:08 pm ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
Hi all. I've just got a VPS with Tektonic and I'm trying to complie opensim, but I get this error. BUILD FAILED - 0 non-fatal error(s), 19 warning(s) /root/opensim/opensim/OpenSim/Framework/Communications/OpenSim.Framework.Communications.dll.build(14,10): External Program Failed: /usr/lib/pkgconfig/../../lib/mono/2.0/gmcs.exe (return code was 1) Total time: 1.5 seconds. I'd appreciate any help I can get. Thanks. |
|
| Author: | Nebadon Izumi [ Fri Nov 21, 2008 1:37 am ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
you can safely ignore the warnings for now, this being an alpha level project there will always be many warnings when compiling opensim. Neb |
|
| Author: | legacy_nitephire [ Fri Nov 21, 2008 5:45 am ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
I complied opensim on Debian, when I go to run it by typing mono OpenSim.32BitLaunch.exe, I get Cannot open assembly OpenSim.32BitLaunch.exe. Any ideas why? |
|
| Author: | Nebadon Izumi [ Sat Nov 22, 2008 10:06 pm ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
that file should only be run if your CPU is AMD64, natively opensim wont run on a 64 bit cpu without recompiling some of our included libraries which do not by default support 64 bit. So if your CPU is 32bit use OpenSim.exe to run it. Neb |
|
| Author: | Tohasu Moore [ Fri Nov 28, 2008 10:20 am ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
nebadon wrote: that file should only be run if your CPU is AMD64, natively opensim wont run on a 64 bit cpu without recompiling some of our included libraries which do not by default support 64 bit. So if your CPU is 32bit use OpenSim.exe to run it. Neb I took this advice and applied it to my VPS server and by Golly openSim ran for the very firs time. Mucho thanks. |
|
| Author: | Jack Fletcher [ Thu Dec 18, 2008 10:49 am ] |
| Post subject: | Re: HOWTO: Build Mono with linear CIL on Linux |
UPDATE: Don't need other languages, which is what the below error is from after poking around. Worked around by appending "--disable-nls" to ./configure ... mono/mcs make is failing for me, on Ubuntu 8.10 64-bit (linode VPS): Quote: jake@li57-10:~/work/mono$ make make all-recursive make[1]: Entering directory `/home/jake/work/mono' Making all in po make[2]: Entering directory `/home/jake/work/mono/po' Making all in mcs make[3]: Entering directory `/home/jake/work/mono/po/mcs' test ! -f ./mcs.pot || \ test -z "es.gmo ja.gmo de.gmo" || make es.gmo ja.gmo de.gmo make[4]: Entering directory `/home/jake/work/mono/po/mcs' rm -f es.gmo && : -c --statistics -o es.gmo es.po mv: cannot stat `t-es.gmo': No such file or directory make[4]: *** [es.gmo] Error 1 make[4]: Leaving directory `/home/jake/work/mono/po/mcs' make[3]: *** [stamp-po] Error 2 make[3]: Leaving directory `/home/jake/work/mono/po/mcs' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/jake/work/mono/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jake/work/mono' make: *** [all] Error 2 jake@li57-10:~/work/mono$ Any thoughts? |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|