天嵌 ARM开发社区

 找回密码
 注册
查看: 2009|回复: 3

X86版本的QT仿真求助?

[复制链接]
鬼鬼一哈 发表于 2010-11-23 19:26:31 | 显示全部楼层 |阅读模式
本帖最后由 鬼鬼一哈 于 2010-11-23 19:32 编辑

1.  编译X86版本的Qt4.5
2.  安装QCreater-->添加环境变量(该步骤我参考的arm版本,添加的是__install-->x86-->bin-->qmake)-->打开任意一个工程文件-->改为指定Qt  release -->
      Built  Project “XXXXXX” -->出现Exited with code 0.
     说明已经编译成功。然后运行可执行程序。
    运行可执行程序:Build-->run   出现错误提示
    Starting /home/qt-book/chap01/hello/hello...
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.
/home/qt-book/chap01/hello/hello exited with code 1
为什么?
天嵌_support1 发表于 2010-11-24 10:32:13 | 显示全部楼层
1# 鬼鬼一哈


QCreater是怎么安装呢?不要用Linux自带的。自己下一个安装到指定的目录吧。
这样就完整写。Linux自带的安装时会把关于QTCreator的文件分散到各个目录 ,
而你下载一个sdk的bin来安装,那它所需要的依赖文件都在同一个目录,调用时也只是从那里调用
。你的情况是QCreator没法为测试程序启动它的服务器
 楼主| 鬼鬼一哈 发表于 2010-11-24 13:41:13 | 显示全部楼层
我装的是qt-sdk-linux-x86-opensource-2009.05.bin     337M
天嵌_support1 发表于 2010-11-24 15:20:01 | 显示全部楼层
3# 鬼鬼一哈


我不知道你怎么配置的,我安装了 09.05的和10.04的都没有问题了。
你为X86编译的时候选择debug 好了,不要选择release
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

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

GMT+8, 2024-9-28 01:21 , Processed in 1.023476 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2020, Tencent Cloud.

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