Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Qt6] How to set the result of QLibraryInfo::path(QLibraryInfo::*) in configure time?
QtWS25 Last Chance

[Qt6] How to set the result of QLibraryInfo::path(QLibraryInfo::*) in configure time?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
qt6 macos
1 Posts 1 Posters 244 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.
  • P Offline
    P Offline
    Paper
    wrote on last edited by
    #1

    Hello,
    I'm trying to build Qt in submodules under macOS with the help of homebrew. When I built qttools and qttranslations, I found the the result of QLibraryInfo::path(QLibraryInfo::TranslationsPath) in qttools is /usr/local/opt/qtbase/share/qt/translations, and qttools, qttranslations are built separately.

    Ignoring the dependencies, I configure qtbase use these cmake options:
    -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/qtbase/6.0.0
    -DINSTALL_ARCHDATADIR=share/qt
    -DINSTALL_DATADIR=share/qt
    -DINSTALL_MKSPECSDIR=share/qt/mkspecs
    -DINSTALL_PLUGINSDIR=share/qt/plugins
    -DINSTALL_DESCRIPTIONSDIR=share/qt/modules
    -DINSTALL_QMLDIR=share/qt/qml
    -DINSTALL_EXAMPLESDIR=share/qt/examples
    after brew link the translations folder is linked to /usr/local/share/qt/translations
    So is there any way to set QLibraryInfo::PrefixPath to /usr/local , not /usr/local/Cellar/qtbase/6.0.0 or /usr/local/opt/qtbase , and keep the CMAKE_INSTALL_PREFIX?(so that homebrew can manage the share folder)

    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