Cross compile lighttpd
Added by linun77 almost 13 years ago
Hi list,
I'm cross-compiling lighttpd to run on ARM platform. I compile it well and it runs. I have just one problem,
When I run configure, I set the prefix option on the host machine to set where I want to install lighttd, like this:
... ./configure --prefix=/home/arm-project/lighttpd ...
after cross-compile and install lighttpd on the host machine under the directory /home/arm-project/lighttpd, and copy the contents od /lib, /etc and /sbin directories to target machine (arm), when I start lighttpd, lighttpd try to load plugins from default /home/arm-project/lighttpd directory, instead of /usr/lib. I know that this happen because the variable LIBRARY_DIR is defined inside Makefile, and I can use lighttpd -m option to set the directory plugin location...
The problem is that: I cannot install lighttpd on my host machine on /usr/lib directory, because I have it installed on my machine to run on x86 platform. Is it possible to define a cross-compile instalation and set the default module dir on target machine to /usr/lib???
Thanks,
Nuno Cardoso.
Replies (5)
RE: Cross compile lighttpd - Added by ver almost 13 years ago
set --prefix to where you want it to be installed on your host, then sandbox it on install:
./configure --prefix=/usr
make install DESTDIR=/home/arm-project/lighttpd
scp -r /home/arm-project/lighttpd/usr user@armdevice:/ (or whatever)
RE: Cross compile lighttpd - Added by fastcgi almost 13 years ago
type
lighttpd -h
and you will find -m can specify your library.
RE: Cross compile lighttpd - Added by loosy almost 13 years ago
@linun77
Its nice to hear you were able to compile lighttpd for ARM successfully. Actually I'm newbie here can you please guide me how to compile lighttpd for ARM or iPhone architecture.
Please guide me in compiling lighttpd for iPhone.
waiting for reply.
RE: Cross compile lighttpd - Added by aramm over 11 years ago
Am trying to get lighttpd running on an arm linux target. It looks like you have got it running.
I was able to cross compile it for the arm target, but am getting this error when i try to run it -
Starting lighttpd/etc/rc.d/init.d/lightpd: line 162: : not found
/etc/rc.d/init.d/lightpd: line 162: /opt/MAP/etc/startup/lighty/lighttpd: not found
I did post the question on this forum -
http://redmine.lighttpd.net/boards/2/topics/5449
Any ideas ?
RE: Cross compile lighttpd - Added by stbuehler over 11 years ago
You were told what to do in the other thread. stop posting unrelated stuff in topics just to get people looking at your problem.