Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. MacOS application stopped working properly after using macdeploy
Forum Updated to NodeBB v4.3 + New Features

MacOS application stopped working properly after using macdeploy

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
13 Posts 3 Posters 801 Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Requ
    wrote on 5 May 2020, 15:54 last edited by
    #1

    Hello,

    I'm trying to deploy MacOS application using macdeployqt tool. Problem is that before I using the tool, app generated by Qt works fine, but after using macdeployqt app can't connect with server.

    This is my steps:

    macdeployqt <APP_NAME>.app -qmldir=<APP_NAME>/qml -verbose=3 -executable=<APP_NAME>.app/Contents/MacOS/<binary> -libpath=<APP_NAME>.app/Contents/Frameworks -qmlimport=/Path/to/qml/sources -always-overwrite

    After this step application could not connect with server
    I was add chmod -RH u+w,go-w,a+rX <APP_NAME>.app and check binary linking + Frameworks & Plugins cross-reference linking in bundle by otool -L <Lib_Name>.

    Every path linked outside was change in this way: install_name_tool -change @rpath/QtSvg.framework/Versions/5/QtSvg @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg <APP_NAME>.app/Contents/Frameworks/QtSvg.framework/Versions/5/QtSvg

    At the end bundle is signed by codesign --force --deep --sign <DEVELOPER_ID> <APP_NAME>.app to be sure that every Framework and Plugin will be signed.

    It looks like some kind of permissioning problem or maybe wrong library linking but I'm not sure.

    Is there any other way to diagnose what is the problem?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 5 May 2020, 18:22 last edited by
      #2

      Hi,

      Did you starting the application directly from the command line ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        Requ
        wrote on 5 May 2020, 20:41 last edited by
        #3

        Hi @SGaist ,

        Yes I'm do it in that way.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 6 May 2020, 19:56 last edited by
          #4

          Do you get any message in the terminal ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          R 1 Reply Last reply 7 May 2020, 10:36
          0
          • A Offline
            A Offline
            alanaalison
            Banned
            wrote on 7 May 2020, 06:11 last edited by
            #5
            This post is deleted!
            1 Reply Last reply
            1
            • S SGaist
              6 May 2020, 19:56

              Do you get any message in the terminal ?

              R Offline
              R Offline
              Requ
              wrote on 7 May 2020, 10:36 last edited by
              #6

              @SGaist ,

              The only message I have is that the application cannot create OpcUA client. Not sure if it help but application is using a configuration file to get server url and the file is located in QStandardPaths::writableLocation(QStandardPaths::ApplicationDataLocation) which is a equivalent of ~/Library/Application Support/<APP_NAME> but I'm not sure if thats have any impact of this behaviour.

              Hi, @alanaalison currently I'm using this tools install_name_tool and otool to validate the Frameworks and Plugins paths and the output looks like that:

              <APP_NAME>.app/Contents/Frameworks/QtDBus.framework/QtDBus:
               @executable_path/../Frameworks/QtDBus.framework/Versions/5/QtDBus 
               @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore
               /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 
               /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
               /usr/lib/libc++.1.dylib 
               /usr/lib/libSystem.B.dylib
              

              All Qt libs were copied to Frameworks folder. Or maybe I should also add the user libs?

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 7 May 2020, 18:28 last edited by
                #7

                What modules are you using ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                R 1 Reply Last reply 8 May 2020, 07:00
                0
                • S SGaist
                  7 May 2020, 18:28

                  What modules are you using ?

                  R Offline
                  R Offline
                  Requ
                  wrote on 8 May 2020, 07:00 last edited by
                  #8

                  @SGaist I'm using

                  QtCore
                  QtMultimedia
                  QtOpcUa
                  QtQuick
                  QtNetwork
                  QtGui
                  QtMacExtras
                  QtQml
                  QtQuickControls2
                  QtQuickTemplates2
                  QtXml
                  QtWidgets
                  QtMultimediaWidgets
                  QtDBus
                  QtPrintSupport
                  QtOpenGL
                  QtSvg

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 10 May 2020, 18:26 last edited by
                    #9

                    What version of Qt are you using ?

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • R Offline
                      R Offline
                      Requ
                      wrote on 11 May 2020, 07:32 last edited by
                      #10

                      @SGaist Qt 5.13.0

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on 12 May 2020, 18:04 last edited by
                        #11

                        Can you test with a more recent version ? Current is 5.14.2 with 5.15.0 around the corner.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        R 1 Reply Last reply 13 May 2020, 08:41
                        0
                        • S SGaist
                          12 May 2020, 18:04

                          Can you test with a more recent version ? Current is 5.14.2 with 5.15.0 around the corner.

                          R Offline
                          R Offline
                          Requ
                          wrote on 13 May 2020, 08:41 last edited by Requ
                          #12

                          @SGaist for Qt 5.14.1 got this same. I also checked behaviour of deployed application for windows and it works this same.

                          1 Reply Last reply
                          0
                          • S Offline
                            S Offline
                            SGaist
                            Lifetime Qt Champion
                            wrote on 4 Jun 2020, 06:46 last edited by
                            #13

                            What server are you connecting to ? Does it use SSL ?

                            Interested in AI ? www.idiap.ch
                            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                            1 Reply Last reply
                            0

                            • Login

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