我在编译tslib的,make之后就出现这样的错误,哪位好心人能帮帮我:
我在编译tslib的,make之后就出现这样的错误,哪位好心人能帮帮我:libtool: compile: arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_DIR=\"/usr/local/tslib/lib/ts\" -DTS_CONF=\"/usr/local/tslib/etc/ts.conf\" -DTS_POINTERCAL=\"/usr/local/tslib/etc/pointercal\" -DTSLIB_INTERNAL -O2 -Wall -W -MT ts_attach.lo -MD -MP -MF .deps/ts_attach.Tpo -c ts_attach.c -fPIC -DPIC -o .libs/ts_attach.o
../libtool: line 970: arm-linux-gcc: command not found
make[2]: *** [ts_attach.lo] 错误 1
make[2]:正在离开目录 `/opt/Atmel-SAM9261/kergoth-tslib-412d99d/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/opt/Atmel-SAM9261/kergoth-tslib-412d99d'
make: *** [all] 错误 2
--------------------编程问答-------------------- 呵呵,你不会真的连编译器 arm-linux-gcc 还没有吧? --------------------编程问答-------------------- 安装了 arm-linux-gcc3.4.1啊 难道版本不对啊 请指点 --------------------编程问答-------------------- 我查看arm-linux-gcc -v已经显示安装成功了啊 不知道为什么啊 哪位大虾请指点 --------------------编程问答-------------------- 又遇到这样的错误 好头疼啊
running CONFIG_SHELL=/bin/bash /bin/bash ./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes host_alias=arm-linux --no-create --no-recursion
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... no
checking for strip... strip
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-gcc... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/opt/Atmel-SAM9261/kergoth-tslib-412d99d':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [config.status] 错误 77
--------------------编程问答-------------------- 没设置PATH环境变量吧,连arm-linux-gcc 都没用找到!! --------------------编程问答-------------------- 设置环境变量了啊
opt/Atmel-SAM9261/tslib-1.0$ echo $PATH
/usr/local/arm/4.4.3/bin:/usr/local/arm/bin:/usr/local/arm/3.4.1/bin:/home/liuyufei/qtsdk-2010.05/qt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/arm/3.4.1/bin:/usr/local/arm/4.4.3/bin
--------------------编程问答-------------------- 安装了交叉编译器了啊
arm-linux-gcc -v
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) --------------------编程问答-------------------- 谁能帮帮我啊 --------------------编程问答-------------------- line 970:这是关键 --------------------编程问答-------------------- checking whether the C compiler works... no
你的编译器根本没起作用。
不是说你安装到本机都完了 --------------------编程问答-------------------- 应该怎么办啊? --------------------编程问答-------------------- 重新建立一下交叉编译环境吧 --------------------编程问答-------------------- 我用朋友的拿拷来的虚拟硬盘又建立了一个虚拟机,我这个朋友的机器上运行编译tslib是完全好用的,但到我机器上就又出现了同样的问题 会是计算机的体系结构的问题嘛 我是amd64位的机器 我好头疼
libtool: compile: arm-none-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_DIR=\"/nfs4arm/rootfs/gui/tslib-1.0/_install/lib/ts/\" -DTS_CONF=\"/nfs4arm/rootfs/gui/tslib-1.0/_install/etc/ts.conf\" -DTSLIB_INTERNAL _DUSE_INPUT_API -mcpu=arm926ej-s -MT ts_attach.lo -MD -MP -MF .deps/ts_attach.Tpo -c ts_attach.c
arm-none-linux-gnueabi-gcc: _DUSE_INPUT_API: No such file or directory
make[2]: *** [ts_attach.lo] 错误 1
make[2]:正在离开目录 `/usr/local/arm/tslib-1.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/usr/local/arm/tslib-1.0'
make: *** [all] 错误 2
--------------------编程问答-------------------- (交叉编译环境arm-linux-gcc-4.4.1,OK6410开发板,fedora 10,参考飞凌OK6410视频)
tslib编译出错,上面是软件环境,执行脚本,设置环境变量都没错,但是在make的时候出现了以下错误错误:
[root@localhost tslib]# make 2>&1 | tee make_log
make all-recursive
make[1]: Entering directory `/usr/local/arm/tslib'
Making all in etc
make[2]: Entering directory `/usr/local/arm/tslib/etc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/arm/tslib/etc'
Making all in src
make[2]: Entering directory `/usr/local/arm/tslib/src'
/bin/sh ../libtool --tag=CC --mode=compile /usr/local/arm/4.4.1/bin/arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -DPLUGIN_DIR=\"/usr/local/lib/ts/\" -DTS_CONF=\"/usr/local/etc/ts.conf\" -DTSLIB_INTERNAL -fvisibility=hidden -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -MT ts_attach.lo -MD -MP -MF .deps/ts_attach.Tpo -c -o ts_attach.lo ts_attach.c
../libtool: line 829: X--tag=CC: command not found
../libtool: line 862: libtool: ignoring unknown tag : command not found
../libtool: line 829: X--mode=compile: command not found
../libtool: line 996: *** Warning: inferring the mode of operation is deprecated.: command not found
../libtool: line 997: *** Future versions of Libtool will require --mode=MODE be specified.: command not found
../libtool: line 1140: X/usr/local/arm/4.4.1/bin/arm-linux-gcc: No such file or directory
../libtool: line 1140: X-DHAVE_CONFIG_H: command not found
../libtool: line 1140: X-I.: command not found
../libtool: line 1140: X-I..: command not found
../libtool: line 1140: X-DPLUGIN_DIR="/usr/local/lib/ts/": No such file or directory
../libtool: line 1140: X-DTS_CONF="/usr/local/etc/ts.conf": No such file or directory
../libtool: line 1140: X-DTSLIB_INTERNAL: command not found
../libtool: line 1140: X-fvisibility=hidden: command not found
../libtool: line 1140: X-DGCC_HASCLASSVISIBILITY: command not found
../libtool: line 1140: X-O2: command not found
../libtool: line 1140: X-Wall: command not found
../libtool: line 1140: X-W: command not found
../libtool: line 1140: X-MT: command not found
../libtool: line 1140: Xts_attach.lo: command not found
../libtool: line 1140: X-MD: command not found
../libtool: line 1140: X-MP: command not found
../libtool: line 1140: X-MF: command not found
../libtool: line 1140: X.deps/ts_attach.Tpo: No such file or directory
../libtool: line 1140: X-c: command not found
../libtool: line 1193: Xts_attach.lo: command not found
../libtool: line 1198: libtool: compile: cannot determine name of library object from `': command not found
make[2]: *** [ts_attach.lo] 错误 1
make[2]: Leaving directory `/usr/local/arm/tslib/src'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/usr/local/arm/tslib'
make: *** [all] 错误 2
请高手帮忙解决,自己已经折腾三天了,还是没有解决,很着急 --------------------编程问答-------------------- 请问lz问题是怎么解决的,我也遇到这样的问题,帮帮我吧
补充:移动开发 , Qt