QT嵌入式程序,成功运行
来源:互联网 发布:乎加偏旁组新字再组词 编辑:程序博客网 时间:2024/09/21 09:29
1、QT下载地址:ftp://ftp.qt.nokia.com/qt/source/
2、环境搭建参考:http://mobile.51cto.com/symbian-273476.htm
博客里环境变量设置方法不错
3、建立arm示例程序test.cpp:
#include<QApplication>
#include<QPushButton>
int main(int argc,char **argv)
{
QApplication a(argc,argv);
QPushButton hello("hello,wrold");
hello.resize(120,30);
hello.show();
return a.exec();
}
注test程序要用.cpp格式
4、按照另一篇博客,建立虚拟机与开发板的ftp连接,将编译好的test程序考到开发板里
5、直接运行的话会报error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory错误。
解决方法是编辑/etc/profile文件,将/usr/local/lib与/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib添加到LD_LIBRARY_PATH环境变量下:
TSLIB_ROOT=/usr/local/lib
LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib:$TSLIB_ROOT
export LD_LIBRARY_PATH
然后reboot
6、运行/test -qws 程序运行,搞定!
- QT嵌入式程序,成功运行
- Qt 嵌入式程序 运行时遇到*** glibc detected ***等解决方法
- QT程序移植成功
- LINUX qt程序控制台程序编译成功无法运行提示cannot change to directory.....
- 学习笔记:一个Qt小程序,在开发板上运行成功
- Qt程序在嵌入式设备(arm) 上运行,鼠标擦除界面的解决方案
- 如何在ARM开发板的嵌入式linux系统上运行的QT程序
- QT学习笔记(八):嵌入式Linux下的QT程序的运行及相应的参数
- 【Qt开发】【Linux开发】Qt程序在嵌入式设备(arm) 上运行,鼠标擦除界面的解决方案
- QT在嵌入式Linux环境下运行
- qt 嵌入式下 运行 client 问题
- Qt 获取程序运行路径
- Qt测算程序运行时间
- Qt测算程序运行时间
- Qt 获取程序运行路径
- Qt测算程序运行时间
- QT 获取程序运行时间
- QT程序运行时间统计
- 黑客常用命令大全
- Qt on Android: Qt 5.3.0 发布,针对 Android 改进说明
- Java控制台输入
- 使用VS2010开发ActiveX(MFC)控件(2)——界面显示
- 使用VS2010开发ActiveX(MFC)控件(3)——添加接口及WEB调用
- QT嵌入式程序,成功运行
- nyoj 115 城市平乱 dijkstra最短路
- JQuery跨域调用WebService
- 5_22
- 中国特色程序员的「钱途」
- oracle入门(1)——数据库安装测试
- 职场规则,总有几条你不知道
- win7下编译驱动
- MFC命名规则