正在載入模組:'libubuntu_application_api_touch_mirclient.so.3.0.0' 此插件不支援propagateSizeHints()

正在載入模組:'libubuntu_application_api_touch_mirclient.so.3.0.0' 此插件不支援propagateSizeHints()

我在嘗試為 Nexus 4 手機建立 Click 包時遇到此錯誤。當我為桌面建置時,此問題不存在:

Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
This plugin does not support propagateSizeHints()

完整的錯誤在這裡:

在此輸入影像描述

我不知道如何解決這個問題。知道在說什麼嗎?

答案1

有類似的東西。計算器應用程式的錯誤報告:

http://bazaar.launchpad.net/~gang65/ubuntu-calculator-app/ubuntu-calculator-app-install-fix/revision/218#app/CMakeLists.txt

在多個裝置(arale、krillin 運行 rc-proproved)和 krillin 運行零售 OTA-5 上進行了測試。

啟動計算器會導致啟動窗口,然後應用程式會死掉而不會繪製計算器窗口。

該應用程式在桌面上啟動良好。

r182(目前在商店中)和 r217 之間有東西壞了。

日誌包含:-

phablet@ubuntu-phablet:~/.cache/upstart$ cat application-click-com.ubuntu.calculator_ubuntu-calculator-app_2.0.217.log
libust[27746/27749]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[27746/27749]: Error: Error opening shm /lttng-ust-wait-5-32011 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[27746/27748]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
libust[27746/27748]: Error: Error opening shm /lttng-ust-wait-5 (in get_wait_shm() at lttng-ust-comm.c:958)
Loading module: 'libubuntu_application_api_touch_mirclient.so.3.0.0'
UbuntuWindow - regular geometry
UbuntuWindow - regular geometry
UbuntuWindow - regular geometry
This plugin does not support propagateSizeHints()

修復提交到分支(修訂版 218):lp:~gang65/ubuntu-calculator-app/ubuntu-calculator-app-install-fix(修訂版 218)

差異:

=== modified file 'app/CMakeLists.txt'
--- app/CMakeLists.txt  2015-07-20 19:23:20 +0000
+++ app/CMakeLists.txt  2015-07-31 11:54:58 +0000
@@ -3,14 +3,8 @@
   add_custom_target(ubuntu-calculator-app_QMlFiles ALL SOURCES ${QML_JS_FILES})
 endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
 
-if(CLICK_MODE)
-  install(FILES graphics/${ICON_FILE} DESTINATION ${CMAKE_INSTALL_PREFIX})
-  install(FILES ${MAIN_QML} DESTINATION ${CMAKE_INSTALL_PREFIX})
-else (CLICK_MODE)
-  install(FILES graphics/${ICON_FILE} DESTINATION ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR})
-  install(FILES ${MAIN_QML} DESTINATION ${CMAKE_INSTALL_PREFIX}/${UBUNTU-CALCULATOR-APP_DIR})
-endif(CLICK_MODE)
-
+install(FILES graphics/${ICON_FILE} DESTINATION ${UBUNTU-CALCULATOR-APP_DIR})
+install(FILES ${MAIN_QML} DESTINATION ${UBUNTU-CALCULATOR-APP_DIR})
 
 add_subdirectory(engine)
 add_subdirectory(graphics)

=== modified file 'manifest.json.in'
--- manifest.json.in    2015-07-09 20:39:32 +0000
+++ manifest.json.in    2015-07-31 11:54:58 +0000
@@ -4,7 +4,7 @@
     "description": "Powerful and easy to use calculator.",
     "framework": "ubuntu-sdk-14.10",
     "hooks": {
-        "@APP_HARDCODE@": {
+        "calculator": {
             "apparmor": "@[email protected]",
             "desktop": "@CMAKE_INSTALL_DATADIR@/applications/ubuntu-calculator-app.desktop"
         }

答案2

我透過使用模板在 SDK 中建立一個新專案解決了這個問題:

在此輸入影像描述

並將我的專案文件轉移到該專案中。雖然這不是解決該錯誤的方法,但根據我的衡量標準,這是允許我恢復工作的最快解決方法。

相關內容