Repository navigation
pkg.qt
- Official
- Example
- iOS examples
- Android example
- Available since v0.12.0
Qt is split into components. Each component installs its corresponding Qt5*Config.cmake and libraries.
Examples:
hunter_add_package(Qt)
# same as: hunter_add_package(Qt COMPONENTS qtbase)
find_package(Qt5Concurrent REQUIRED)
find_package(Qt5Core REQUIRED)
find_package(Qt5Gui REQUIRED)
find_package(Qt5Network REQUIRED)
find_package(Qt5OpenGL REQUIRED)
find_package(Qt5OpenGLExtensions REQUIRED)
find_package(Qt5PrintSupport REQUIRED)
find_package(Qt5Sql REQUIRED)
find_package(Qt5Test REQUIRED)
find_package(Qt5Widgets REQUIRED)
find_package(Qt5Xml REQUIRED)
find_package(Qt5DBus REQUIRED)hunter_add_package(Qt COMPONENTS qtsvg)
find_package(Qt5Svg REQUIRED)hunter_add_package(Qt COMPONENTS qtxmlpatterns)
find_package(Qt5XmlPatterns REQUIRED)hunter_add_package(Qt COMPONENTS qtlocation)
find_package(Qt5Positioning REQUIRED)
find_package(Qt5Location REQUIRED)hunter_add_package(Qt COMPONENTS qtdeclarative)
find_package(Qt5Qml REQUIRED)
find_package(Qt5Quick REQUIRED)
find_package(Qt5QuickTest REQUIRED)
find_package(Qt5QuickWidgets REQUIRED)hunter_add_package(Qt COMPONENTS qtmultimedia)
find_package(Qt5Multimedia REQUIRED)
find_package(Qt5MultimediaWidgets REQUIRED)hunter_add_package(Qt COMPONENTS qtsensors)
find_package(Qt5Sensors REQUIRED)hunter_add_package(Qt COMPONENTS qtwebsockets)
find_package(Qt5WebSockets REQUIRED)hunter_add_package(Qt COMPONENTS qtwebchannel)
find_package(Qt5WebChannel REQUIRED)hunter_add_package(Qt COMPONENTS qttools)
find_package(Qt5Designer REQUIRED)
find_package(Qt5Help REQUIRED)
find_package(Qt5LinguistTools REQUIRED)
find_package(Qt5UiPlugin REQUIRED)
find_package(Qt5UiTools REQUIRED)hunter_add_package(Qt COMPONENTS qtscript)
find_package(Qt5Script REQUIRED)
find_package(Qt5ScriptTools REQUIRED)hunter_add_package(Qt COMPONENTS qtquick1)
find_package(Qt5Declarative REQUIRED)hunter_add_package(Qt COMPONENTS qtimageformats)
find_package(Qt5Gui) # load plugins
# targets available:
# * Qt5::QDDSPlugin
# * Qt5::QICNSPlugin
# * Qt5::QJp2Plugin
# * Qt5::QMngPlugin
# * Qt5::QTgaPlugin
# * Qt5::QTiffPlugin
# * Qt5::QWbmpPlugin
# * Qt5::QWebpPluginhunter_add_package(Qt COMPONENTS qtquickcontrols)
# no *.cmake modules installed-
Conflicts with system Qt: bug with workaround
-
iOS: you must use
qtmninstead ofmain(see SO):
#include <QtGlobal> // Q_OS_IOS
#if defined(Q_OS_IOS)
extern "C" int qtmn(int argc, char** argv) {
#else
int main(int argc, char **argv) {
#endifyou will see next error without this fix applied:
Error: You are creating QApplication before calling UIApplicationMain.
If you are writing a native iOS application, and only want to use Qt for
parts of the application, a good place to create QApplication is from within
'applicationDidFinishLaunching' inside your UIApplication delegate.
-
QtQuick2Pluginconflict.
Both plugins/qmltooling/libqmldbg_qtquick2.a and qml/QtQuick.2/libqtquick2plugin.a implement this plugin:
[Install]> nm -gU plugins/qmltooling/libqmldbg_qtquick2.a | grep static_plugin
00000000000000b0 T __Z31qt_static_plugin_QtQuick2Pluginv
[Install]> nm -gU qml/QtQuick.2/libqtquick2plugin.a | grep static_plugin
0000000000000080 T __Z31qt_static_plugin_QtQuick2Pluginv
Linking of libqmldbg_qtquick2.a may lead to the next runtime error:
module "QtQuick" plugin "qtquick2plugin" not found
if you see this error try to remove usage of target Qt5::QtQuick2Plugin and variable Qt5Qml_PLUGINS.
- Static QML plugins loading issue and workaround: https://bugreports.qt.io/browse/QTBUG-35754
- iOS with
armv7sarchitecture is broken: https://bugreports.qt.io/browse/QTBUG-48805
-
Default version of Xcode should not be set to
7.0for Qt5.5.0. See bug #47383. -
Hunter install extra module Qt5Widgets_HunterPlugin to apply workarounds for bugs: 47349 and 47336.
-
Simulator's libraries not found by
find_package: 47314 -
Workaround for bug #47453
- Set
QT_DEBUG_PLUGINS=1environment variable to obtain some diagnostic info: http://doc.qt.io/qt-5.5/deployment-plugins.html
Feel free to open new issue if you want to ask any questions.
- HOME
- Packages
- Android-Apk
- Android-Modules
- Android-SDK
- ArrayFire
- Assimp
- Async++
- Avahi
- BZip2
- Boost
- Boost.compute
- Boost.process
- CLAPACK
- Comet
- CppNetlib.URI
- CsvParserCPlusPlus
- Eigen
- Expat
- GPUImage
- GSL
- GTest
- GMock
- Igloo
- IntSizeof
- Jpeg
- JsonSpirit
- LLVM (Clang)
- Leathers
- Libssh2
- Lua
- MySQL-client
- nlohmann::json
- OpenCV
- OpenSSL
- PNG
- Poco C++
- PostgreSQL
- Protobuf
- Qt
- Qt-Android-CMake
- QtQmlManager
- RapidJSON
- Sugar
- TIFF
- Washer
- WTL
- ZeroMQ
- ZMQPP
- ZLIB
- rabbitmq-c
- sparsehash
- ccv
- cereal
- convertutf
- crashpad
- cvmatio
- dest
- dlib
- eos
- flatbuffers
- fmt
- freetype
- glm
- glog
- half
- hdf5
- ios_sim
- irrXML
- libyuv
- log4cplus
- minizip
- odb-pgsql
- odb-mysql
- ogles_gpgpu
- openddlparser
- poly2tri
- polyclipping
- spdlog
- szip
- thread-pool-cpp
- tinydir
- websocketpp
- msgpack
- wxWidgets
- xgboost
Don't see packages you need? Feel free to leave a package request.