Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Set rpath when building Qt
Forum Updated to NodeBB v4.3 + New Features

Set rpath when building Qt

Scheduled Pinned Locked Moved Solved Mobile and Embedded
3 Posts 2 Posters 870 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.
  • E Offline
    E Offline
    elahav
    wrote on last edited by
    #1

    Hello,

    I followed the instructions for building Qt from source for QNX (https://doc.qt.io/qt-6/building-qt-for-qnx.html). Everything went well, except for the rpath string embedded in the library. In 5.x you could run the configure script with -prefix and -extprefix for the target and host top-level directories, respectively.
    What would be the equivalent when using cmake on 6.x code?

    Thanks,
    --Elad

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      rpath is run time path for app to look for libs. -prefix is the path for installation. They are different. Not sure which one you need.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        elahav
        wrote on last edited by
        #3

        When building Qt itself, the libraries it creates (e.g., libQt6Core.so.6) have their rpath set to the target installation directory.

        Anyway, I believe that the answer is in the generic configuration section for cross-compiling, which is linked at the bottom of the QNX page: https://doc.qt.io/qt-6/configure-linux-device.html#configuring-qt

        According to this document, the cmake equivalent for -extprefix is CMAKE_STAGING_PREFIX, and for -prefix it is CMAKE_INSTALL_PREFIX.

        --Elad

        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