1
votes

While trying to cross-compile nginx for raspberry pi, I am getting error during configure step itself. My config options for cross-compile are,

*./configure --build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib/ws --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=~/Documents/raspberrypi/poky/raspberryPiBuild/tmp/sysroots/raspberrypi --enable-nls*

The following error is printed upon issuing this command,./configure: error: invalid option "--build=x86_64-linux"

Whats the mistake am doing during this step?

1
You don't need to specify --build.yegorich
Since --host is specified, it says --build is mandatory if i removesheeru
Specify only --host, i.e. without --build and --target. See this answer.yegorich
What embedded distro are you using? Yocto? I see poko in your toolchain.yegorich
i am using yocto.. For BSP i am using from github.com/djwillis/meta-raspberrypi.sheeru

1 Answers

2
votes

Yocto project already provides a recipe for nginx, so you don't need to create your own recipe. See this issue for more information.