English Български

Building Applications for Symbian^1 with Qt SDK 1.1

Description

Due to a bug at Qt SDK 1.1 [bugreports.qt.nokia.com] qmake generates pkg files which does not include support for Symbian^1 (Symbian S60 5th Edition). As a result a compatibility warning is displayed during installation of the sis file of the application on Symbian^1 devices and application cannot be published for them in Nokia Ovi Store.

Workaround

The bug is still not resolved but there is a workaround. To fix it go to \QtSDK\Symbian\SDKs\Symbian1Qt473\mkspecs\features\symbian\default_post.prf and replace the following code:

  1. # Supports Symbian^3 and Symbian^4 by default and also S60 3.1, 3.2, and 5.0 if built against any of those.
  2. platform_product_id = S60ProductID
  3. platform_product_id = $$addLanguageDependentPkgItem(platform_product_id)
  4. pkg_platform_dependencies = \
  5.     "; Default HW/platform dependencies" \
  6.     "[0x20022E6D],0,0,0,{$$platform_product_id}" \
  7.     "[0x20032DE7],0,0,0,{$$platform_product_id}"
  8. contains(S60_VERSION, 3.1)|contains(S60_VERSION, 3.2)|contains(S60_VERSION, 5.0) {
  9.     pkg_platform_dependencies += \
  10.         "[0x102032BE],0,0,0,{$$platform_product_id}" \
  11.         "[0x102752AE],0,0,0,{$$platform_product_id}" \
  12.         "[0x1028315F],0,0,0,{$$platform_product_id}"
  13. }

with

  1. # Supports Symbian^1, Symbian^3 and Symbian^4
  2. platform_product_id = S60ProductID
  3. platform_product_id = $$addLanguageDependentPkgItem(platform_product_id)
  4. pkg_platform_dependencies = \
  5.     "; Default HW/platform dependencies" \
  6.     "; Symbian^1 (aka S60 5th Edition) " \
  7.     "[0x1028315F],0,0,0,{$$platform_product_id}" \
  8.     "; Symbian^3" \
  9.     "[0x20022E6D],0,0,0,{$$platform_product_id}" \
  10.     "; Symbian^4" \
  11.     "[0x20032DE7],0,0,0,{$$platform_product_id}"

The modified code will allow you to build applications compatible to Symbian^1 (Symbian S60 5th Edition), Symbian^3 and Symbian^4.

See also

S60_VERSION and SYMBIAN_VERSION qmake variables are Unknown in Symbian^1 builds [bugreports.qt.nokia.com]
S60 Platform and device identification codes [wiki.forum.nokia.com]

Categories: