在树莓派单编译3.X [英] Compiling Mono 3.x on Raspberry Pi
本文介绍了在树莓派单编译3.X的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
要摆脱软float与硬浮ABI问题,我试图安装在我的树莓派单的最高最新版本
git的克隆https://github.com/mono/mono.git
CD单
git的子模块的init
混帐子模块更新
./autogen.sh - preFIX =的/ usr /本地
使
使安装
make命令失败。误差如下:
使[6]:系膜细胞:命令未找到
使[6]:*** [建/ DEPS /基本轮廓,check.exe]错误127
***编译器'的GMC'不会出现可用。
***您需要单声道版本2.4或更高版本,以打造MCS
***检查单README关于如何启动一个单声道的安装信息。
使[5]:*** [做姿态的检查]错误1
使[4]:*** [简介-DO - 基础 - 全部]错误2
使[3]:***【简办 - 全部]错误2
使[2]:*** [所有本地]错误2
使[2]:离开目录`/家庭/ PI /单声道/运行
使[1]:*** [所有递归]错误1
使[1]:离开目录`/家庭/ PI /单声道
块引用>要解决这个问题我试图与安装单命令和apt-get安装单运行,然后再次开始化妆。但错误依然存在。
时有可能得到单3.X的ARM(树莓PI)?
工作解决方案有两种可能的解决方案,以这样的:
- 从压缩包编译单声道,而不是饭桶。一个压缩包只是一个COM pressed包含所有源准备以独立的方式来编译软件包。 //www.go-mono:对于单声道,你可以,如果你去 HTTP找到tar包。 COM /单下载/ 并点击单源链接,链接到的 http://download.mono-project.com/sources/mono/ 。您需要单3.2.8或更高版本,因为这是实现对ARM的支持HardFloat的第一个版本。
- 远离git的克隆,而是使用
使获得-MONOLITE - 最新
命令前,制作
。更多细节这里。To get rid of the soft float vs. hard float ABI problem I tried to install an up-to-date version of mono on my Raspberry Pi with
git clone https://github.com/mono/mono.git cd mono git submodule init git submodule update ./autogen.sh --prefix=/usr/local make make install
The make command fails. The errors are as follows:
make[6]: gmcs: Command not found make[6]: *** [build/deps/basic-profile-check.exe] Error 127 *** The compiler 'gmcs' doesn't appear to be usable. *** You need Mono version 2.4 or better installed to build MCS *** Check mono README for information on how to bootstrap a Mono installation. make[5]: *** [do-profile-check] Error 1 make[4]: *** [profile-do--basic--all] Error 2 make[3]: *** [profiles-do--all] Error 2 make[2]: *** [all-local] Error 2 make[2]: Leaving directory `/home/pi/mono/runtime' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/pi/mono'
To fix this I tried to install mono with "sudo apt-get install mono-runtime" and then start the make again. But the error remains.
Is it possible to get Mono 3.x working on ARM (the Raspberry Pi)?
解决方案There are two possible solutions to this:
- Compile mono from a tarball, not from git. A tarball is just a compressed package that contains all the sources ready to be compiled in a standalone way. For mono, you can find the tarballs if you go to http://www.go-mono.com/mono-downloads/ and click on the "Mono sources" link, which links to http://download.mono-project.com/sources/mono/. You would need mono 3.2.8 or newer because that is the first version to implement HardFloat support for ARM.
- Keep cloning from git, but use
make get-monolite-latest
command beforemake
. More details here.
这篇关于在树莓派单编译3.X的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文