首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在scratchbox中交叉编译ARM的单声道源代码时出错?

在scratchbox中交叉编译ARM的单声道源代码时出错?
EN

Stack Overflow用户
提问于 2013-07-29 22:32:40
回答 2查看 830关注 0票数 1

我正在尝试使用链接http://www.mono-project.com/Mono:ARM#Compiling_on_the_device中的步骤为arm交叉编译mono-3.2.0源代码。在我的电脑上安装了暂存框。大多数人建议使用上面的链接来交叉编译mono。但我做不到。

我对交叉编译的总体想法如下:

代码语言:javascript
复制
Two stages of compilation needed.
The first one in my PC.
The second one within scratch box.

After that need to combine the resulting two install directories and copy that to my arm board.

但是我被卡在了scratchbox里

当我尝试

代码语言:javascript
复制
              $ ./configure --host=arm-none-linux-gnueabi --disable-mcs-build

结果是

配置:错误:交叉编译时无法运行测试程序。

在我试过之后

代码语言:javascript
复制
                   $ ./configure --host=arm-none-linux-gnueabi --enable-minimal=profiler,debug,logging,soft_debug --with-tls=--with-tls=__thread --with-monotouch=no 
                                                   --without-mcs-docs --disable-mono-debugger CFLAGS=-DARM_FPU_VFP --with-sigaltstack=no --disable-mcs-buildno

使用这个命令,它可以很好地工作。我不知道这是对还是错,这是我从这个论坛上得到的。

然后我试着

代码语言:javascript
复制
                   $ make -j 8

我得到以下错误:--

代码语言:javascript
复制
                                      After some make..

                                Making all in mini
             make[3]: Entering directory `/home/kishor/cross/mono-3.2.0/mono/mini'
             if test -d ../../.git; then \
           (cd ../..; \
              LANG=C; export LANG; \
              branch=`git branch | grep '^\*' | cut -d ' ' -f 2`; \
              version=`git log --no-color --first-parent -n1 --pretty=format:%h`; \
             echo "#define FULL_VERSION \"$branch/$version\""; \
            ); \
        else \
        echo "#define FULL_VERSION \"tarball\""; \
        fi > version.h
          CC       genmdesc-genmdesc.o
          CC       genmdesc-helpers.o
           In file included from mini-arch.h:21,
             from mini.h:36,
             from genmdesc.c:9:
          mini-arm.h:23: error: #error "hardfp-abi not yet supported."
          In file included from mini-arch.h:21,
             from mini.h:36,
             from helpers.c:9:
        mini-arm.h:23: error: #error "hardfp-abi not yet supported."
        make[3]: *** [genmdesc-genmdesc.o] Error 1
        make[3]: *** Waiting for unfinished jobs....
        make[3]: *** [genmdesc-helpers.o] Error 1
        make[3]: Leaving directory `/home/kishor/cross/mono-3.2.0/mono/mini'
        make[2]: *** [all-recursive] Error 1
        make[2]: Leaving directory `/home/kishor/cross/mono-3.2.0/mono'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/home/kishor/cross/mono-3.2.0'
        make: *** [all] Error 2

有人能帮我吗??

EN

回答 2

Stack Overflow用户

发布于 2013-07-30 17:27:02

我不确定这是不是拼写错误,但它应该是-disable-mcs-build而不是–disable-mc-build

在此之后,它应该配置正确。

票数 0
EN

Stack Overflow用户

发布于 2015-03-12 06:33:48

根据this issue的说法,Mono还不支持ARM上的硬浮动。尝试使用CFLAGS=-DARM_FPU_NONE,或者直接省略CFLAGS指令,因为它应该默认为工作配置。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17926770

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档