在 mini2440 板上运行 GUI 应用程序时出错
我正在尝试在 mini2440(运行 Qtopia 的FriendlyARM 板)内运行 GUI 应用程序。 的说明进行操作
我按照http://mini2440vietnam.blogspot.com /2011/05/programming-application-for-mini2440-by.html
&以下内容来自“tslib & Qt 编译”编译
http:// mini2440vietnam.blogspot.com/2011/04/upgrade-qt462-in-mini2440.html
我已经在我的机器上以及博客中给出的 Qt Creator 中设置了必要的环境。
我已遵循此博客中的所有说明,但是当我尝试在 ubuntu bash 终端内执行此应用程序时
(此处我使用 telnet 连接到 mini2440 GUI 应用程序二进制文件位于“/opt/Qtopia/bin”中)
我收到以下错误
[root@FriendlyARM bin]# ./HelloWorld
QWSDisplay::Data::init: Invalid argument
Client can't attach to main ram memory.
Aborted
,这里有什么问题,在我的编译过程中是否有任何错误?
现在我知道这是终端并且无法运行 GUI 应用程序,但是当我尝试在 mini2440 板内运行此应用程序时,没有任何反应,Qtopia/系统甚至无法识别二进制文件和“?”标志显示为应用程序图标。
这有什么问题吗??我需要做什么才能实现这一点(在 Linux 中运行从 Qt Creator 2.0.1 编译的 GUI 应用程序)???
谢谢。
i am trying to run a GUI application inside mini2440(FriendlyARM board that runs Qtopia).
I followed instructions from
http://mini2440vietnam.blogspot.com/2011/05/programming-application-for-mini2440-by.html
& the following from "tslib & Qt compilation" compilation
http://mini2440vietnam.blogspot.com/2011/04/upgrade-qt462-in-mini2440.html
i have set up necessary environment on my machine and also in Qt Creator as given in the blog.
i have followed all the instructions from this blog, but when i try to execute this application inside ubuntu bash terminal
(here i am connected to mini2440 using telnet
and the GUI application binary is in "/opt/Qtopia/bin")
i get the following error
[root@FriendlyARM bin]# ./HelloWorld
QWSDisplay::Data::init: Invalid argument
Client can't attach to main ram memory.
Aborted
what is the problem here, was there any mistakes during my compilation.??
now that i understand that this is terminal and can't run GUI apps, but when i try to run this application inside mini2440 board, nothing happens, Qtopia/system doesn't even recognizes the binary and "?" sign appears as the application icon.
What is wrong with this?? and what will i have to do to make this happen(run GUI application compiled from Qt Creator 2.0.1 in Linux) ???
thankyou.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许您需要导出一些环境变量(查看 /etc/init.d/rcS 或 /bin/qtopia shell 脚本)。我可能是错的,但是qt应用程序可以使用-qws参数启动,该参数指定主显示或主qtopia进程
mabybe you need to export some environment variables (look at /etc/init.d/rcS or /bin/qtopia shell script). i can be wrong, but qt apps can be laucnched with -qws parameter, that specifies main display or main qtopia process