Ubuntu 16.04 LTS和Ubuntu SDK - 全新安装ubuntu sdk的错误

时间:2016-05-01 12:49:44

标签: sdk qt5 qt-creator ubuntu-16.04 ubuntu-touch

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

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

  1. 全新安装Ubuntu 16.04 LTS Desktop
  2. 更新并升级
  3. 根据2016年4月的ZoltánBalogh的通讯和 在Ubuntu SDK的安装指南中,我遵循了以下指令序列:
  4.   
        
    • 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工具包的更新通知。我不接受请求更新。 这时我有armhf工具包的内容:
    2.   

      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. 我从这个模板创建了我的第一个项目:带有简单UI的QML应用程序(qmake) - (QtQuick2 app with kit使用15.04 click root)
      2.   

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

             

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

             

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

             

        无法解析   “/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:   没有匹配导出的元对象修订。解析时的警告   QML类型信息   /var/lib/schroot/chroots/click-ubuntu-sdk-15.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 kit的内容

        2. 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时遇到此错误:
          2. 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版本命令输出:
            2. 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
              

0 个答案:

没有答案