Welcome! Log In Create A New Profile

Advanced

Cross-compiling Nginx for SAMA5D3 Xplained board

July 08, 2014 10:51PM
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.
Subject Author Posted

Cross-compiling Nginx for SAMA5D3 Xplained board

willy7841 July 08, 2014 10:51PM

Re: Cross-compiling Nginx for SAMA5D3 Xplained board

Maxim Dounin July 08, 2014 11:06PM

Re: Cross-compiling Nginx for SAMA5D3 Xplained board

willy7841 July 08, 2014 11:43PM

Re: Cross-compiling Nginx for SAMA5D3 Xplained board

Homutov Vladimir July 09, 2014 12:48AM

Re: Cross-compiling Nginx for SAMA5D3 Xplained board

willy7841 July 09, 2014 01:34AM

Re: Cross-compiling Nginx for SAMA5D3 Xplained board

Maxim Dounin July 09, 2014 08:12AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 292
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready