Advertisement
kwhitefoot

Nokia N9 app installed from Ovi Store behaves differently th

Jan 11th, 2013
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.61 KB | None | 0 0
  1. Nokia N9 app installed from Ovi Store behaves differently than locally compiled version (Digia Remote Camera)
  2.  
  3.  
  4. If you have a chance to try it out I'd be very grateful. I don't think I am the only one struggling to send email from the N9.
  5.  
  6. This is what I did:
  7.  
  8. git clone git://gitorious.org/remote-camera/remote-camera.git remote-camera
  9.  
  10. Then I opened the .pro file in QtCreator
  11.  
  12. Qt Creator 2.4.1
  13. Based on Qt 4.7.4 (32 bit)
  14.  
  15. Built on Jan 25 2012 at 11:24:30
  16.  
  17. I unchecked the desktop build and checked the box for Harmattan.
  18.  
  19. Then I built (clicked the hammer icon).
  20.  
  21. A couple of unimportant issues were raised (notification of unstable API) but no errors.
  22.  
  23. Then I connected my N9 via USB and ran the program from QtCreator (Control-r)
  24.  
  25. The Compile Output window looked like this:
  26.  
  27. =======================================
  28.  
  29. 23:02:41: Running build steps for project remotecamera...
  30. 23:02:41: Configuration unchanged, skipping qmake step.
  31. 23:02:41: Starting: "/usr/bin/make" -w
  32. make: Entering directory `/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release'
  33. Makefile:393: warning: overriding commands for target `install_icon'
  34. Makefile:364: warning: ignoring old commands for target `install_icon'
  35. Makefile:398: warning: overriding commands for target `uninstall_icon'
  36. Makefile:369: warning: ignoring old commands for target `uninstall_icon'
  37. make: Nothing to be done for `first'.
  38. make: Leaving directory `/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release'
  39. 23:02:41: The process "/usr/bin/make" exited normally.
  40. 23:02:41: Creating package file ...
  41. 23:02:41: Package Creation: Running command '/home/whitefoot/QtSDK/Madde/bin/mad dpkg-buildpackage -nc -uc -us'.
  42. dpkg-buildpackage: set CFLAGS to default value: -g -O2
  43. dpkg-buildpackage: set CPPFLAGS to default value:
  44. dpkg-buildpackage: set LDFLAGS to default value:
  45. dpkg-buildpackage: set FFLAGS to default value: -g -O2
  46. dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
  47. dpkg-buildpackage: source package remotecamera-digia
  48. dpkg-buildpackage: source version 1.3.0
  49. dpkg-buildpackage: source changed by Digia Plc <support.apps@digia.com>
  50. dpkg-buildpackage: host architecture armel
  51. debian/rules build
  52. dh_testdir
  53. # qmake PREFIX=/usr# Uncomment this line for use without Qt Creator
  54. touch configure-stamp
  55. dh_testdir
  56. # Add here commands to compile the package.
  57. # /usr/bin/make # Uncomment this line for use without Qt Creator
  58. #docbook-to-man debian/remotecamera-digia.sgml > surveillance.1
  59. touch build-stamp
  60. debian/rules binary
  61. dh_testdir
  62. dh_testroot
  63. dh_clean -k
  64. dh_installdirs
  65. # Add here commands to install the package into debian/remotecamera-digia.
  66. /usr/bin/make INSTALL_ROOT="/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release"/debian/remotecamera-digia install
  67. make[1]: Entering directory `/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release'
  68. Makefile:393: warning: overriding commands for target `install_icon'
  69. Makefile:364: warning: ignoring old commands for target `install_icon'
  70. Makefile:398: warning: overriding commands for target `uninstall_icon'
  71. Makefile:369: warning: ignoring old commands for target `uninstall_icon'
  72. cp -f -r /home/whitefoot/qt-projects/remote-camera/qml/surveillance /home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release/debian/remotecamera-digia/opt/remotecamera/qml/
  73. install -m 644 -p /home/whitefoot/qt-projects/remote-camera/remotecamera80.png /home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release/debian/remotecamera-digia/usr/share/icons/hicolor/80x80/apps/
  74. install -m 644 -p /home/whitefoot/qt-projects/remote-camera/remotecamera_harmattan.desktop /home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release/debian/remotecamera-digia/usr/share/applications/
  75. install -m 755 -p "remotecamera" "/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release/debian/remotecamera-digia/opt/remotecamera/bin/remotecamera"
  76. install -m 644 -p /home/whitefoot/qt-projects/remote-camera/LICENSE.LGPL-2.1 /home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release/debian/remotecamera-digia/usr/share/doc/remotecamera-digia/
  77. make[1]: Leaving directory `/home/whitefoot/qt-projects/remotecamera-build-harmattan-Harmattan_Target_-_QEmu_PR1_2__Qt_SDK__Release'
  78. dh_testdir
  79. dh_testroot
  80. dh_installchangelogs
  81. dh_installdocs
  82. dh_installexamples
  83. dh_installman
  84. dh_link
  85. dh_strip
  86. dh_compress
  87. dh_fixperms
  88. dh_installdeb
  89. dh_shlibdeps # Uncomment this line for use without Qt Creator
  90. dpkg-shlibdeps: warning: dependency on libdbus-1.so.3 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  91. dpkg-shlibdeps: warning: dependency on libQtOpenGL.so.4 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  92. dpkg-shlibdeps: warning: dependency on libQtMultimediaKit.so.1 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  93. dpkg-shlibdeps: warning: dependency on libxml2.so.2 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  94. dpkg-shlibdeps: warning: dependency on librt.so.1 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  95. dpkg-shlibdeps: warning: dependency on libpthread.so.0 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  96. dpkg-shlibdeps: warning: dependency on libdbus-qeventloop.so.1 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  97. dpkg-shlibdeps: warning: dependency on libgcc_s.so.1 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  98. dpkg-shlibdeps: warning: dependency on libgstbase-0.10.so.0 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  99. dpkg-shlibdeps: warning: dependency on libgmodule-2.0.so.0 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  100. dpkg-shlibdeps: warning: dependency on libGLESv2.so could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  101. dpkg-shlibdeps: warning: dependency on libgthread-2.0.so.0 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  102. dpkg-shlibdeps: warning: dependency on libQtNetwork.so.4 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  103. dpkg-shlibdeps: warning: dependency on libresource.so.0 could be avoided if "debian/remotecamera-digia/opt/remotecamera/bin/remotecamera" were not uselessly linked against it (they use none of its symbols).
  104. dh_gencontrol
  105. dpkg-gencontrol: warning: unknown substitution variable ${misc:Depends}
  106. dh_md5sums
  107. dh_builddeb
  108. aegis-manifest: Creating 'remotecamera-digia.aegis'.
  109. dpkg-genchanges -b -u.. >../remotecamera-digia_1.3.0_armel.changes
  110. dpkg-genchanges: binary-only upload - not including any source code
  111. dpkg-buildpackage: binary only upload (no source included)
  112. 23:02:56: Package created.
  113. 23:02:56: Installing package to sysroot ...
  114. Package 'remotecamera-digia' installed.
  115.  
  116. 23:02:56: Connecting to device...
  117. 23:02:57: Preparing SFTP connection...
  118. 23:02:57: Starting upload...
  119. 23:02:57: Successfully uploaded package file.
  120. 23:02:57: Installing package to device...
  121. (Reading database ... 56518 files and directories currently installed.)
  122. Preparing to replace remotecamera-digia 1.3.0 (using .../remotecamera-digia_1.3.0_armel.deb) ...
  123. Unpacking replacement remotecamera-digia ...
  124. aegis-installing remotecamera-digia (from '')
  125. Setting up remotecamera-digia (1.3.0) ...
  126. Processing triggers for desktop-file-utils ...
  127. Processing triggers for hicolor-icon-theme ...
  128. Processing triggers for applauncherd-launcher ...
  129. 23:03:31: Package installed.
  130. 23:03:31: Deploy step finished.
  131.  
  132. =======================================
  133.  
  134. The program started, I touched the start button on the N9 screen waited for the timeout (10 seconds) and thenmoved it around to simulate movememnt so that it would take several shots. Then I closed the program with a swipe. The Application output window looked like this:
  135.  
  136. =======================================
  137. Killing remote process(es)...
  138. Starting remote process ...
  139. Remote process started.
  140. Successfully resolved MeeGo graphics system: /usr/lib/qt4/plugins/graphicssystems/libqmeegographicssystem.so
  141.  
  142. X Error: BadDamage (invalid Damage parameter) 153
  143. Extension: 146 (Uknown extension)
  144. Minor opcode: 2 (Unknown request)
  145. Resource id: 0x1e00007
  146. Found SGX/MBX driver, enabling FullClearOnEveryFrame
  147. Found v1.4 driver, enabling brokenTexSubImage
  148. MeegoGraphics: found EGL_NOK_image_shared
  149. MeegoGraphics: found EGL_KHR_lock_surface2
  150. MeegoGraphics: found EGL_KHR_fence_sync
  151. "org.freedesktop.DBus.Error.AccessDenied" "Rejected send message, 3 matched rules; type="method_call", sender=":1.13000" (uid=29999 pid=29132 comm="/opt/remotecamera/bin/remotecamera ") interface="com.nokia.mce.request" member="req_tklock_mode_change" error name="(unset)" requested_reply=0 destination="com.nokia.mce" (uid=0 pid=563 comm="/sbin/mce --force-syslog "))"
  152. "" ""
  153. hijackWindow() context created for QmlApplicationViewer(0xaed13a68) 1
  154. Found SGX/MBX driver, enabling FullClearOnEveryFrame
  155. Found v1.4 driver, enabling brokenTexSubImage
  156. QGLWindowSurface: Using plain widget as window surface QGLWindowSurface(0x1f7b9d48)
  157. "org.freedesktop.DBus.Error.AccessDenied" "Rejected send message, 3 matched rules; type="method_call", sender=":1.13000" (uid=29999 pid=29132 comm="/opt/remotecamera/bin/remotecamera ") interface="com.nokia.mce.request" member="req_tklock_mode_change" error name="(unset)" requested_reply=0 destination="com.nokia.mce" (uid=0 pid=563 comm="/sbin/mce --force-syslog "))"
  158. "" ""
  159. libqtcontacts-tracker: initializing libqtcontacts-tracker 4.19.2-1+0m8 for /opt/remotecamera/bin/remotecamera [29132]
  160. ... The previous line is repeated about 120 times
  161. libqtcontacts-tracker: engine.cpp:1591: Not cleaning up obsolete resources for nao:hasTag property since the property's range is too generic (rdfs:Resource).
  162. send Cannot obtain default account
  163. message.type(): 4 msgType: 0
  164. void QtMobility::QMessageServicePrivate::stateChanged(QtMobility::QMessageService::State) emitting stateChanged( 3 )
  165. send Cannot obtain default account
  166. message.type(): 4 msgType: 0
  167. void QtMobility::QMessageServicePrivate::stateChanged(QtMobility::QMessageService::State) emitting stateChanged( 3 )
  168. send Cannot obtain default account
  169. message.type(): 4 msgType: 0
  170. void QtMobility::QMessageServicePrivate::stateChanged(QtMobility::QMessageService::State) emitting stateChanged( 3 )
  171. "org.freedesktop.DBus.Error.AccessDenied" "Rejected send message, 3 matched rules; type="method_call", sender=":1.13000" (uid=29999 pid=29132 comm="/opt/remotecamera/bin/remotecamera ") interface="com.nokia.mce.request" member="req_tklock_mode_change" error name="(unset)" requested_reply=0 destination="com.nokia.mce" (uid=0 pid=563 comm="/sbin/mce --force-syslog "))"
  172. "" ""
  173. send Cannot obtain default account
  174. message.type(): 4 msgType: 0
  175. void QtMobility::QMessageServicePrivate::stateChanged(QtMobility::QMessageService::State) emitting stateChanged( 3 )
  176. Meego graphics system destroyed
  177. QSqlDatabasePrivate::removeDatabase: connection 'qmailstore_sql_connection' is still in use, all queries will cease to work.
  178. libomap3camd 1.136
  179. libomap3camd 1.136
  180. Finished running remote process. Exit code was 0.
  181. =======================================
  182.  
  183. The message:
  184.  
  185. send Cannot obtain default account
  186.  
  187. is exactly the same as I get when I try to execute similar code in my own programs.
  188.  
  189. No email is sent. But if I remove the application and install the binary from the Ovi Store it works perfectly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement