1

我开始研究为移动世界开发 Ubuntu。我在这里写下我为安装开发环境所做的事情。

我希望有一个人可以帮助我。谢谢大家!

  1. 全新安装 Ubuntu 16.04 LTS 桌面
  2. 更新和升级它
  3. 根据 Zoltán Balogh 2016-4 月的交流和 Ubuntu SDK 的安装指南,我按照以下说明顺序进行操作:
  • sudo add-apt-repository ppa:ubuntu-sdk-team/ppa
  • sudo apt update && sudo apt install ubuntu-sdk
  • sudo apt update && sudo apt dist-upgrade
  • sudo apt install ubuntu-sdk-api-15.04-armhf
  • sudo apt update && sudo apt install ubuntu-sdk-ide ubuntu-sdk-dev

https://lists.ubuntu.com/archives/ubuntu-devel/2016-April/039322.html

  1. 出色地!我开始使用IDE,收到了ubuntu-sdk-15.04-armhf kit的更新通知。我不接受请求更新。此时我有 armhf 套件的这个内容:

ls -l /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/

drwxr-xr-x 11 root root 4096 gen 22 20:29 Components
drwxr-xr-x  2 root root 4096 gen 22 20:28 Content
drwxr-xr-x  2 root root 4096 gen 22 20:30 DownloadManager
drwxr-xr-x  2 root root 4096 gen 22 20:29 Layouts
drwxr-xr-x  2 root root 4096 gen 22 20:28 MediaScanner.0.1
drwxr-xr-x  3 root root 4096 gen 22 20:30 OnlineAccounts
drwxr-xr-x  2 root root 4096 gen 22 20:29 PerformanceMetrics
drwxr-xr-x  2 root root 4096 gen 22 20:30 PushNotifications
drwxr-xr-x  2 root root 4096 gen 22 20:28 SyncMonitor
drwxr-xr-x  3 root root 4096 gen 22 20:29 Telephony
drwxr-xr-x  2 root root 4096 gen 22 20:29 Test
drwxr-xr-x  3 root root 4096 gen 22 20:29 Unity
  1. 我从这个模板创建了我的第一个项目:QML App with Simple UI(qmake) - (QtQuick2 app with kit using 15.04 click root)

我在 Main.qml 上有一个错误,用于导入 Ubuntu.Components 1.3

[11:58:52] ii click-reviewers-tools 0.42

解析 /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components 的 QML 类型信息时出现警告:

无法解析“/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes”。错误:/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes:1443:39:元对象修订没有匹配的出口。/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes:1452:39:元对象修订没有匹配出口。/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Components/plugins.qmltypes:1470:39:元对象修订没有匹配出口。解析 /var/lib/schroot/chroots/click-ubuntu-sdk-15 的 QML 类型信息时出现警告。04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/QtMultimedia:无法解析“/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux -gnueabihf/qt5/qml/QtMultimedia/plugins.qmltypes”。错误:/var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/QtMultimedia/plugins.qmltypes:0:0: 预期单个导入。

  1. 好的,我关闭 ide 并重新打开它。好吧,我接受套件的请求更新:ubuntu-sdk-15.04-armhf 和 ubuntu-sdk-15.04-i386

    现在我有这个 amrhf 套件的内容

ls -l /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/

  drwxr-xr-x 2 root root 4096 mag  1 12:16 Content
  drwxr-xr-x 2 root root 4096 mag  1 12:16 DownloadManager
  drwxr-xr-x 2 root root 4096 mag  1 12:16 Layouts
  drwxr-xr-x 2 root root 4096 mag  1 12:16 MediaScanner.0.1
  drwxr-xr-x 3 root root 4096 gen 22 20:30 OnlineAccounts
  drwxr-xr-x 2 root root 4096 mag  1 12:16 PerformanceMetrics
  drwxr-xr-x 2 root root 4096 mag  1 12:16 SyncMonitor
  drwxr-xr-x 3 root root 4096 gen 22 20:29 Unity

更新请求后,以下文件夹已被删除---是否正确?

drwxr-xr-x 11 root root 4096 gen 22 20:29 Components
drwxr-xr-x  2 root root 4096 gen 22 20:30 PushNotifications
drwxr-xr-x  3 root root 4096 gen 22 20:29 Telephony
drwxr-xr-x  2 root root 4096 gen 22 20:29 Test
  1. 现在我在导入 Ubuntu.Components 1.3 时遇到此错误:
QML module not found
  import paths /var/lib/schroot/chroots/click-ubuntu-sdk-15.04-armhf/usr/lib/arm-linux-gnueabihf/qt5/qml
  For qmake project use QML_IMPORT_PATH variable to add import paths
  1. 我的 qtchooser 和 qmake 版本命令输出:
qtchooser -l
  4
  5
  default
  qt4-x86_64-linux-gnu
  qt4
  qt5-x86_64-linux-gnu
  qt5
  --------
  --------
qmake -version
  QMake version 3.0
  Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu
4

0 回答 0