天嵌 ARM开发社区

 找回密码
 注册
查看: 7048|回复: 15

./arm_qt4.5_build 错误

[复制链接]
xsdzhang 发表于 2012-6-14 14:44:36 | 显示全部楼层 |阅读模式
zh@ubuntu:/opt/EmbedSky/qt-4.5$ ./arm_qt4.5_build
the build_arm directory is already !
the __install/arm directory is already !
Config Qt4.5 now, please wait ...

This is the Qt for Embedded Linux Open Source Edition.

Performing shadow build...
Preparing build tree...
Determining system architecture... (Linux:2.6.38-14-generic:i686)
    32-bit Intel 80x86 (i386)
    'arm' is supported
    'i386' is supported
System architecture: 'arm'
Host architecture: 'i386'
Precompiled-headers support enabled.
Symbol visibility control enabled.
You are licensed to use this software under the terms of
the GNU Lesser General Public License (LGPL) version 2.1 or
the GNU General Public License (GPL) version 3.

Type '3' to view the GNU General Public License version 3.
Type 'L' to view the GNU Lesser 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...
gmake: 没有什么可以做的为 `first'。
floatmath auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++ -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/floatmath -I/usr/local/tslib/include -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/floatmath -I. -o floatmath.o /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/floatmath/floatmath.cpp
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/floatmath/floatmath.cpp:3: warning: unused parameter 'argc'
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/floatmath/floatmath.cpp:3: warning: unused parameter 'argv'
arm-linux-g++ -Wl,-O1 -o floatmath floatmath.o     -L/usr/local/tslib/lib
/home/zh/sf/opt/EmbedSky/EABI-4.3.3_EmbedSky_20091210/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6 inside /home/zh/sf/opt/EmbedSky/EABI-4.3.3_EmbedSky_20091210/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/armv4t
collect2: ld returned 1 exit status
make: *** [floatmath] 错误 1
floatmath disabled.
PostgreSQL auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++ -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql -I/usr/local/tslib/include -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql -I. -o psql.o /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql/psql.cpp
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql/psql.cpp:1:22: error: libpq-fe.h: No such file or directory
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql/psql.cpp: In function 'int main(int, char**)':
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql/psql.cpp:5: error: 'PQescapeBytea' was not declared in this scope
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/psql/psql.cpp:6: error: 'PQunescapeBytea' was not declared in this scope
make: *** [psql.o] 错误 1
PostgreSQL disabled.
SQLite2 auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++ -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/sqlite2 -I/usr/local/tslib/include -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/sqlite2 -I. -o sqlite2.o /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/sqlite2/sqlite2.cpp
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/sqlite2/sqlite2.cpp:1:20: error: sqlite.h: No such file or directory
make: *** [sqlite2.o] 错误 1
SQLite2 disabled.
TDS auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++ -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tds -I/usr/local/tslib/include -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tds -I. -o tds.o /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tds/tds.cpp
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tds/tds.cpp:1:22: error: sybfront.h: No such file or directory
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tds/tds.cpp:2:19: error: sybdb.h: No such file or directory
make: *** [tds.o] 错误 1
TDS disabled.
tslib auto-detection... ()
arm-linux-g++ -c -pipe -O2 -Wall -W  -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++ -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tslib -I/usr/local/tslib/include -I/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tslib -I. -o tslib.o /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/config.tests/unix/tslib/tslib.cpp
arm-linux-g++ -Wl,-O1 -o tslib tslib.o     -L/usr/local/tslib/lib -lts
/home/zh/sf/opt/EmbedSky/EABI-4.3.3_EmbedSky_20091210/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /usr/local/tslib/lib/libts.so when searching for -lts
/home/zh/sf/opt/EmbedSky/EABI-4.3.3_EmbedSky_20091210/opt/EmbedSky/4.3.3/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find /lib/libc.so.6 inside /home/zh/sf/opt/EmbedSky/EABI-4.3.3_EmbedSky_20091210/opt/EmbedSky/4.3.3/bin/../arm-none-linux-gnueabi/libc/armv4t
collect2: ld returned 1 exit status
make: *** [tslib] 错误 1
tslib disabled.
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/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/mkspecs/qws/linux-arm-g++.
Build Qt4.5 library now, please wait ...
gmake: *** 没有指明目标并且找不到 makefile。 停止。
Install Qt4.5 library now, please wait ...
gmake: *** 没有规则可以创建目标“install”。 停止。
zh@ubuntu:/opt/EmbedSky/qt-4.5$
 楼主| xsdzhang 发表于 2012-6-14 14:49:12 | 显示全部楼层
天嵌科技售后 14:43:43
你重新装下mysql环境
张洪 14:48:06
怎么装?显了不少找不到config.tests/下程序的头文件,我确实也没找到这些头文件请问这些文件在哪个位置?
 楼主| xsdzhang 发表于 2012-6-14 15:17:07 | 显示全部楼层
天嵌科技售后 14:55:20
http://www.sjzit.net/db/mysql/2011-05-28/191.html
 楼主| xsdzhang 发表于 2012-6-14 15:17:45 | 显示全部楼层
张洪 15:11:43
显示装不了,我是否要重装一下系统,
天嵌科技售后 15:12:09
怎么装不了?
天嵌科技售后 15:12:50
你试下直接在软件中心找一下
 楼主| xsdzhang 发表于 2012-6-14 15:27:17 | 显示全部楼层
root@ubuntu:/home/zh# apt-get install g++ gcc make automake perl libncurses5-dev kdelibs_dev kdelib
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
E: 未发现软件包 kdelibs_dev
E: 未发现软件包 kdelib
root@ubuntu:/home/zh#
 楼主| xsdzhang 发表于 2012-6-14 16:05:49 | 显示全部楼层
在软件中心安装了之后还是原样?

显了不少找不到config.tests/下程序的头文件,我确实也没找到这些头文件

请问这些文件在哪个位置?
 楼主| xsdzhang 发表于 2012-6-14 16:20:40 | 显示全部楼层
在软件中心安装了之后还是原样

显了不少找不到config.tests/下程序的头文件,我确实也没找到这些头文件

请问这些文件在哪个位置?
天嵌科技售后 16:07:52
你用find命令找下吧,我也不清楚它具体目录
张洪 16:15:00
sqlcli1.h   
张洪 16:15:29
我在这些目录下找,确实没有这些文件
天嵌科技售后 16:16:03
你是怎么找的?
张洪 16:16:09

张洪 16:16:15
用这个找
张洪 16:18:41
基本上都是config.test/目录下的文件编译时报的错
 楼主| xsdzhang 发表于 2012-6-14 16:58:05 | 显示全部楼层
基本上都是config.test/目录下的文件编译时报的错
张洪 16:35:50
#include <sqlcli.h>
#include <sqlcli1.h>

int main(int, char **)
{
    return 0;
}
象这些头文件,确实找不到
张洪 16:36:44


天嵌科技售后 16:45:22
-qt-sql-sqlite
你编译qt时加上这个看下
张洪 16:46:14
好的
张洪 16:48:18
echo "Config Qt4.5 now, please wait ..."
        echo yes | ../../qt-embedded-linux-opensource-src-4.5.0/configure -prefix /opt/EmbedSky/qt-4.5/__install/arm/ -release -shared -verbose -fast -no-largefile -qt-sql-sqlite
张洪 16:48:37
最后一个就是这个吧?
天嵌科技售后 16:48:50
是啊
张洪 16:49:46
实在没办法,我明天重装一下系统,
张洪 16:51:02
这些头文件是产生的,还是应该写好了放在哪个位置的?
TQ-lkp 发表于 2012-6-15 18:37:22 | 显示全部楼层
本帖最后由 TQ-lkp 于 2012-6-15 18:38 编辑

楼主配置文件是什么
你现在是什么问题
是tslib不行,还是你想让qt支持mysql?你将qt-4.5全部删除,再重新解压,你的环境搞乱了
 楼主| xsdzhang 发表于 2012-6-18 14:21:08 | 显示全部楼层
你好!我重装系统之后,QT4平台安装好了,
张洪 14:07:10

Starting /opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/demos/mainwindow/mainwindow...
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.
/opt/EmbedSky/qt-4.5/qt-embedded-linux-opensource-src-4.5.0/demos/mainwindow/mainwindow exited with code 1
张洪 14:08:16
请问这是怎么回事?
 楼主| xsdzhang 发表于 2012-6-18 15:49:22 | 显示全部楼层
我是在PC上用这个仿真
天嵌科技售后 14:35:56
你要用x11那个版本的qt程序。
张洪 15:34:29
是在哪个目录下,我没找到
张洪 15:44:20
请问是什么意思?我怎么操作?
 楼主| xsdzhang 发表于 2012-6-18 16:15:02 | 显示全部楼层
天嵌科技售后 16:07:53
也就是Qt库用PC自带的,代码和针对开发板的相同,如果遇到有设备操作的,请在开发板上面运行。
张洪 16:10:01
我是要安装qt-x11-opensource-src-4.5.3吗?
 楼主| xsdzhang 发表于 2012-6-18 16:16:41 | 显示全部楼层
请问我该如何操作解决
QWSSocket::connectToLocalFile could not connect:: Connection refused
 楼主| xsdzhang 发表于 2012-6-18 16:39:38 | 显示全部楼层
张洪 16:10:01
我是要安装qt-x11-opensource-src-4.5.3吗?
天嵌科技售后 16:28:05
如果你的PC的Linux环境已经有了,就不需要安装了。
张洪 16:32:26
我的是ubuntu,可能是没有,怎样确定有没有?
张洪 16:33:56
Starting /root/temp/zh1/zh1...
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
QWSSocket::connectToLocalFile could not connect:: Connection refused
No Qt for Embedded Linux server appears to be running.
If you want to run this program as a server,
add the "-qws" command-line option.
/root/temp/zh1/zh1 exited with code 1
张洪 16:37:09
我是按照手册安装的qt-embedded-linux-opensource-src-4.5.0_20091216.tar.bz2,这个不行吗?
 楼主| xsdzhang 发表于 2012-6-18 16:59:54 | 显示全部楼层
天嵌科技售后 16:54:35
qmake ?
天嵌科技售后 16:54:40
然后看一下版本。
张洪 16:58:43
root@ubuntu:~# qmake -v
QMake version 2.01a
Using Qt version 4.7.0 in /usr/lib
root@ubuntu:~#

张洪 16:58:50
对吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-3 13:35 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表