主题 : QT4.7.0编译出错 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 39719
精华: 0
发帖: 29
金钱: 145 两
威望: 29 点
综合积分: 58 分
注册时间: 2011-03-11
最后登录: 2015-03-22
楼主  发表于: 2011-04-26 16:18

 QT4.7.0编译出错

主机环境:Ubuntu10.04
                   按tyny6410开发文档,已经解压安装编译工具、qt到相应路径,并设置了环境变量
运行./build-all

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies


This is the Qt for Embedded Linux Open Source Edition.

You are licensed to use this software under the terms of
the Lesser GNU General Public License (LGPL) versions 2.1.
You are also licensed to use this software under the terms of
the GNU General Public License (GPL) versions 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the Lesser GNU General Public License version 2.1.
Type 'yes' to accept this license offer.
Type 'no' to decline this license offer.

Do you accept the terms of either license?
Creating qmake. Please wait...
c -o project.o -pipe   -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -I/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/include -I/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/include/QtCore -I/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/src/corelib/global -I/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/src/corelib/xml -I/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/usr/ti-sdk-AM3715-evm/linux-devkit/arm-none-linux-gnueabi/usr/share/qtopia/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT  project.cpp
make: c: Command not found
make: [project.o] Error 127 (ignored)

接下去一大堆问题都是下面这个:
make: c: Command not found

然后是一大堆的
/bin/sh: o: command not found
make: [/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/bin/qmake] Error 127 (ignored)
/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/config.tests/unix/compile.test: line 71: /opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/bin/qmake: No such file or directory

最后是
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/opt/FriendlyARM/mini6410/linux/arm-qte-4.7.0/qt-everywhere-opensource-src-4.7.0/mkspecs/qws/linux-arm-g++.


麻烦大家帮帮忙啦
级别: 荣誉会员
UID: 34761
精华: 0
发帖: 1348
金钱: 6835 两
威望: 1367 点
综合积分: 2696 分
注册时间: 2010-12-21
最后登录: 2017-06-02
1楼  发表于: 2011-04-26 17:14
显然是系统没有装开发工具
级别: 新手上路
UID: 39719
精华: 0
发帖: 29
金钱: 145 两
威望: 29 点
综合积分: 58 分
注册时间: 2011-03-11
最后登录: 2015-03-22
2楼  发表于: 2011-04-26 18:54
请问开发工具指哪些呢,arm-linux-gcc、g++试过了是能编译程序的,什么pkgconfig、autoconfig等这些都是有的啊
^很多问题的背后都是简单的原因......
级别: 荣誉会员
UID: 34780
精华: 0
发帖: 1219
金钱: 6230 两
威望: 1246 点
综合积分: 2438 分
注册时间: 2010-12-21
最后登录: 2017-09-18
3楼  发表于: 2011-04-27 09:36
Ubuntu缺省安装是少了很多包的...由于我没有用过, 所以也不清楚具体缺了哪些包
级别: 新手上路
UID: 19251
精华: 0
发帖: 35
金钱: 180 两
威望: 36 点
综合积分: 70 分
注册时间: 2010-04-17
最后登录: 2016-06-12
4楼  发表于: 2011-04-27 14:07
没有c 这个命令,并且找不到你安装的tslib库,看一下build-all这个文件里面把你的tslib库的位置写对了没有,把里面的c命令改一下
级别: 新手上路
UID: 39719
精华: 0
发帖: 29
金钱: 145 两
威望: 29 点
综合积分: 58 分
注册时间: 2011-03-11
最后登录: 2015-03-22
5楼  发表于: 2011-04-27 20:47
提供的linux的文档里说了tslib是编译器的库里带了,不用额外指定
今天重装了ubuntu,configure通过了,make进行中,原来的系统中装了太多的东东,并且出过问题修复过的,不知道是啥问题,懒得去磨了
编程高手
级别: 新手上路
UID: 67765
精华: 0
发帖: 12
金钱: 60 两
威望: 12 点
综合积分: 24 分
注册时间: 2012-04-15
最后登录: 2012-06-27
6楼  发表于: 2012-05-16 17:12
你打开那个build-all文件 看一下 你就知道了