我以前用的是arm-linux-gcc 3.4.1 现在换成了 2.95.3
export CC=/arm/2.95.3/bin/arm-linux-gcc
export CXX=/arm/2.95.3/bin/arm-linux-g++
export PATH=/arm/2.95.3/bin/:$PATH
./autogen.sh
Libtoolize..../autogen.sh: 4: libtoolize: not found
Done.
Aclocal...configure.in:41: warning: macro `AM_DISABLE_STATIC' not found in library
configure.in:42: warning: macro `AM_ENABLE_SHARED' not found in library
configure.in:64: warning: macro `AM_PROG_LIBTOOL' not found in library
Done.
Autoheader...Done.
Automake...plugins/Makefile.am:12: `:='-style assignments are not portable
plugins/Makefile.am:14: `:='-style assignments are not portable
plugins/Makefile.am:17: `:='-style assignments are not portable
plugins/Makefile.am:22: Libtool library used but `LIBTOOL' is undefined
plugins/Makefile.am:22: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
plugins/Makefile.am:22: to `configure.in' and run `aclocal' and `autoconf' again.
plugins/Makefile.am:22: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
plugins/Makefile.am:22: its definition is in aclocal's search path.
plugins/Makefile.am:12: `CFLAGS' is a user variable, you should not override it;
plugins/Makefile.am:12: use `AM_CFLAGS' instead.
plugins/Makefile.am:14: `LDFLAGS' is a user variable, you should not override it;
plugins/Makefile.am:14: use `AM_LDFLAGS' instead.
src/Makefile.am:12: `:='-style assignments are not portable
src/Makefile.am:17: Libtool library used but `LIBTOOL' is undefined
src/Makefile.am:17: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
src/Makefile.am:17: to `configure.in' and run `aclocal' and `autoconf' again.
src/Makefile.am:17: If `AC_PROG_LIBTOOL' is in `configure.in', make sure
src/Makefile.am:17: its definition is in aclocal's search path.
src/Makefile.am:12: `CFLAGS' is a user variable, you should not override it;
src/Makefile.am:12: use `AM_CFLAGS' instead.
tests/Makefile.am:12: `:='-style assignments are not portable
tests/Makefile.am:12: `CFLAGS' is a user variable, you should not override it;
tests/Makefile.am:12: use `AM_CFLAGS' instead.
Done.
Autoconf...Done.
Now you can do ./configure, make, make install.
./configure --host=arm-linux --target=arm-linux --prefix=/arm/tslib --enable-inputapi=no
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-strip... arm-linux-strip
checking --enable-debug argument... no
checking --enable-inputapi argument... no
./configure: line 2391: AM_DISABLE_STATIC: command not found
./configure: line 2392: AM_ENABLE_SHARED: command not found
checking for arm-linux-gcc... /arm/2.95.3/bin/arm-linux-gcc
checking for C compiler default output file name...
configure: error: in `/arm/tslib-1.3':
configure: error: C compiler cannot create executables
See `config.log' for more details.