手机上的qt程序
来源:互联网 发布:论网络暴力英文 编辑:程序博客网 时间:2024/04/29 10:29
学习qt在creator上自我感觉应该是比较熟悉了,现在需要的是把qt整手机上去了。因为我的手机是5800,所以呢,就选择触摸屏sdk了,在网上下的软件如下:
ActivePerl-5.6.1.635-MSWin32-x86.msi
jdk-6u21-windows-i586.exe
Carbide.c++_v2.3.exe ------ 要用carbide呢必须有前面2个,注意安装顺序,如果前面2个没安装,carbide就装不上的,前面2个也需要注意安装顺序,不过会有提示的。
qt-symbian-opensource-4.6.3.exe ----- 在装它之前呢必须有symbian sdk,而且要和一个symbian sdk在同一个目录,因为qt for symbian嘛,否则还是会无法使用的。
S60_5th_Edition_SDK_v1_0_en.zip ----- s60触摸屏的sdk。记得sdk也在carbide之前安装。
好了,程序安装好了,还要记得在carbide里面windows->preference->qt->add进行设置, 设置如下:
1. version name:自己取,可以根据版本;
2. Bin Path:qt的安装路径里面的bin,比如:S:/Qt/4.6.3/bin;
3. Include Path:你选择了前面之后它会自动给你加上的,就是S:/Qt/4.6.3/Include;
点击ok就行了。
现在可以编qt程序了。
我把qt demos里面的mainwindow import进去,然后右键点击mainwindow->properties->carbide.c++->build configuration, 选择sis builder选项卡,点击Add,我增加了3个地方,
1. 记得选择templete的那个pkg;
2. 记得选self sign sis file;
3. 签名后的sis的名字,这个是可以安装在手机上的sis包;
现在问题是我的nokia手机是不支持qt的,所以需要有支持qt的库啊,fluidlauncher.sis和qt.sis,在S:/Qt/4.6.3,就是qt4.6.3的安装地址处,结果安装的时候提示没有PIPS_INSTALLER等组件,又在网上下了这几个组件,ok,成功运行在我的5800上了。
PIPS_Installer.sis
Standard_C++_library_Common.sis
Open_C_LIBSSL_Common_for_S60_3.2_and_5.0.sis
这3个sis包被我上传到我的资源上了,就是“qt for symbian运行在手机上所需组件”里面。
才发现另外一个比较不错的资料,原来qt4.6.3的安装路径里早有了完整的sis包,从下面可以看到:
http://discussion.forum.nokia.com/forum/showthread.php?191893-QtWebKit-app-%E5%9C%A8S60%E4%B8%8A%E8%BF%90%E8%A1%8C
You really do not read my reply to you in another thread. Qt.sis is not enough. You have to install "qtwebkit.sis" file. You may choose to install "qt_demos.sis", which has everything inside (Open C/C++).
=============================================================================
Here is a short description of the different .sis
files contained in this package.
If you just quickly want to check out the Qt demos
running on your phone, install qt_demos.sis.
It will install everything needed and auto-start
the Qt demos on your phone.fluidlauncher.sis
fluidlauncher.sis
Contains around 10 different Qt demos.
Depends on Qt and Open C.
qt.sis
Contains the Qt libraries Symbian Signed for
Nokia phones. Depends on Open C.
qt_selfsigned.sis
A self-signed version of the above library.
Works on other phones such as the Samsung i8910.
qtwebkit.sis
Contains the QtWebKit library Symbian Signed for
Nokia phones. Depends on Qt.
qtwebkit_selfsigned.sis
A self-signed version of the above library.
Works on other phones such as the Samsung i8910.
qt_demos.sis
Contains qt.sis, qtwebkit.sis, fluidlauncher.sis
and Open C all in one convenient package. No
other dependencies.
qt_installer.sis
Contains qt.sis, qtwebkit.sis and Open C all
in one convenient package. No other dependencies.
Thank google!
也就是说,其实qtwebkit.sis也是需要安装的,根据解释,也就是最后那个sis可以全部安装,倒数第2个也可以,而且还可以把demos也装进去。
参考资料:
http://wiki.forum.nokia.com/index.php/%E5%B0%86Qt%E5%BA%94%E7%94%A8%E8%BF%90%E8%A1%8C%E5%9C%A8Symbian%E6%89%8B%E6%9C%BA%E4%B8%8A
http://www.cuteqt.com/blog/?p=1115
- 手机上的qt程序
- [基于QT的手机开发程序]QT 5.7.0 新建的示例项目无法在手机上运行的解决方法
- 让Qt程序在运行到Nokia手机上
- 让Qt程序在运行到Nokia手机上
- 基于Qt的手机程序----口袋理财
- 手机上通用的UTF8转换程序
- 手机上通用的UTF8转换程序
- 程序在手机上的调试
- meego手机上的截图程序
- 使用Qt Quick创建你的塞班手机程序(一)
- 使用Qt Quick创建你的塞班手机程序(二)
- MIDP2.0手机上的手电筒程序(附代码)
- 如何调试手机上使用WAP网络的程序
- MIDP2.0手机上的手电筒程序(附代码)
- 在手机上程序出错的调试方式。
- 自己动手写一个android手机上的一键锁屏程序
- 调用系统程序导入手机上的vcard文件
- 得到手机上已经安装过的程序
- 关键字explicit
- 软件开发者路线图:从学徒到高手
- 如果你已经过了20岁但还不到25岁
- WinCE任务栏的显示与隐藏
- try、catch、finally、return的执行顺序
- 手机上的qt程序
- 在一个Android application 调用另一个 application 里的 Activity 和 Service
- Sql Server 2005 missing index
- 一些工作学习技术小结
- 敏捷开发方法Scrum经验总结
- 在VC程序中加载GIF动画
- Hadoop中自定义计数器
- 取select控件的选中的选项的text值
- 查看JBoss中的MBean信息,无法连接上