FireFly Media Server › Firefly Media Server Forums › Firefly Media Server › General Discussion › Cross compile for NSLU2 › Reply To: Cross compile for NSLU2
09/01/2007 at 10:26 PM
#7641
rpedde
Participant
@fizze wrote:
what did I wrong? I suppose it would scream if I had no cross-compiler installed?
But the configure checks vs. all those armv5-libs succeed, so…?
🙄
Easiest way is to do it through the unslung build process documented here.
That builds the cross compiler, necessary libs, etc.
You could probably get it to compile without it by setting CFLAGS, LDFLAGS, etc.
$ export CC=/path/to/cross-cc
$ export CFLAGS=-I/path/to/cross/includes
$ export DLFLAGS=-L/path/to/cross/libs
$ ./configure --with-nslu2 --enable-sqlite --host=arm5b
Still think the best way is with unslung though — it will build all the prereq libs and stuff for you, including any hackery you have to have to cross compile it.
— Ron