MonoDevelop ARMv6 on Raspberry Pi

前端 未结 4 1851
失恋的感觉
失恋的感觉 2020-12-07 16:29

Will MonoDevelop compile to the ARMv6, mainly so I can get it running on my Raspberry Pi?


I\'ve noted that Debian can run on the Raspberry Pi and Debian has a

4条回答
  •  攒了一身酷
    2020-12-07 16:37

    Mono on the Raspberry Pi is possible and reasonably easy to set up. The following assumes you're on Debian. Create your application in MonoDevelop (or Visual Studio with the Mono libraries) and then send it over to the Raspberry Pi. Once on the Raspberry Pi it will run as standard. Because of the nature of C#, .NET and JIT, you don't have to "compile" as such, just have the runtimes available to interpret the code produced by MonoDevelop. I would try not to develop on the Raspberry Pi itself with MonoDevelop as it is fairly heavy for the device.

    This is taken from my blog that offers a number of Raspberry Pi tutorials.

    Note: the standard Mono runtime currently available only supports up to .NET 3.5 unless you compile from source yourself.

    So you want to start developing some applications for your Raspberry Pi but your knowledge of programming is limited to the modern .NET languages such as VB.NET and C#. Not a problem!! Welcome to the world of Mono, an open source cross-platform and compatible version of the .NET framework. By using a development IDE, such as Visual studio or even better MonoDevelop, you can produce EXE files that will run on your Raspberry Pi. All you need to do is to install the Mono run times on the Raspberry Pi. To do that we enter the following lines.

    sudo apt-get update
    
    sudo apt-get install mono-runtime
    

    As mentioned in other tutorials the first line is used to update the APT-GET package manager to ensure it is using the latest sources for downloading your packages. The second line installs and prepares the runtimes for use. That's it. Now to run a Mono developed EXE file, just simply prefix the command with the word "mono" as shown below.

    mono myprogram.exe 
    

提交回复
热议问题