Ubuntu: cross compiling libserialport on arm


I'm trying to run configure for libserialport and cross-compiling for ARM first I run a script to set the environ vars:

# to run this script: exec setARMpath.sh  #PATH=  #export PATH  PREFIX=  export PREFIX  PREFIX1=/home/dan/dev/arm/crosstool/gcc3  export PREFIX1  PREFIX2=arm-linux  export PREFIX2  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:  /bin:$PREFIX1/$PREFIX2/:$PREFIX1/$PREFIX2/bin"  export PATH  TARGET=arm-elf  export TARGET  LIBDIR=$PREFIX1/$PREFIX2/arm-linux/lib  export LIBDIR  CC=$PREFIX1/arm-linux/bin/arm-linux-gcc  export CC  CFLAGS="-mcpu=arm920t -mapcs-32 -Wstrict-prototypes"  export CFLAGS  LT_SYS_LIBRARY_PATH=$PREFIX1/arm-linux/arm-linux/lib  export LT_SYS_LIBRARY_PATH  LDFLAGS=-L$LT_SYS_LIBRARY_PATH  export LDFLAGS  CPPFLAGS=-I$PREFIX1/arm-linux/arm-linux/include  export CPPFLAGS  CPP=arm-linux-gcc  export CPP  exec $SHELL -i  

then I run:

./configure --host=arm-linux  

the end of the output is:

checking how to truncate binary pipes... /bin/dd bs=4096 count=1  checking for arm-linux-mt... no  checking for mt... mt  configure: WARNING: using cross tools not prefixed with host triplet  checking if mt is a manifest tool... no  checking how to run the C preprocessor... arm-linux-gcc  configure: error: in `/home/dan/dev/libserialport_arm':  configure: error: C preprocessor "arm-linux-gcc" fails sanity check  

why is it looking for 'mt'? (magnetic tape)

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Next Post »