Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to fix path in third-party libs which usage another third-party libs after macdeployqt?
Forum Updated to NodeBB v4.3 + New Features

How to fix path in third-party libs which usage another third-party libs after macdeployqt?

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 5 Posters 3.7k Views 4 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.
  • F Offline
    F Offline
    florent_lightingsoft
    wrote on 6 Apr 2018, 07:56 last edited by
    #10

    Hello
    i have actually same problem with same Library :

    Dyld Error Message:
      Library not loaded: /usr/local/Cellar/nettle/3.3/lib/libnettle.6.dylib
      Referenced from: /private/var/folders/8h/6gwsfzvd0497x5v7dqkf6dg80000gp/T/AppTranslocation/AC4CC981-7245-4236-9929-4EF95D0225B1/d/StoreUpgradeTools.app/Contents/Frameworks/libhogweed.4.dylib
      Reason: image not found
    

    Did you fixe it ?

    S 1 Reply Last reply 6 Apr 2018, 08:03
    0
    • F florent_lightingsoft
      6 Apr 2018, 07:56

      Hello
      i have actually same problem with same Library :

      Dyld Error Message:
        Library not loaded: /usr/local/Cellar/nettle/3.3/lib/libnettle.6.dylib
        Referenced from: /private/var/folders/8h/6gwsfzvd0497x5v7dqkf6dg80000gp/T/AppTranslocation/AC4CC981-7245-4236-9929-4EF95D0225B1/d/StoreUpgradeTools.app/Contents/Frameworks/libhogweed.4.dylib
        Reason: image not found
      

      Did you fixe it ?

      S Offline
      S Offline
      shav
      wrote on 6 Apr 2018, 08:03 last edited by
      #11

      @florent_lightingsoft
      Yes, but you need to do this for every lib which generate this error.

      install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" lib_path_for_update
      install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" app_binnary_path_for_update
      

      If you find a way to use this commands for all lib and sub-libs by script let me know, because for now I use this for every lib manually.

      Mac OS and iOS Developer

      N 1 Reply Last reply 8 Apr 2022, 04:53
      1
      • S shav
        6 Apr 2018, 08:03

        @florent_lightingsoft
        Yes, but you need to do this for every lib which generate this error.

        install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" lib_path_for_update
        install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" app_binnary_path_for_update
        

        If you find a way to use this commands for all lib and sub-libs by script let me know, because for now I use this for every lib manually.

        N Offline
        N Offline
        ngn999
        wrote on 8 Apr 2022, 04:53 last edited by
        #12

        @shav said in How to fix path in third-party libs which usage another third-party libs after macdeployqt?:

        @florent_lightingsoft
        Yes, but you need to do this for every lib which generate this error.

        install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" lib_path_for_update
        install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" app_binnary_path_for_update
        

        If you find a way to use this commands for all lib and sub-libs by script let me know, because for now I use this for every lib manually.

        it's 2022, same problem here. any solution?

        N 1 Reply Last reply 8 Apr 2022, 13:16
        0
        • N ngn999
          8 Apr 2022, 04:53

          @shav said in How to fix path in third-party libs which usage another third-party libs after macdeployqt?:

          @florent_lightingsoft
          Yes, but you need to do this for every lib which generate this error.

          install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" lib_path_for_update
          install_name_tool -change "old_path" "@executable_path/../Frameworks/lib_name" app_binnary_path_for_update
          

          If you find a way to use this commands for all lib and sub-libs by script let me know, because for now I use this for every lib manually.

          it's 2022, same problem here. any solution?

          N Offline
          N Offline
          ngn999
          wrote on 8 Apr 2022, 13:16 last edited by ngn999 4 Aug 2022, 13:17
          #13

          I'm sure it's about this bug:
          https://bugreports.qt.io/browse/QTBUG-56814

          but the fix is not complete, it can't deal with some libraries , such as ffmpeg and nettle.

          I made a bugfix here: https://github.com/ngn999/qttools/commit/5be4d44508c3a8b4d739de30929d9158b84b4e50

          based on 6.2.4.

          S 1 Reply Last reply 8 Apr 2022, 19:20
          1
          • N ngn999
            8 Apr 2022, 13:16

            I'm sure it's about this bug:
            https://bugreports.qt.io/browse/QTBUG-56814

            but the fix is not complete, it can't deal with some libraries , such as ffmpeg and nettle.

            I made a bugfix here: https://github.com/ngn999/qttools/commit/5be4d44508c3a8b4d739de30929d9158b84b4e50

            based on 6.2.4.

            S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 8 Apr 2022, 19:20 last edited by
            #14

            @ngn999 hi and welcome to devnet,

            Would you make a submission to the official repo so it can be integrated for all ? :-)

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

            N 1 Reply Last reply 9 Apr 2022, 01:55
            0
            • S SGaist
              8 Apr 2022, 19:20

              @ngn999 hi and welcome to devnet,

              Would you make a submission to the official repo so it can be integrated for all ? :-)

              N Offline
              N Offline
              ngn999
              wrote on 9 Apr 2022, 01:55 last edited by
              #15

              @SGaist yes, I submit a pull request to 6.2.4 https://github.com/qt/qttools/pull/5

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 9 Apr 2022, 19:09 last edited by
                #16

                GitHub is just a mirror. Here you can find the procedure to get you started. Don't worry about the size of the page, it's just very detailed instructions :-)

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

                N 2 Replies Last reply 10 Apr 2022, 05:10
                0
                • S SGaist
                  9 Apr 2022, 19:09

                  GitHub is just a mirror. Here you can find the procedure to get you started. Don't worry about the size of the page, it's just very detailed instructions :-)

                  N Offline
                  N Offline
                  ngn999
                  wrote on 10 Apr 2022, 05:10 last edited by
                  #17

                  @SGaist OK. I'll look at it.

                  1 Reply Last reply
                  0
                  • S SGaist
                    9 Apr 2022, 19:09

                    GitHub is just a mirror. Here you can find the procedure to get you started. Don't worry about the size of the page, it's just very detailed instructions :-)

                    N Offline
                    N Offline
                    ngn999
                    wrote on 10 Apr 2022, 07:43 last edited by ngn999 4 Oct 2022, 07:44
                    #18

                    @SGaist I have submitted one code review: https://codereview.qt-project.org/c/qt/qtbase/+/405490

                    by the way, the workflow is complex.

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on 10 Apr 2022, 19:13 last edited by
                      #19

                      Thanks !

                      I also found it the first time but it quickly becomes easier.

                      You forgot to add reviewers. Usually the best is to check the persons that reviewed the submissions applied to the file you changed.

                      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