Cross compile mono for arm

后端 未结 2 948
春和景丽
春和景丽 2020-12-01 20:21

Has anyone successfully cross-compiled mono for ARM under Linux without scratchbox or qemu?

(maybe with distcc or some cross-compiler toolchain)

2条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-01 20:29

    I managed to cross compile mono(2.0, 2.4, 2.6, 2.8, 2.10.1) with Scratchbox 2 installed on a Ubuntu machine using CodeSourcery Lite tool chain. I used the article from the Mono project page.

    First compile it on the native machine

    ./configure
    $ make
    $ make install DESTDIR=path
    

    Then in sb2:

    [sbox-ARMEL: ~] > ./configure --disable-mcs-build
    [sbox-ARMEL: ~] > make 
    [sbox-ARMEL: ~] > make install DESTDIR=path
    

    I use this for configuration

    ./configure --enable-minimal=profiler,debug,logging,soft_debug --with-tls=--with-tls=__thread --with-monotouch=no --without-mcs-docs --disable-mono-debugger CFLAGS=-DARM_FPU_NONE --disable-mcs-build
    

提交回复
热议问题