Qt project to Symbian MeeGo and Android: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Developing_with_Qt::General]]<br />[toc align_right=&quot;yes&amp;quot; depth=&quot;3&amp;quot;]
[[Category:Developing_with_Qt::General]]
[toc align_right="yes" depth="3"]


= My practice to port a Qt application among Symbian, MeeGo and Android =
= My practice to port a Qt application among Symbian, MeeGo and Android =
Line 11: Line 12:
To make your life easy, you can use the following process.
To make your life easy, you can use the following process.


# Create a git / mercurial repository for your base project. (I use &quot;bitbucket.org&amp;quot;:http://www.bitbucket.org)
# Create a git / mercurial repository for your base project. (I use "bitbucket.org":http://www.bitbucket.org)
# 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.
# 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.
# Clone your project into another directory, and create a new branch for it (e.g MeeGo) and commit the new created branch.
# Clone your project into another directory, and create a new branch for it (e.g MeeGo) and commit the new created branch.
Line 24: Line 25:
# Commit your changes into Symbian branch.
# Commit your changes into Symbian branch.
# Go to your MeeGo project into git/mercurial workbench
# Go to your MeeGo project into git/mercurial workbench
# Select the latest Symbian commit, and choose &quot;Merge with local&amp;quot;
# Select the latest Symbian commit, and choose "Merge with local"
# Now all modifications on Symbian Branch are also available on MeeGo, and all your old MeeGo modifications are still in MeeGo project.
# Now all modifications on Symbian Branch are also available on MeeGo, and all your old MeeGo modifications are still in MeeGo project.
# Make your needed modification in MeeGo project based on the Symbian changes.
# Make your needed modification in MeeGo project based on the Symbian changes.
# Commit your work into &quot;MeeGo&amp;quot; Branches.
# Commit your work into "MeeGo" Branches.


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

Revision as of 13:05, 25 February 2015

[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)