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. Qt source build with -qtlibinfix, and -framework
Forum Update on Monday, May 27th 2025

Qt source build with -qtlibinfix, and -framework

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 880 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.
  • J Offline
    J Offline
    jabernathy
    wrote on 28 Feb 2018, 18:24 last edited by
    #1

    I'm building Qt from source on MacOS using Sierra and High Sierra and I'm running to a problem where projects built with my build of Qt fail to compile.

    The configure command that I'm using contains the -qtlibinfix ABC and -framework options:

    ./configure -prefix /home/Qt/abc -opensource -qtlibinfix ABC -framework ...
    

    The Qt source project builds and installs correctly (via make and make install), but subsequent projects built with the installed qmake binary fail to compile.

    Executing /home/Qt/abc/bin/qmake on a project file is successful, but there is a mismatch between the installed location of the Qt frameworks and the include paths sent to clang.

    The installation paths of the Qt frameworks contain the qtlibinfix (ABC):

    /home/Qt/abc/lib/QtConcurrentABC.framework
    /home/Qt/abc/lib/QtCoreABC.framework
    ...
    

    but the directories that are included with the qmake-generated builds do not:

    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ ... -I/home/Qt/abc/lib/QtWidgets.framework/Headers ...
    

    Is this a bug or am I missing a step between running "make install" and "qmake"?

    This is reproducible on numerous versions of Qt (5.7.0, 5.8.0, 5.10.0).

    Thanks!
    Jason

    Here is a partial listing of the installed qt core lib project include file (mkspecs/modules/qt_lib_core.pri):

    QT.core.VERSION = 5.10.0
    QT.core.name = QtCore
    QT.core.module = QtCoreWRI
    QT.core.libs = $$QT_MODULE_LIB_BASE
    QT.core.includes = $$QT_MODULE_LIB_BASE/QtCore.framework/Headers
    QT.core.frameworks = $$QT_MODULE_LIB_BASE
    QT.core.bins = $$QT_MODULE_BIN_BASE
    QT.core.depends =
    QT.core.uses = libatomic
    QT.core.module_config = v2 lib_bundle
    QT.core.CONFIG = moc resources
    QT.core.DEFINES = QT_CORE_LIB
    
    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 28 Feb 2018, 20:54 last edited by
      #2

      Hi and welcome to devnet,

      Looks like it might be related to QTBUG-35604.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        jabernathy
        wrote on 28 Feb 2018, 22:51 last edited by
        #3

        Thanks! It looks like the behaviour that I'm seeing is due to the bug that you've linked.

        I'll build without frameworks.

        1 Reply Last reply
        0

        1/3

        28 Feb 2018, 18:24

        • Login

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