Cross compile Mono from source for the Omega2 and Omega2+
@Jackdaw I stuck on setting crosscompiled environment. I mean - after all setup for crosscopile (I used also recent openwrt-sdk-18.06.1-ramips-mt76x8_gcc-7.3.0_musl.Linux-x86_64.tar.xz) BuildMono/bin/mono is build for Ubuntu (not for Omega2). Both BuildHost/bin/mono and BuildMono/bin/mono works on Ubuntu but the latter not works on Omega2 (wrong ELF format). So I suspected that cross-tools are wrongly setup and in the second stage still Ubuntu host tools are used (in /Makefile commands CC = gcc)
I tried your solution with export CC=$CROSS-gcc
and also alising it manually before automake and make but it still build host-platform version
Any idea how to properly setup cross-toolsets before compiling for ramips-mt76x8 ?
I think I have ignored that autogen.sh ends with an error around checking shm_open:
checking for inotify_rm_watch with unsigned wd... no checking for shm_open that works well enough with mmap... configure: error: in `/home/project/mono': configure: error: cannot run test program while cross compiling See `config.log' for more details
How to workaround it? Obviously it can not run crosscompiled test on build machine
...ok, I figure it out (more or less):
There's on open regressed issue on Mono project for this:
I had to switch back to 2018-04 branch on Mono to make it work.
Compiled with openwrt-sdk-18.06.1-ramips-mt76x8_gcc-7.3.0_musl.Linux-x86_64.tar.xz
Is it possible to get new link for package download?
Jackdaw last edited by Jackdaw
Sorry for the long wait.
You can download the precompiled package here. Use at your own risk.
It contains the mono binary and the full .net library, so you need to extend your root partition with a microsd card.
Could someone check if the package will install with opkg this time? Thanks.
I will update this thread in a while. Some things has been changed.
Is there an updated valid link for mono-18.104.22.168-1_mipsel_24kc.ipk? I'm not able to get it to download.
@paaablo80 I'm trying to build mono with no luck. Would you please help me with this? If you already have it donde it would be great help. Please let me know. Thank you.
@Jackdaw I'm trying to build mono with no luck. Would you please help me with this? If you already have it donde it would be great help. Please let me know. Thank you.
This post is deleted!
Jackdaw2 last edited by
I am still trying to recover my old account, but here you can download the pre-built mono package for Omega2 and Omega2+.