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@ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export CC=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-gcc
root@ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export AR=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ar
root@ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export LD=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ld
root@ubuntu:/home/u12/Desktop/JJ/nginx-0.8.30# export RANLIB=/home/u12/buildroot-at91/output/host/usr/bin/arm-linux-gnueabihf-ranlib
root@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@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@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@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.