Qt project to Symbian MeeGo and Android: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
(Add "cleanup" tag)
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
[[Category:Developing_with_Qt::General]]
[[Category:Developing_with_Qt::General]]
[toc align_right="yes" depth="3"]
[toc align_right="yes" depth="3"]

Revision as of 16:53, 3 March 2015

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

[toc align_right="yes" depth="3"]

My practice to port a Qt application among Symbian, MeeGo and Android

Once I decided to port a Qt Quick application from Symbian to MeeGo, I found there are some little problems, including resolutions, file paths and other minor differences.

The porting process was very easy, and took 1-2 hours, but what happens if you need to make some major changes in the application? You will need to get all changes manually from first application and put them in second one. This sounds easy, but some times is not so.

Configure git to manage ports

To make your life easy, you can use the following process.

  1. Create a git / mercurial repository for your base project. (I use "bitbucket.org":http://www.bitbucket.org)
  2. Once your Symbian or MeeGo (main project) is done, or you want to see your work also on other platforms, create a branch on git/mercurial, (e.g. Symbian) and commit your work under this branch.
  3. Clone your project into another directory, and create a new branch for it (e.g MeeGo) and commit the new created branch.
  4. Make your modifications for MeeGo project to match the UI, and work as it work on Symbian platform.
  5. Commit your MeeGo modifications into MeeGo branch.

Updates after the port

Now you will want to complete your Symbian application or add more functionality and fix bugs.

  1. Come back to your Symbian version of project and make all your wanted changes.
  2. Commit your changes into Symbian branch.
  3. Go to your MeeGo project into git/mercurial workbench
  4. Select the latest Symbian commit, and choose "Merge with local"
  5. Now all modifications on Symbian Branch are also available on MeeGo, and all your old MeeGo modifications are still in MeeGo project.
  6. Make your needed modification in MeeGo project based on the Symbian changes.
  7. Commit your work into "MeeGo" Branches.

Now you have both Symbian and MeeGo applications in sync, in few easy steps

Porting to other systems

  1. Clone Symbian project into new directory.
  2. Commit your cloned project into another branch (e.g. Android)