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. Replicate "add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH" option with CMake on terminal
Forum Updated to NodeBB v4.3 + New Features

Replicate "add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH" option with CMake on terminal

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 255 Views
  • 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.
  • I Offline
    I Offline
    IliasB
    wrote on 10 Feb 2025, 15:13 last edited by
    #1

    Hi!

    I'm building a complex project with many dependencies on MacOS.

    If I check the option:

    "add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH"

    In QT Creator, my application runs.

    But, if I turn the option off, I get the same error as if I just build and run without Qt Creator, CMake alone on the terminal - (no special options, just cmake --build).

    How can I replicate what Qt Creator does with these two env variables, without using QT creator?

    Or in other words, what path exactly is this "build library search path"?

    Thank you!

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 10 Feb 2025, 16:14 last edited by
      #2

      Since these are environment variables, simply set them on the command line.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      I 1 Reply Last reply 11 Feb 2025, 08:05
      1
      • C Christian Ehrlicher
        10 Feb 2025, 16:14

        Since these are environment variables, simply set them on the command line.

        I Offline
        I Offline
        IliasB
        wrote on 11 Feb 2025, 08:05 last edited by
        #3

        @Christian-Ehrlicher I could, but they are massive, and generated traversing the deps folder recursively as I've realised, it's not "just" the root.

        Anyway, I'll look into fixing the underlying issue which likely is some rpaths that need fixing - thanks!

        1 Reply Last reply
        0

        2/3

        10 Feb 2025, 16:14

        • Login

        • Login or register to search.
        2 out of 3
        • First post
          2/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved