Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top