【问题标题】:Errors cross compiling mono source for ARM in scratchbox?在 Scratchbox 中为 ARM 交叉编译单声道源时出错?
【发布时间】:2015-03-12 06:33:48
【问题描述】:

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

我对交叉编译的总体思路如下:

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.

但我被卡在了暂存器中,

当我尝试使用时

              $ ./configure --host=arm-none-linux-gnueabi --disable-mcs-build

导致

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

我试过之后

                   $ ./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

使用此命令,它运行良好。我不知道是对是错,我从这个论坛得到这个。

然后我尝试了

                   $ make -j 8

我收到以下错误:--

                                      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

谁能帮帮我??

【问题讨论】:

    标签: mono scratchbox


    【解决方案1】:

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

    之后它应该正确配置。

    【讨论】:

      【解决方案2】:

      根据this issue,Mono 尚不支持 ARM 上的硬浮点。尝试使用 CFLAGS=-DARM_FPU_NONE 代替,或者只是省略 CFLAGS 指令,因为它应该默认为工作配置。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2014-01-18
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-09-13
        • 1970-01-01
        相关资源
        最近更新 更多