Forums » Development »
[Solved] lighttpd cross compiling
Added by daniix almost 16 years ago
Hi Everyone,
I am trying to cross compile lighttpd with arm-linux compiler:
CC='/usr/local/LxNETES-3/arm-linux/bin/arm-linux-gcc' ./configure --host arm-linux --build pentium-pc-linux --without-zlib --without-bzip2 --target arm-linux
after a while I get this error:
...
checking size of off_t... configure: error: cannot compute sizeof (off_t)
See `config.log' for more details.
and inside the log the error is:
...
configure:28302: error: cannot compute sizeof (off_t)
...
configure: exit 77
Any help would be appreciated!
thx,
Daniel.
Replies (4)
RE: lighttpd cross compiling - Added by lighty_user over 15 years ago
Hi,
I had cross compiled lighttpd for arm for my embedded linux box. I think you can use a similar procedure.
Just follow the below steps
1)At the command prompt type,
CC=arm-none-linux-gnueabi-gcc RANLIB=arm-linux-ranlib STRIP=arm-linux-strip ./configure --host=arm-linux --disable-static --enable-shared --without-zlib --without-bzip2
2)make
This will generate a lighttpd binary in the src directory.
If you still face problem, let me know.
Regards,
Vish
RE: lighttpd cross compiling - Added by vishparshav1 over 10 years ago
hi vish,
I have successfully cross compiled lighttp-1.4.35. But whenever I try to run it on the traget machine i.e an android phone I get the the file could not be found. I try ./lighttp start from the folder having cross compiled lighttp binary file.
Do I need to do some thing extra other than just compiling. Moreover I did make install DESTDIR=../myfolder and then copied this myfolder to the device file system. Is it correct way to do.
Please reply ASAP. Post is quite old I know but even a bit of help can do a lot for me.
Thank you.
Regards,
Vishesh
RE: lighttpd cross compiling - Added by darix over 10 years ago
you would need to provide way more details:
e.g. did you copy all the modules over too?
did you pass the config file parameter?
run it under strace to find out what is missing in doubt.
RE: [Solved] lighttpd cross compiling - Added by gstrauss almost 8 years ago
lighttpd successfully cross-compiles for me under openwrt buildroot. If you are having trouble cross-compiling, you might get some hints from http://openwrt.org instructions for building a single package from the build root.