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. Getting dyld: libaray not loaded on a newly built app and associated lib.
Qt 6.11 is out! See what's new in the release blog

Getting dyld: libaray not loaded on a newly built app and associated lib.

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

    Hi Folks;
    I am working on porting an app built on windows with VS2010 to Mac with Qt Creator. I am trying to get our base library to build correctly, to place the output libraries where i want them and to be able to access some of the functionality from a test app i have created.
    So far the library seems to build fine but it places the output files in the library project directory instead of the common build folders as listed below:
    Release:DLLDESTDIR = ../../../../build/bin/release
    Release:DESTDIR = ../../../../build/lib/release
    any idea why this would not work?

    That being said in the test project i have pointed to where the files are currently being generated. Everything compiles fine but when i go to run i get the error: "dyld: libaray not loaded: " libXXXXXX.1.dylib.
    I have libXXXXXX.dylib added under libs in the test project and i see the following files where built during compilation.
    libXXXXXX.1.0.0.dylib
    libXXXXXX.1.0.dylib -->seems to be alias or shortcut
    libXXXXXX.1.dylib -->seems to be alias or shortcut
    libXXXXXX.dylib -->seems to be alias or shortcut

    what could be wrong?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You need to add the path to the dylib files to DYLD_LIBRARAY_PATH for the executabel to find them. Maybe the macdeployqt tool could be of help too.

      http://www.catb.org/~esr/faqs/smart-questions.html

      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