1

リンクhttp://www.mono-project.com/Mono:ARM#Compiling_on_the_deviceの手順を使用して、アーム用の mono-3.2.0 ソースをクロスコンパイルしようとしています。PCにスクラッチボックスを取り付けました。ほとんどの人は、モノをクロスコンパイルするための上記のリンクを提案しています。しかし、私はできませんでした。

次のように、クロスコンパイルに関する全体的なアイデアを得ました。

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: エラー: クロス コンパイル中にテスト プログラムを実行できません。

私が試した後

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

誰でも私を助けることができますか??

4

2 に答える 2

0

スペルミスかどうかはわかりませんが、–disable-mcs-build ではなく –disable- mc -buildである必要があります。

その後、正しく構成する必要があります。

于 2013-07-30T09:27:02.003 に答える