Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Strange problem with macdeployqt tool on Qt 5.7 Beta

Strange problem with macdeployqt tool on Qt 5.7 Beta

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
qmlqt 5.7.0 betamacdeployqt
6 Posts 2 Posters 2.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shav
    wrote on 25 May 2016, 20:27 last edited by
    #1

    Re: [SOLVED] macdeployqt problem

    Hi everyone!

    I have a strange problem after use command macdeployqt on my mac. I have a project with custom UI elements where I using Qt.labs.controls. If I build and run application without macdeployqt all works fine but if I run macdeployqt tool to my app bundle the application is broken and can't lunch. There is error message:

    $ NestleanClient/NestleanClient.app/Contents/MacOS/NestleanClient 
    argc:  1  argv:  0x7fff58319a90
    DESKTOP
    QQmlApplicationEngine failed to load component
    qrc:/qml/main.qml:326 Type ApplicationDetailView unavailable
    qrc:/qml/Applications/ApplicationDetailView.qml:142 Type ApplicationTestsResultsView unavailable
    qrc:/qml/Applications/ApplicationTestsResultsView.qml:255 Type CreateTestcaseView unavailable
    qrc:/qml/Applications/Testcases/CreateTestcaseView.qml:320 Type CustomComboBox unavailable
    qrc:/qml/Components/CustomComboBox.qml:3 module "Qt.labs.controls" plugin "qtquickcontrolsplugin" not found
    
    Segmentation fault: 11
    

    As you can see application can't find module in qtquickcontrolsplugin. The command how I call macdeployqt tool:

    /Volumes/HPDD/Applications/Qt/Qt5.x/5.7/clang_64/bin/macdeployqt <full_path_to_app>/NestleanClient.app -qmldir=<full_path_to_qml_files_folder>/NestleanClient -verbose=2
    

    The full log you can find here.

    What I can do to fix this problem? Thanks for the any help.

    Qt version: 5.7.0 beta 1 (official beta release from DMG).

    Mac OS and iOS Developer

    C 1 Reply Last reply 26 May 2016, 20:21
    0
    • S shav
      25 May 2016, 20:27

      Re: [SOLVED] macdeployqt problem

      Hi everyone!

      I have a strange problem after use command macdeployqt on my mac. I have a project with custom UI elements where I using Qt.labs.controls. If I build and run application without macdeployqt all works fine but if I run macdeployqt tool to my app bundle the application is broken and can't lunch. There is error message:

      $ NestleanClient/NestleanClient.app/Contents/MacOS/NestleanClient 
      argc:  1  argv:  0x7fff58319a90
      DESKTOP
      QQmlApplicationEngine failed to load component
      qrc:/qml/main.qml:326 Type ApplicationDetailView unavailable
      qrc:/qml/Applications/ApplicationDetailView.qml:142 Type ApplicationTestsResultsView unavailable
      qrc:/qml/Applications/ApplicationTestsResultsView.qml:255 Type CreateTestcaseView unavailable
      qrc:/qml/Applications/Testcases/CreateTestcaseView.qml:320 Type CustomComboBox unavailable
      qrc:/qml/Components/CustomComboBox.qml:3 module "Qt.labs.controls" plugin "qtquickcontrolsplugin" not found
      
      Segmentation fault: 11
      

      As you can see application can't find module in qtquickcontrolsplugin. The command how I call macdeployqt tool:

      /Volumes/HPDD/Applications/Qt/Qt5.x/5.7/clang_64/bin/macdeployqt <full_path_to_app>/NestleanClient.app -qmldir=<full_path_to_qml_files_folder>/NestleanClient -verbose=2
      

      The full log you can find here.

      What I can do to fix this problem? Thanks for the any help.

      Qt version: 5.7.0 beta 1 (official beta release from DMG).

      C Offline
      C Offline
      cheezus
      wrote on 26 May 2016, 20:21 last edited by
      #2

      @shav I found that with macdepoyqt, I have to change the directory to $QTDIR/bin before running it.

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shav
        wrote on 26 May 2016, 20:25 last edited by
        #3

        Hi,

        Thanks for the reply.
        Are you trying from Qt Creator or console? Could you share to me your command format?

        Mac OS and iOS Developer

        C 1 Reply Last reply 27 May 2016, 15:10
        0
        • S shav
          26 May 2016, 20:25

          Hi,

          Thanks for the reply.
          Are you trying from Qt Creator or console? Could you share to me your command format?

          C Offline
          C Offline
          cheezus
          wrote on 27 May 2016, 15:10 last edited by cheezus
          #4

          @shav Command-line. Simple: cd $QTDIR/bin && macdeployqt ... /full/path/to/Application.app

          S 1 Reply Last reply 27 May 2016, 18:48
          0
          • C cheezus
            27 May 2016, 15:10

            @shav Command-line. Simple: cd $QTDIR/bin && macdeployqt ... /full/path/to/Application.app

            S Offline
            S Offline
            shav
            wrote on 27 May 2016, 18:48 last edited by
            #5

            @cheezus Thanks! I will test it.

            Mac OS and iOS Developer

            1 Reply Last reply
            0
            • S Offline
              S Offline
              shav
              wrote on 28 May 2016, 15:35 last edited by
              #6

              Hi everyone!

              I've test the command and all works fine if I commented module "Qt.labs.controls 1.0". But if I use this model I receive error every time when I try to use macdeplotqt tool.

              QmlApplicationEngine failed to load component
              qrc:/qml/main.qml:340 Type ApplicationDetailView unavailable
              qrc:/qml/Applications/ApplicationDetailView.qml:140 Type ApplicationTestsResultsView unavailable
              qrc:/qml/Applications/ApplicationTestsResultsView.qml:243 Type CreateTestcaseView unavailable
              qrc:/qml/Applications/Testcases/CreateTestcaseView.qml:302 Type CustomComboBox unavailable
              qrc:/qml/Components/CustomComboBox.qml:3 module "Qt.labs.controls" plugin "qtquickcontrolsplugin" not found
              

              I think the problem with plugin. I'll wait RC version of Qt 5.7 maybe this bug will be fixed.

              Mac OS and iOS Developer

              1 Reply Last reply
              0

              1/6

              25 May 2016, 20:27

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved