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?
--build
. – yegorich--host
, i.e. without--build
and--target
. See this answer. – yegorich