Welcome! Log In Create A New Profile

Advanced

How can I do cross Compile Nginx Web Server?

Posted by [email protected] 
Hi,
I need to do Cross Compile Nginx Web Server to use on my target board.
I tried , but ...

[email protected]:~/temp/nginx-1.9.9$ ./configure
--crossbuild=Linux::arm
--with-cc="/home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc"
--with-ld-opt="/usr/arm-linux-gnueabi/lib"
--with-cc-opt="/usr/arm-linux-gnueabi/include"building for Linux::arm
checking for C compiler ... found but is not working
./configure: error: C compiler
/home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc is not found


Please tell me how can I do it?

Note: The "autoconf.err" file is attached.

Best Regards
Hesam.H.Motiee


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Attachments:
open | download - autoconf.err (147 bytes)
Maxim Dounin
Re: How can I do cross Compile Nginx Web Server?
April 13, 2018 08:40PM
Hello!

On Fri, Apr 13, 2018 at 08:41:39PM +0430, motiee@embedsys.ir wrote:

> Hi,
> I need to do Cross Compile Nginx Web Server to use on my target board.
> I tried , but ...
>
> [email protected]:~/temp/nginx-1.9.9$ ./configure
> --crossbuild=Linux::arm
> --with-cc="/home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc"
> --with-ld-opt="/usr/arm-linux-gnueabi/lib"
> --with-cc-opt="/usr/arm-linux-gnueabi/include"building for Linux::arm
> checking for C compiler ... found but is not working
> ./configure: error: C compiler
> /home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc is not found
>
>
> Please tell me how can I do it?
>
> Note: The "autoconf.err" file is attached.

Cross-compilation is not supported by nginx (except
cross-compilation for win32 using wine, and this what --crossbuild
to be used for). You need a native toolchain to build nginx.

If your board is not powerful enough, consider using a virtual
machine.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Dear Maxim
Thanks for attention.
My target Board is http://armdevs.com/Product/CORE9G25-CON.html (target
OS: Linux 3.6.9)
I need Web server , what is your advice?
would you please tell me more? (I am new in Linux world).
I have Install Nginx on my Host system (abuntu 16.0.4 LTS ) with out any
problem, but I need to a web server on my Target .

Regards





----------------------------------------
From: "Maxim Dounin" <[email protected]>
Sent: Friday, April 13, 2018 11:05 PM
To: nginx@nginx.org
Subject: Re: How can I do cross Compile Nginx Web Server?
Hello!

On Fri, Apr 13, 2018 at 08:41:39PM +0430, motiee@embedsys.ir wrote:

> Hi,
> I need to do Cross Compile Nginx Web Server to use on my target board.
> I tried , but ...
>
> [email protected]:~/temp/nginx-1.9.9$ ./configure
> --crossbuild=Linux::arm
> --with-cc="/home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc"
> --with-ld-opt="/usr/arm-linux-gnueabi/lib"
> --with-cc-opt="/usr/arm-linux-gnueabi/include"building for Linux::arm
> checking for C compiler ... found but is not working
> ./configure: error: C compiler
> /home/hesam/g25/arm-2011.09/bin/arm-none-linux-gnueabi-gcc is not found
>
>
> Please tell me how can I do it?
>
> Note: The "autoconf.err" file is attached.

Cross-compilation is not supported by nginx (except
cross-compilation for win32 using wine, and this what --crossbuild
to be used for). You need a native toolchain to build nginx.

If your board is not powerful enough, consider using a virtual
machine.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Maxim Dounin
Re: How can I do cross Compile Nginx Web Server?
April 15, 2018 03:10AM
Hello!

On Sat, Apr 14, 2018 at 12:34:39AM +0430, motiee@embedsys.ir wrote:

> My target Board is http://armdevs.com/Product/CORE9G25-CON.html (target
> OS: Linux 3.6.9)
> I need Web server , what is your advice?
> would you please tell me more? (I am new in Linux world).
> I have Install Nginx on my Host system (abuntu 16.0.4 LTS ) with out any
> problem, but I need to a web server on my Target .

If you are new to *nix systems, the best approach might be to just
install a pre-compiled package from your board OS vendor. Consult
your board documentation for details.

If you want to compile nginx from sources, you have to do it on
the board itself (== native compilation). To do this, you have to
install compiler on the board itself, and then run "./configure &&
make" (again, on the board itself).

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Sorry, only registered users may post in this forum.

Click here to login