[Mono-list] Cross compiling mono 2.4 to PowerPC

Andreas Färber andreas.faerber at web.de
Sun Jun 28 07:13:10 EDT 2009

Am 26.06.2009 um 08:21 schrieb Dushara Jayasinghe:

> I tried version 2.4.2-rc1 (http://anonsvn.mono-project.com/viewvc/tags/mono-2-4-2-rc1/ 
> ). I still had to tweak configure.in:
> checking for working __thread... configure: error: cannot run test  
> program while cross compiling
> and Makefile.am (build breaks after entering the docs subdir).

Did you read `./configure -h` output? There's not only the --disable- 
mcs-build option but also --with-mcs-docs=no. That should in theory  
take care of the latter, without any Makefile modification.

For the other one, there's --with-tls=__thread or --with-tls=pthread.  
Please read for yourself.

More generally, configure provides the standard --cache-file=yourFile  
option, where in yourFile you can specify the answers for checks that  
can't be run during cross-compilation.
Cf. http://www.gnu.org/software/autoconf/manual/html_node/Cache-Files.html#Cache-Files

> The mono:arm page (http://www.mono-project.com/Mono:ARM) recommends  
> using scratchbox. Does this mean that mono can't be built using  
> cross compilers?

It can, it's just not for the feint-hearted and not well documented.  
You need to understand autoconf and you may need to know details of  
the target platform.


More information about the Mono-list mailing list