Qt Creator doesn't recognize the Qt "installation" directory.
-
I just built Qt 5.15 and Qt Creator (on Mac OS). On first launch, Qt Creator prompts you to "Choose Qt installation."
By default, Qt installs to /usr/local/Qt-(version). But neither this nor any subdirectory appears to be recognized as an installation directory by this dialog. What should I point it to?
qmake -query returns the following, none of which appears to be acceptable as the "installation" directory. Nor does the directory where qmake resides.
QT_SYSROOT:
QT_INSTALL_PREFIX:/usr/local/Qt-5.15.0
QT_INSTALL_ARCHDATA:/usr/local/Qt-5.15.0
QT_INSTALL_DATA:/usr/local/Qt-5.15.0
QT_INSTALL_DOCS:/usr/local/Qt-5.15.0/doc
QT_INSTALL_HEADERS:/usr/local/Qt-5.15.0/include
QT_INSTALL_LIBS:/usr/local/Qt-5.15.0/lib
QT_INSTALL_LIBEXECS:/usr/local/Qt-5.15.0/libexec
QT_INSTALL_BINS:/usr/local/Qt-5.15.0/bin
QT_INSTALL_TESTS:/usr/local/Qt-5.15.0/tests
QT_INSTALL_PLUGINS:/usr/local/Qt-5.15.0/plugins
QT_INSTALL_IMPORTS:/usr/local/Qt-5.15.0/imports
QT_INSTALL_QML:/usr/local/Qt-5.15.0/qml
QT_INSTALL_TRANSLATIONS:/usr/local/Qt-5.15.0/translations
QT_INSTALL_CONFIGURATION:/Library/Preferences/Qt
QT_INSTALL_EXAMPLES:/usr/local/Qt-5.15.0/examples
QT_INSTALL_DEMOS:/usr/local/Qt-5.15.0/examples
QT_HOST_PREFIX:/usr/local/Qt-5.15.0
QT_HOST_DATA:/usr/local/Qt-5.15.0
QT_HOST_BINS:/usr/local/Qt-5.15.0/bin
QT_HOST_LIBS:/usr/local/Qt-5.15.0/lib
QMAKE_SPEC:macx-clang
QMAKE_XSPEC:macx-clang
QMAKE_VERSION:3.1
QT_VERSION:5.15.0 -
@Stokestack Did you add your custom built Qt in QtCreator and did you create a Kit with this Qt version?
-
@jsulm Thanks...
No, that's what I thought this dialog was for. I actually did read documentation before posting, but haven't come across anything about "creating a kit."
What do you do to add a custom build in Qt Creator and create a kit?
-
@Stokestack said in Qt Creator doesn't recognize the Qt "installation" directory.:
that's what I thought this dialog was for
No, this is to select an existing Kit for your project.
Go to "Tools/Options.../Kits". Then in that dialog select "Qt Versions" tab and add your Qt there (you need to select qmake from that Qt build). Then, in same dialog, go to Kits and add a new one where you select Qt you added just before.Documentation: https://doc.qt.io/qtcreator/creator-configuring.html