2014年7月25日 星期五

cross compie native binutils failed "error: no termcap library found"

../configure --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf --prefix=../build/linux-gnueabihf-binutils_prefix --with-sysroot=${SYSROOT}/arm-linux-gnueabihf/libc --disable-nls --disable-werror --enable-lto --enable-plugins --enable-gold=default

termcap library is needed but it's not in sysroot of toolchain

download and cross build the arm version
copy libterm.a to sysroot/usr/lib
termcap.h to sysroot/usr/include

沒有留言:

張貼留言