Well, I'm not familiar with all the options that need to be passed to gcc for compiling. Right now, I'm getting a linker error.
[roti@pella myschemeapp]$ mips-openwrt-linux-gcc -I/home/roti/programs/gambit.mips-openwrt/include -L/home/roti/programs/gambit.mips-openwrt/lib -lgambc main.c main_.c /tmp/ccHNROa6.o: In function `main': main_.c:(.text+0x58): undefined reference to `___main_char' /tmp/ccHNROa6.o:(.data+0x0): undefined reference to `____20___gambc' /tmp/ccjEdal3.o: In function `___H__20_main': main.c:(.text+0xe8): undefined reference to `___gstate' ....
Razvan
On 27 October 2013 19:14, Jeff Read bitwize@gmail.com wrote:
On Sun, Oct 27, 2013 at 1:07 PM, Răzvan Rotaru razvan.rotaru@gmail.com wrote:
Hi,
I'd like to cross compile a scheme app for OpenWRT (MIPS architecture).
Has
anyone attempted to do this? How can I approach this?
The main problem is that I can't have a running MIPS system in a virtual machine. So cross-compilation seems to be the only option.
I haven't tackled this sort of problem myself, but presumably you would use gsc -link to compile the Scheme files to C and generate a link file, and then pass those to your C cross-compiler.
--Jeff