Cross-compiling Nginx for SAMA5D3 Xplained board
willy7841
nginx-forum at nginx.us
Wed Jul 9 02:51:18 UTC 2014
Hello,
I would like to run Nginx on my SAMA5D3 Xplained board.
I have a newbie questions:
I try to cross-compiling Nginx on my PC running Ubuntu with SAMA5D3 Xplained
cross-compiling, then I modify the environmental parameters of Ubuntu for
CC, AR, LD, RANLIB and STRIP:
=====================
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export
CC=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export
AR=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ar
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export
LD=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ld
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export
RANLIB=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ranlib
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export
STRIP=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-strip
=====================
But it fails from the start:
=====================
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# ./configure
--prefix=/home/u12/buildroot-at91/output/target/var/www/nginx-arm
checking for OS
+ Linux 3.5.0-51-generic x86_64
checking for C compiler ... found but is not working
./configure: error: C compiler
/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc is not
found
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# ll
/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc
lrwxrwxrwx 1 u12 u12 21 Jun 3 13:35
/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc ->
ext-toolchain-wrapper*
root at ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30#
=====================
How should I set things up so that I can try cross-compiling Nginx?
Thanks for any help.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251595,251595#msg-251595
More information about the nginx
mailing list