Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Setting up a Mono Toolchain for Netduino on Windows


  • Please log in to reply
No replies to this topic

#1 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 14 February 2011 - 01:56 AM

Community member Brian Jepson posted a set of instructions on how to set up a Mono toolchain for Netduino on Mac OS X here. [Thanks, Brian!]

Here's what you need to install as prerequisites on Windows (copied from Brian's post...but with details for Windows):

  • The current version of Mono for Windows. This is required because Mono needs an existing installation of Mono to compile itself. [Note: Mono 2.10 RC4 is here] and the installer for the latest source is usually found here.
  • msysGit for Windows. Git is the version control system used for Mono's source code.
  • Cygwin. This will be used to build Mono. You need to select several options during installation (listed here).
Now you're ready to get started.

Create a folder to store the Mono source code. Right-click on it and create a "Git BASH" session from that folder.

  • Follow Mono's instructions to check out the latest version of the Mono source.
  • Start up Cygwin (using cygwin.bat) and compile Mono by following these steps:

  • Change directory to the Mono source directory:
    cd /cygdrive/c/<your_path>/mono
  • Set the PATH variable to include the installed Mono compiler.
    export PATH=$PATH:<path to installed mono>/bin
  • Configure the Mono source code (change /tmp/install if desired):
    ./configure --prefix=/tmp/install
    
  • Compile Mono:
    make
  • Install Mono:
    make install
You now have two versions of Mono: the one installed by the Mono installer and the version you just compiled. You'll use the installed version of Mono to run the mcs.exe compiler that you just compiled. You may also be able to write over the installed mcs.exe with the newly-compiled version, but results may vary.

To try compiling a program, start with these instructions.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.