Cross-compiling Nginx for SAMA5D3 Xplained board

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:

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

=====================
[email protected]:/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

[email protected]:/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*
[email protected]:/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

Hello!

On Tue, Jul 08, 2014 at 10:51:18PM -0400, willy7841 wrote:

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:

[…]

How should I set things up so that I can try cross-compiling Nginx?

Cross-compilation is not something nginx supports.


Maxim D.
http://nginx.org/

Hello Maxim D.,

Thank you for your explanation.

If I would like to run Nginx on embedded board, how could I do?

Thanks for your help.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,251595,251598#msg-251598

On Tue, Jul 08, 2014 at 11:43:18PM -0400, willy7841 wrote:

Hello Maxim D.,

Thank you for your explanation.

If I would like to run Nginx on embedded board, how could I do?

Thanks for your help.

In short, you have to rework configure tests that currently depend
on host system to build and execute test binaries.

You are not the first person though who needs to cross-compile and
may want to search mailing list/google for similar attempts, for
example:

http://mailman.nginx.org/pipermail/nginx-devel/2011-December/001666.html

Hello Homutov V.,

Thank you for your explanation.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,251595,251601#msg-251601

Hello!

On Wed, Jul 09, 2014 at 08:47:41AM +0400, Homutov V. wrote:

In short, you have to rework configure tests that currently depend
on host system to build and execute test binaries.

You are not the first person though who needs to cross-compile and
may want to search mailing list/google for similar attempts, for example:

http://mailman.nginx.org/pipermail/nginx-devel/2011-December/001666.html

Much easier approach is to just compile on the board itself and/or
in the emulated environment.


Maxim D.
http://nginx.org/

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs