• 8983阅读
  • 0回复

求助 编译tslib1.4问题 [复制链接]

上一主题 下一主题
离线沙漠蜻蜓
 
只看楼主 正序阅读 楼主  发表于: 2011-10-12
我在ubuntu下编译 求高手指点
# ./configure --prefix=/usr/local/tslib/ --host=arm-linux
终端显示
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 arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-g++... arm-linux-g++
checking whether the C++ compiler works... no
configure: error: in `/home/wei/tslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
root@wei-laptop:/home/wei/tslib# cofig.log
cofig.log:找不到命令
root@wei-laptop:/home/wei/tslib# gedit config
root@wei-laptop:/home/wei/tslib# gedit config.log
root@wei-laptop:/home/wei/tslib# ./autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./config.guess'
libtoolize: copying file `./config.sub'
libtoolize: copying file `./install-sh'
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in `m4/internal'.
libtoolize: copying file `m4/internal/libtool.m4'
libtoolize: copying file `m4/internal/ltoptions.m4'
libtoolize: copying file `m4/internal/ltsugar.m4'
libtoolize: copying file `m4/internal/ltversion.m4'
libtoolize: copying file `m4/internal/lt~obsolete.m4'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
root@wei-laptop:/home/wei/tslib# echo “ac_cv_func_malloc_0_nonnull=yes”>$ARCH-linux.cache
root@wei-laptop:/home/wei/tslib# ./configure --host=arm-linux --cache-file=$ARCH-linux.cache --prefix=/usr/local/tslib/
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.
configure: loading cache -linux.cache
./-linux.cache: line 1: “ac_cv_func_malloc_0_nonnull=yes”: command not found
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-linux-strip... arm-linux-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-g++... arm-linux-g++
checking whether the C++ compiler works... no
configure: error: in `/home/wei/tslib':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
下面是config.log文件:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by tslib configure 0.0.2, which was
generated by GNU Autoconf 2.65.  Invocation command line was

  $ ./configure --prefix=/usr/local/tslib/ --host=arm-linux

## --------- ##
## Platform. ##
## --------- ##

hostname = wei-laptop
uname -m = i686
uname -r = 2.6.32-34-generic
uname -s = Linux
uname -v = #77-Ubuntu SMP Tue Sep 13 19:40:53 UTC 2011

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/Trolltech/Qt-4.7.3/bin
PATH: /usr/local/Trolltech/Qt-4.7.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/arm/4.4.3/bin
PATH: /usr/local/arm/4.4.3/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2611: checking for a BSD-compatible install
configure:2679: result: /usr/bin/install -c
configure:2690: checking whether build environment is sane
configure:2740: result: yes
configure:2789: checking for arm-linux-strip
configure:2805: found /usr/local/arm/4.4.3/bin/arm-linux-strip
configure:2816: result: arm-linux-strip
configure:2881: checking for a thread-safe mkdir -p
configure:2920: result: /bin/mkdir -p
configure:2933: checking for gawk
configure:2949: found /usr/bin/gawk
configure:2960: result: gawk
configure:2971: checking whether make sets $(MAKE)
configure:2993: result: yes
configure:3102: checking for arm-linux-g++
configure:3118: found /usr/local/arm/4.4.3/bin/arm-linux-g++
configure:3129: result: arm-linux-g++
configure:3200: checking for C++ compiler version
configure:3209: arm-linux-g++ --version >&5
.arm-none-linux-gnueabi-g++ (ctng-1.6.1) 4.4.3
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3220: $? = 0
configure:3209: arm-linux-g++ -v >&5
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /opt/FriendlyARM/mini2440/build-toolschain/working/src/gcc-4.4.3/configure --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.4.3 --with-sysroot=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-arch=armv4t --with-cpu=arm920t --with-tune=arm920t --with-float=soft --with-pkgversion=ctng-1.6.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-gmp=/opt/FriendlyARM/toolschain/4.4.3 --with-mpfr=/opt/FriendlyARM/toolschain/4.4.3 --with-ppl=/opt/FriendlyARM/toolschain/4.4.3 --with-cloog=/opt/FriendlyARM/toolschain/4.4.3 --with-mpc=/opt/FriendlyARM/toolschain/4.4.3 --with-local-prefix=/opt/FriendlyARM/toolschain/4.4.3/arm-none-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.4.3 (ctng-1.6.1)
configure:3220: $? = 0
configure:3209: arm-linux-g++ -V >&5
.arm-none-linux-gnueabi-g++: '-V' option must have argument
configure:3220: $? = 1
configure:3209: arm-linux-g++ -qversion >&5
.arm-none-linux-gnueabi-g++: unrecognized option '-qversion'
.arm-none-linux-gnueabi-g++: no input files
configure:3220: $? = 1
configure:3240: checking whether the C++ compiler works
configure:3262: arm-linux-g++    conftest.cpp  >&5
.arm-none-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory
configure:3266: $? = 1
configure:3304: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "tslib"
| #define PACKAGE_TARNAME "tslib"
| #define PACKAGE_VERSION "0.0.2"
| #define PACKAGE_STRING "tslib 0.0.2"
| #define PACKAGE_BUGREPORT "kergoth@handhelds.org"
| #define PACKAGE_URL ""
| #define PACKAGE "tslib"
| #define VERSION "0.0.2"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3309: error: in `/home/wei/tslib':
configure:3313: error: C++ compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-linux
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CXX=arm-linux-g++
ac_cv_prog_STRIP=arm-linux-strip
ac_cv_prog_make_make_set=yes

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /home/wei/tslib/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /home/wei/tslib/missing --run tar'
AR=''
AUTOCONF='${SHELL} /home/wei/tslib/missing --run autoconf'
AUTOHEADER='${SHELL} /home/wei/tslib/missing --run autoheader'
AUTOMAKE='${SHELL} /home/wei/tslib/missing --run automake-1.11'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS='-O2 -Wall -W'
CPP=''
CPPFLAGS=''
CXX='arm-linux-g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEBUGFLAGS=''
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_ARCTIC2_MODULE_FALSE=''
ENABLE_ARCTIC2_MODULE_TRUE=''
ENABLE_COLLIE_MODULE_FALSE=''
ENABLE_COLLIE_MODULE_TRUE=''
ENABLE_CORGI_MODULE_FALSE=''
ENABLE_CORGI_MODULE_TRUE=''
ENABLE_DEJITTER_MODULE_FALSE=''
ENABLE_DEJITTER_MODULE_TRUE=''
ENABLE_H2200_LINEAR_MODULE_FALSE=''
ENABLE_H2200_LINEAR_MODULE_TRUE=''
ENABLE_H3600_MODULE_FALSE=''
ENABLE_H3600_MODULE_TRUE=''
ENABLE_INPUT_MODULE_FALSE=''
ENABLE_INPUT_MODULE_TRUE=''
ENABLE_LINEAR_MODULE_FALSE=''
ENABLE_LINEAR_MODULE_TRUE=''
ENABLE_MK712_MODULE_FALSE=''
ENABLE_MK712_MODULE_TRUE=''
ENABLE_PTHRES_MODULE_FALSE=''
ENABLE_PTHRES_MODULE_TRUE=''
ENABLE_UCB1X00_MODULE_FALSE=''
ENABLE_UCB1X00_MODULE_TRUE=''
ENABLE_VARIANCE_MODULE_FALSE=''
ENABLE_VARIANCE_MODULE_TRUE=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_AGE=''
LT_CURRENT=''
LT_RELEASE=''
LT_REVISION=''
MAKEINFO='${SHELL} /home/wei/tslib/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='tslib'
PACKAGE_BUGREPORT='kergoth@handhelds.org'
PACKAGE_DESCRIPTION='Touchscreen Access Library'
PACKAGE_NAME='tslib'
PACKAGE_STRING='tslib 0.0.2'
PACKAGE_TARNAME='tslib'
PACKAGE_URL=''
PACKAGE_VERSION='0.0.2'
PATH_SEPARATOR=':'
PLUGIN_DIR=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP='arm-linux-strip'
TS_CONF=''
VERSION='0.0.2'
VIS_CFLAGS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='arm-linux'
host_alias='arm-linux'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/wei/tslib/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_ECHO='echo'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/tslib'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "tslib"
#define PACKAGE_TARNAME "tslib"
#define PACKAGE_VERSION "0.0.2"
#define PACKAGE_STRING "tslib 0.0.2"
#define PACKAGE_BUGREPORT "kergoth@handhelds.org"
#define PACKAGE_URL ""
#define PACKAGE "tslib"
#define VERSION "0.0.2"

configure: exit 77
快速回复
限100 字节
 
上一个 下一个