Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. macdeployqt
Forum Updated to NodeBB v4.3 + New Features

macdeployqt

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
11 Posts 3 Posters 2.2k Views 2 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.
  • C Offline
    C Offline
    ckvsoft
    wrote on last edited by ckvsoft
    #1

    Hallo

    My Question is, wher i must setup my profile for mac .

    My App compiles fine, but macdeplyqt can't find my created libs.

    After make i have my lib (libMyAppCore.1.0.0.dylib*) in my MyAppCore folder and my App
    in MyApp.

    in the created MyApp.app i can only find my executable and macdeployqt says
    can not find /usr/lib/libMyAppCore.1.dylib

    When i manualy copy the dylib in the MyApp.app it works, but how can do this Job macdeployqt?

    thx Chris

    kshegunovK 1 Reply Last reply
    0
    • C ckvsoft

      Hallo

      My Question is, wher i must setup my profile for mac .

      My App compiles fine, but macdeplyqt can't find my created libs.

      After make i have my lib (libMyAppCore.1.0.0.dylib*) in my MyAppCore folder and my App
      in MyApp.

      in the created MyApp.app i can only find my executable and macdeployqt says
      can not find /usr/lib/libMyAppCore.1.dylib

      When i manualy copy the dylib in the MyApp.app it works, but how can do this Job macdeployqt?

      thx Chris

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      I haven't used the tool, but I think this goes beyond its scope. The idea of the *deployqt tools is to pull in the needed Qt/system dependencies, not your own libraries.

      EDIT:
      Or just listen to @SGaist, who works on mac and don't laugh too hard at my comment ... :)

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by SGaist
        #3

        Hi,

        Did you properly setup the RPATH of your library ? If not then macdeployqt won't be able to find it.

        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
        1
        • C Offline
          C Offline
          ckvsoft
          wrote on last edited by
          #4

          No. I didn't set the Rpath. How can I do this for Mac?
          Must I also set through Rpath for other libs like qrencode.dylib? This macdeployqt will find and copy.
          Thx

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Qt Creator's rpath.pri shows a nice way to handle that.

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

            C 1 Reply Last reply
            1
            • SGaistS SGaist

              Qt Creator's rpath.pri shows a nice way to handle that.

              C Offline
              C Offline
              ckvsoft
              wrote on last edited by
              #6

              @SGaist thx 😉

              1 Reply Last reply
              0
              • C Offline
                C Offline
                ckvsoft
                wrote on last edited by
                #7

                @SGaist sorry do not work

                What must i do after compile?

                My App compile and will found my corelib. But must i copy the lib manualy to the package?
                macdeployqt allway say ERROR no file at "/usr/lib/mycorelib.dylib" i can't copy it to /usr/lib

                When i copy mylib manualy to Contents/MacOS it works. No matter if rpath is set or not.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Which 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
                  • C Offline
                    C Offline
                    ckvsoft
                    wrote on last edited by ckvsoft
                    #9

                    I'm using Qt 5.6

                    i must run
                    install_name_tool -change libMyCore.1.dylib @exectable_path/libMyCore.1.dylib myApp.app/Contents/MacOS/myApp

                    Than the lib was found, but macdeployqt always had the same ERROR. The app is working but why the lib was searching in /usr/lib when i to the install_name_tool.
                    Add QMAKE_LIBS += -Wl,-rpath,@executable_path/libMyCore.1.dylib or anythink else was ignored.

                    I must to this manualy with install_name_tool -change.

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      macdeployqt has improved with the latest versions of Qt so you'll likely have better result running a more recent version of the tool.

                      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
                      • C Offline
                        C Offline
                        ckvsoft
                        wrote on last edited by
                        #11

                        I doit now with install_name_tool -change. No other option will work for me. Thx

                        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