Project

General

Profile

Cross compile lighttpd with arm-linux

Added by ZHU LIANG about 12 years ago

I am trying to cross compile lighttpd with arm-linux compiler. The system I am using is Ubuntu and the command I used to compile is "CC=/home/cielo/GCC/FriendlyARM/toolschain/4.5.1/bin/arm-linux-gcc ./configure --host arm-linux --build pentium-pc-linux --without-zlib --without-bzip2 --target arm-linux".
However, the problem is that I can pass the configure process with the command mentioned above successfully but not the make process. When I tried to make the file, the messages below appeared.
"
In file included from base.h:24:0,
from mod_flv_streaming.c:1:
array.h:9:19: fatal error: pcre.h: No such file or directory
compilation terminated.
make3: * [mod_flv_streaming.lo] Error 1
make3: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30/src'
make2:
[all] Error 2
make2: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30/src'
make1:
[all-recursive] Error 1
make1: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30'
make:
[all] Error 2
"
If I force to copy the file /usr/include/pcre.h to the scr directory, other messages appeared.
"
/home/cielo/GCC/FriendlyARM/toolschain/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libpcre.so when searching for -lpcre
/home/cielo/GCC/FriendlyARM/toolschain/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/lib/libpcre.a when searching for -lpcre
/home/cielo/GCC/FriendlyARM/toolschain/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lpcre
collect2: ld returned 1 exit status
make3:
[mod_trigger_b4_dl.la] Error 1
make3: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30/src'
make2:
[all] Error 2
make2: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30/src'
make1:
[all-recursive] Error 1
make1: Leaving directory `/home/cielo/Temp/lighttpd-1.4.30'
make: *
[all] Error 2
"
Before this, I had already finished compiling lighttpd with linux compiler and lighttpd works normally on my system now, which means that the PCRE was installed successfully with the command "apt-get install libpcre3 libpcre3-dev". So can someone tell me that's the matter? Thank you.