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. [solved]QT 5.2.1 on Mavericks 10.9.2, QT uses invalid path for dynamic libraries
Forum Updated to NodeBB v4.3 + New Features

[solved]QT 5.2.1 on Mavericks 10.9.2, QT uses invalid path for dynamic libraries

Scheduled Pinned Locked Moved General and Desktop
6 Posts 2 Posters 1.8k 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.
  • M Offline
    M Offline
    MadFisi
    wrote on last edited by
    #1

    Hi,

    i installed Qt 5.2.1 today and tried to compile and link our old projects. Now i have a little Problem.

    Qt inserts invalid Links to the Qt Framework into dylibs.

    I have a library, compiled as dylib which does a lot of calculations. When i compile and link it all looks fine. But as soon as i try to use it in any gui Project, the uic tool fails with :

    dyld: Library not loaded: /work/build/PADDING/lib/QtCore.framework/Versions/5/QtCore

    I used MacDependency to check my dylib. There i see, that the library gets exactly this path

    /work/build/PADDING/lib/QtCore.framework/Versions/5/QtCore

    for the Qt Core framework.

    Any Idea what could cause this problem ? I already found a few posts about that, but none of them specified a solution for the problem. The only thing i see at the moment is to change the path inside the library using install_name_tool, but that is really annoying, especially while development process.

    Rergards
    Tom

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

      Hi and welcome to devnet,

      Looks like the installer didn't finished correctly, do you have any error reported like failed call to install_name_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
      • M Offline
        M Offline
        MadFisi
        wrote on last edited by
        #3

        Hi,

        thank you for your reply.

        No, the installer finished without any errors. I also can compile static libraries without any problem, just all dylibs get this strange paths added.
        I will try a reinstall, maybe Xcode had not completely finished the install process when i installed Qt.

        Regards
        Tom

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MadFisi
          wrote on last edited by
          #4

          Hi,

          ok, got it. I did not launch Xcode before i installed Qt. Unfortunately Xcode 5 seems to extract command line tools on first launch and finishes its installation on that step.

          I reinstalled QT and it works now.

          Thank you for the hint.

          Regards
          Tom

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

            You're welcome !

            Since you got Qt working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)

            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
            • M Offline
              M Offline
              MadFisi
              wrote on last edited by
              #6

              Ok, done.

              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