Creating a Maemo installation package for QT applications

Source: Internet
Author: User

Some time ago began to write the program on QT, because only to provide me with a N900, and no one training, through their own groping, wrote some applications, the program can be tested on N900, but I hope I write the application can be installed to this step N900 run, Start exploring how to make Maemo installation packages for QT applications.

Reference a lot of information, because I was on the windowsxp system to do development, through the practical installation package to make the following steps:

First, open Madde Terminal

The premise is to install the Nokia Qt SDK Oh, I was installed on the e-drive.

All programs from Start->nokia Qt Sdk->madde Terminal

Second, build the project
1. Enter Mad Pscreate-t Qt-simple Qtapp
At this time will be generated in the E:\NokiaQtSDK\Maemo\home\Administrator Qtapp folder, there are some files, for the sake of simplicity can not modify


2. Open the Qtapp.pro file and add the necessary files in the generated Qtapp project

Because I'm doing the OpenGL ES project, the QT = Core GUI must be modified to QT +=opengl core in the. Pro file

Then add the corresponding other files, the development of the application of the necessary files are loaded into the project, if you have imported external files or pictures, such as the format of the resource file to be added to the project. And make sure that the path to the calls to these files is correct.

3, if the project Qtapp can run the following steps can be performed, in Madde Terminal input CD Qtapp (go to the Qtapp folder)

4. Enter Mad Qmake (generate makefile) in Madde Terminal

5. Enter mad make (start compiling) in Madde Terminal

Continue with the following steps until the compilation passes

6. Mad Dpkg-buildpackage (Pack)

7, the above steps are successful, will be in the same level of Qtapp directory, will generate a. deb installation file. Copy to your phone and install it via the file manager.


It concludes that:
1, must have QConstantFile.h file, used to ensure the use of the library;
2. All files and resources must be added to the project.
3, all except the code file, such as texture picture, vertex data, shader program are added to the project in the form of resources, the path must be correct when the file resource is called.
4, because it is the OpenGL ES on QT program, so in the. Pro file to change QT to QT +=opengl core

Operation several times, error constantly modified, finally succeeded, O (∩_∩) o haha ~ to share with you

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.