Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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



  • 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


  • Lifetime Qt Champion

    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 ?



  • 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



  • 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


  • Lifetime Qt Champion

    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 :)



  • Ok, done.


Log in to reply