QT FOR S60环境下怎么把自己编译的QT程序放到手机上运行呀

南安风语者 2010-06-01 10:01:26
求教一下,QT FOR S60环境下怎么把自己编译的QT程序放到手机上运行呀

我的开发环境: Carbide.c++_v2.3
S60_5th_Edition_SDK_v1_0_en
qt-symbian-opensource-4.7.0-beta1

我一开始在Carbide.c++_里新建Symbian OS c++ Project -> S60 -> GUI Application with UI Designer的工程后,里面可以生成sis文件可以在手机上运行

但我在Qt Project上新建一个Qt GUI -> Qt GUI Main window的工程,在模拟器上可以运行,但我一直没有看到有在手机上安装的sis文件产生,我要怎么样才能把它放到手机上去运行呀
...全文
293 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tingsking18 2010-06-01
  • 打赏
  • 举报
回复
Deploying an Application on the Symbian platform
Applications are deployed to Symbian devices in signed .sis package files. The .sis file content is controlled with .pkg files. The .pkg file contains a set of instructions used by tools to produce a .sis file. qmake generates a default .pkg file for your project. The .pkg file generated by qmake is typically fully functional for testing purposes but when planning to deliver your application to end-users some changes are needed. This document describes what changes are typically needed and how to implement them.
Static Linking
Qt for the Symbian platform does currently not support static linking of Qt libraries.
Shared Libraries
When deploying the application using the shared libraries approach we must ensure that the Qt runtime is correctly redistributed along with the application executable, and also that all Qt dependencies are redistributed along with the application.
We will demonstrate these procedures in terms of deploying the Wiggly application that is provided in Qt's examples directory.
Building Qt as a Shared Library
We assume that you already have installed Qt as a shared library, in the C:\path\to\Qt directory which is the default when installing Qt for Symbian. For more information on how to build Qt, see the Installation documentation.
Shared Libraries
After ensuring that Qt is built as a shared library, we can build the Wiggly application. First, we must go into the directory that contains the application:
cd examples\widgets\wiggly
To prepare the application for deployment we must ensure that the .pkg file generated by qmake contains the relevant vendor information and embeds the necessary dependencies to the application deployment file (.sis). The content of the generated .pkg file can be controlled with the Symbian specific qmake DEPLOYMENT keyword extensions.
First, we will change the vendor statement to something more meaningful. The application vendor is visible to end-user during the installation.
vendorinfo = \
"%{\"Example Localized Vendor\"}" \
":\"Example Vendor\""

my_deployment.pkg_prerules = vendorinfo
DEPLOYMENT += my_deployment
Second we will tell the Symbian application installer that this application supports only S60 5.0 based devices:
supported_platforms = \
"; This demo only supports S60 5.0" \
"[0x1028315F],0,0,0,{\"S60ProductID\"}"

default_deployment.pkg_prerules -= pkg_platform_dependencies
my_deployment.pkg_prerules += supported_platforms
DEPLOYMENT += my_deployment
You can find a list of platform and device indentification codes from Forum Nokia Wiki. By default .pkg file generated by qmake adds support for all S60 3rd edition FP1, S60 3rd edition FP2 and S60 5th edition devices.
Now we are ready to compile the application and create the application deployment file. Run qmake to create Symbian specific makefiles, resources (.rss) and deployment packaging files (.pkg). And do build to create the application binaries and resources.
qmake
make release-gcce
If everything compiled and linked without any errors, we are now ready to create an application installation package (wiggly_installer.sis).
If you haven't done so already, download the latest release of the Smart Installer from http://get.qt.nokia.com/nokiasmartinstaller/, and install it on top of the Qt package
Then use this command to create the installer sis package:
make installer_sis
If all binaries and dependencies were found, you should now have a self signed wiggly_installer.sis ready to be installed on a device. The smart installer contained in the in the installer package will download the necessary dependencies such as Qt libraries to the device.
Note: If you want to have your application properly Symbian Signed for distribution, you will have to properly sign both the application and the application installer packages. Please see Symbian Signed wiki for more information about Symbian Signed.
For more information about creating a .sis file and installing it to device see also here.
南安风语者 2010-06-01
  • 打赏
  • 举报
回复
谢谢,这个问题已经解决了
在“S60 -> GUI Application with UI Designer”工程中,进行"Build Configurations",选择"Phone Release(GCCE) ......"后,系统会自动在"SIS Builder"生成一个相关的.sis配置

而在"QT Project"中,选择了"Phone Release(GCCE) ......"后,要我们自己手动去添加的

16,240

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧