I'm trying to cross compile htop on an x86 Ubuntu 13.10 machine for Raspberry Pi ARM architecture. I've a crosstool-ng toolchain correctly configured, but when I use the command:
./configure CC=/home/fb/crosstool-ng/toolchains/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-gcc CXX=/home/fb/crosstool-ng/toolchains/arm-rpi-linux-gnueabihf/bin/arm-rpi-linux-gnueabihf-g++ --host=arm-rpi-linux-gnueabihf --build=i686-pc-linux-gnu --target=arm-rpi-linux-gnueabihf
I get this error:
checking for refresh in -lncursesw... no
configure: error: You may want to use --disable-unicode or install libncursesw.
If I use the ./configure on the x86 machine, the procedure works, because libncursesw5
and libncursesw5-dev
are installed. The same on the Raspberry Pi. If I launch the ./configure then it works.
I tried to specify the location of the libraries with the LDFLAGS
but I get always the same error.
Where am I supposed to put those libraries?! Or what is the problem when cross compiling?