Skip to content

Installation and Deployment

Your Qt just doesn't want to build? Your compiler can't find the libs? Here's where you find comfort and understanding. And help.
9.7k Topics 51.1k Posts
  • 0 Votes
    6 Posts
    2k Views
    SGaistS
    No, you can use your distribution provided Qt. However it's a good idea to keep in sync with the version you are going to use to cross-compile. From the looks of it, you tried to use your cross-compiled Qt with your desktop compiler. Hence your error.
  • How to check OpenGL version?

    Unsolved
    4
    0 Votes
    4 Posts
    2k Views
    JKSHJ
    @Aronax said in How to check OpenGL version?: Are there any QT functions to do that? I just want to point out, that I am not using OpenGL by my selft programmatically. I just simply use Qt Quick Controls 2. AFAIK, there is no function in Qt to give you the OpenGL version. I've never tried this, but you could play around with QOpenGLFunctions and see if you can deduce the version by calling its functions (maybe some feature is not available in OpenGL <2.0, or maybe some function calls will fail): https://doc.qt.io/qt-5/qopenglfunctions.html#openGLFeatures
  • [solved] Qt 5.2 build (VS 2013 64-bit) generates crashing EXEs

    9
    0 Votes
    9 Posts
    7k Views
    K
    Same crash callstack on Qt 5.5 and Qt 5.6 under VS 2008 and VS 2017. Solution is to use QT_PLUGIN_PATH instead of QT_QPA_PLATFORM_PLUGIN_PATH.
  • Cannot find demos and examples after install

    6
    0 Votes
    6 Posts
    15k Views
    A
    I used the solution that user "texas" suggested 7 years ago - it worked. I'll just add the nitty-gritty details of what I did... I had the same problem on Windows 7. How I solved this: I open QT Creator. I select menu-option [Tools] From there I select [Options...] From there I select the [Kits] option on the left-hand side I select the tab [QT Versions] I click The [Add...] button: to add the QT version that I am using... ... I am presented with a windows-explorer screen to select something... ... I go to the main directory on which QT is installed (in my case: C:\Qt)... ... In the explorer "Search" I enter 'qmake' (without the quotes)... ... There is a single 'qmake.exe' file displayed - I double-click it!... ... I press [Apply], then [OK]. Walla - it works! I now have examples!
  • Building Qt Libraries ( optimization breaks circle drawing )

    Unsolved
    2
    0 Votes
    2 Posts
    255 Views
    A
    Basically, my question is not "why it's happened" by hoц to set option -O1 in one Qt module ( in QtGUI ) legally. Now i have to hack way I need to build all qtbase-everywhere-src-5.11.2 library as is, than correct QtGui/makefile.Release with replacing all -O2 to -O1 Then for QtGui make clean make make install It's too long way to success :) Any ideas ???
  • Static Build and Qml

    Unsolved qml static library circulargauge
    3
    0 Votes
    3 Posts
    1k Views
    H
    I have included the import statement. I have my project being built two ways. I have it setup as using shared libs while debugging so I have a kit that is set up for that using the default qt install. I then have a static kit that I use for release. When I run the debug it loads fine, I get no errors. When I switch to the release kit I then get the error that you posted about an unknown component. Here is my qml file import QtQuick 2.12 import QtQuick.Window 2.12 import QtQuick.Extras 1.4 import QtQuick.Controls.Styles 1.4 Window { visible: true width: 640 height: 480 title: qsTr("Hello World") CircularGauge { id: gauge width: 400 height: 400 antialiasing: true tickmarksVisible: true anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter value: 0 minimumValue: -100 maximumValue: 100 style: CircularGaugeStyle { minorTickmarkCount: 0 needle: Rectangle { y: outerRadius * 0.15 implicitWidth: outerRadius * 0.03 implicitHeight: outerRadius * 0.9 antialiasing: true color: Qt.rgba(0.66, 0.3, 0, 1) } } } } I just used the basic Qt Quick Application - Empty template for the project and only added CONFIG += static to the .pro file For some reason it's not finding the Controls.Styles using the static build. If I mouse over the import statement it reads 'Library at C:/Qt/Static/5.12.3/qml/QtQuick/Controls/Styles'.
  • Getting SKD path Error, while given path of in QT creator on Macbookpro

    Unsolved
    2
    0 Votes
    2 Posts
    278 Views
    SGaistS
    Hi and welcome to devnet, You need to provide more information: What version of Qt did you install ? What version of the NDK ? What version of the SDK ? How did you install both of them ?
  • How to integrate Qt help to Microsoft Help Viewer 2.2?

    Unsolved
    2
    0 Votes
    2 Posts
    638 Views
    SprezzaturaS
    Are you referring to Microsoft ".CHM" help files? They are in a different format than the Qt ".QCH" files, and are not compatible.
  • CAN BUS Application static build error with MinGW 32bit & Qt 5.10.0

    Solved
    5
    0 Votes
    5 Posts
    630 Views
    aha_1980A
    @Venkatesan-Soundirarajan can you try to rename the function resolveSymbols in these two plugins, so that the names become unique? That is my only idea for now. Regards
  • how to build opencv4.x on Qt 5.12

    Unsolved
    1
    0 Votes
    1 Posts
    365 Views
    No one has replied
  • Usage of corrected build of GDB in Qt Android

    Unsolved
    5
    0 Votes
    5 Posts
    496 Views
    T
    I changed NDK to r10e, and I read this guide but the problem is still appearing :( Could anyone explain me how to use fixed GDB build from Qt downloads?
  • How to create shared *.so files with out symbol links

    Unsolved
    2
    0 Votes
    2 Posts
    203 Views
    SGaistS
    Hi, That's not how library handling usually works on Linux. What is your use case ?
  • how to compile mysql plugin for Qt5.7 in centos 7.5

    Solved
    7
    0 Votes
    7 Posts
    2k Views
    R
    i installed all these dependent rpms :- 1:libgcc-4.8.5-36.el7 ################################# [ 1%] 2:libverto-devel-0.2.5-4.el7 ################################# [ 2%] 3:pcre-devel-8.32-17.el7 ################################# [ 2%] 4:nss-softokn-freebl-3.34.0-2.el7 ################################# [ 3%] 5:glibc-common-2.17-260.el7 ################################# [ 4%] 6:glibc-2.17-260.el7 ################################# [ 5%] 7:nspr-4.17.0-1.el7 ################################# [ 5%] 8:nss-util-3.34.0-2.el7 ################################# [ 6%] 9:libsepol-2.5-10.el7 ################################# [ 7%] 10:libstdc++-4.8.5-36.el7 ################################# [ 8%] 11:pcre-8.32-17.el7 ################################# [ 9%] 12:libselinux-2.5-14.1.el7 ################################# [ 9%] 13:libcom_err-1.42.9-13.el7 ################################# [ 10%] 14:zlib-1.2.7-18.el7 ################################# [ 11%] 15:nss-pem-1.0.3-4.el7 ################################# [ 12%] 16:nss-3.34.0-4.el7 ################################# [ 13%] 17:nspr-devel-4.17.0-1.el7 ################################# [ 13%] 18:libitm-4.8.5-28.el7 ################################# [ 14%] 19:nss-util-devel-3.34.0-2.el7 ################################# [ 15%] 20:opencryptoki-libs-3.7.0-1.el7 ################################# [ 16%] 21:libcom_err-devel-1.42.9-13.el7 ################################# [ 16%] 22:nss-tools-3.34.0-4.el7 ################################# [ 17%] 23:glib2-2.56.1-2.el7 ################################# [ 18%] 24:zlib-devel-1.2.7-18.el7 ################################# [ 19%] 25:nspr-4.19.0-1.el7_5 ################################# [ 20%] 26:sqlite-3.7.17-8.el7 ################################# [ 20%] 27:nss-util-3.36.0-1.el7_5 ################################# [ 21%] 28:libsepol-devel-2.5-10.el7 ################################# [ 22%] 29:libselinux-devel-2.5-14.1.el7 ################################# [ 23%] 30:nss-softokn-freebl-3.34.0-2.el7 ################################# [ 23%] 31:nss-softokn-freebl-devel-3.34.0-2################################# [ 24%] 32:bzlib-1:1.0.6-alt6 ################################# [ 25%] 33:daxctl-libs-62-1.el7 ################################# [ 26%] 34:lz4-1.7.5-2.el7 ################################# [ 27%] 35:perl-Newt-1.08-36.el7 ################################# [ 27%] 36:perl-WWW-Curl-4.15-13.el7 ################################# [ 28%] 37:nss-softokn-freebl-devel-3.34.0-2################################# [ 29%] 38:nspr-4.17.0-1.el7 ################################# [ 30%] 39:nss-util-3.34.0-2.el7 ################################# [ 30%] 40:keyutils-libs-1.5.8-3.el7 ################################# [ 31%] 41:krb5-libs-1.15.1-34.el7 ################################# [ 32%] 42:openssl-libs-1:1.0.2k-12.el7 ################################# [ 33%] 43:cyrus-sasl-lib-2.1.26-23.el7 ################################# [ 34%] 44:openldap-2.4.44-13.el7 ################################# [ 34%] 45:libitm-4.8.5-28.el7 ################################# [ 35%] 46:openssl-libs-1:1.0.2k-12.el7 ################################# [ 36%] 47:keyutils-libs-devel-1.5.8-3.el7 ################################# [ 37%] 48:krb5-devel-1.15.1-18.el7 ################################# [ 38%] 49:opencryptoki-libs-3.7.0-1.el7 ################################# [ 38%] 50:ncurses-libs-5.9-14.20130511.el7_################################# [ 39%] 51:libdb-5.3.21-24.el7 ################################# [ 40%] 52:cyrus-sasl-lib-2.1.26-23.el7 ################################# [ 41%] 53:libuuid-2.23.2-59.el7 ################################# [ 41%] 54:libitm-devel-4.8.5-28.el7 ################################# [ 42%] 55:opencryptoki-icsftok-3.7.0-1.el7 ################################# [ 43%] 56:libkadm5-1.15.1-34.el7 ################################# [ 44%] 57:openssl-1:1.0.2k-12.el7 ################################# [ 45%] 58:libblkid-2.23.2-59.el7 ################################# [ 45%] 59:readline-6.2-10.el7 ################################# [ 46%] 60:sqlite-3.7.17-8.el7 ################################# [ 47%] 61:nss-softokn-3.34.0-2.el7 ################################# [ 48%] 62:nss-softokn-devel-3.34.0-2.el7 ################################# [ 48%] 63:nss-pem-1.0.3-4.el7 ################################# [ 49%] 64:nss-3.34.0-4.el7 ################################# [ 50%] 65:openldap-2.4.44-13.el7 ################################# [ 51%] 66:libgpg-error-1.12-3.el7 ################################# [ 52%] 67:libgcrypt-1.5.3-14.el7 ################################# [ 52%] 68:xz-libs-5.2.2-1.el7 ################################# [ 53%] 69:cyrus-sasl-2.1.26-23.el7 ################################# [ 54%] 70:cyrus-sasl-devel-2.1.26-23.el7 ################################# [ 55%] 71:openldap-servers-2.4.44-13.el7 ################################# [ 55%] 72:krb5-libs-1.15.1-37.el7_6 ################################# [ 56%] 73:openssl-libs-1:1.0.2k-16.el7 ################################# [ 57%] 74:sslscan-1.10.2-3.el7 ################################# [ 58%] 75:krb5-devel-1.15.1-18.el7 ################################# [ 59%] 76:openssl-devel-1:1.0.2k-12.el7 ################################# [ 59%] 77:openssl-devel-1:1.0.2k-12.el7 ################################# [ 60%] 78:cracklib-2.9.0-11.el7 ################################# [ 61%] 79:elfutils-libelf-0.172-2.el7 ################################# [ 62%] 80:elfutils-libs-0.172-2.el7 ################################# [ 63%] 81:libattr-2.4.46-13.el7 ################################# [ 63%] 82:libcap-2.22-9.el7 ################################# [ 64%] 83:libcap-ng-0.7.5-4.el7 ################################# [ 65%] 84:audit-libs-2.8.4-4.el7 ################################# [ 66%] 85:pam-1.1.8-22.el7 ################################# [ 66%] 86:cyrus-sasl-2.1.26-23.el7 ################################# [ 67%] 87:cyrus-sasl-devel-2.1.26-23.el7 ################################# [ 68%] 88:lz4-1.7.5-2.el7 ################################# [ 69%] 89:openldap-devel-2.4.44-13.el7 ################################# [ 70%] 90:openssl-static-1:1.0.2k-12.el7 ################################# [ 70%] 91:openssl-devel-1:1.0.2k-16.el7 ################################# [ 71%] 92:openssl-static-1:1.0.2k-12.el7 ################################# [ 72%] 93:tlssled-1.3-4.el7 ################################# [ 73%] 94:libkadm5-1.15.1-37.el7_6 ################################# [ 73%] 95:openldap-servers-sql-2.4.44-13.el################################# [ 74%] 96:openldap-devel-2.4.44-13.el7 ################################# [ 75%] 97:cryptsetup-libs-2.0.3-3.el7 ################################# [ 76%] 98:nss-devel-3.34.0-4.el7 ################################# [ 77%] 99:nss-devel-3.34.0-4.el7 ################################# [ 77%] 100:sqlite-devel-3.7.17-8.el7 ################################# [ 78%] 101:openssl-perl-1:1.0.2k-12.el7 ################################# [ 79%] 102:krb5-devel-1.15.1-34.el7 ################################# [ 80%] 103:opencryptoki-3.7.0-1.el7 ################################# [ 80%] 104:libitm-static-4.8.5-28.el7 ################################# [ 81%] 105:libitm-static-4.8.5-28.el7 ################################# [ 82%] 106:opencryptoki-devel-3.7.0-1.el7 ################################# [ 83%] 107:openldap-clients-2.4.44-13.el7 ################################# [ 84%] 108:crypto-utils-2.4.1-42.el7 ################################# [ 84%] 109:lz4-devel-1.7.5-2.el7 ################################# [ 85%] 110:ndctl-libs-62-1.el7 ################################# [ 86%] 111:nss-softokn-devel-3.34.0-2.el7 ################################# [ 87%] 112:sqlite-devel-3.7.17-8.el7 ################################# [ 88%] 113:gamin-0.1.10-16.el7 ################################# [ 88%] 114:glib2-devel-2.56.1-2.el7 ################################# [ 89%] 115:opencryptoki-devel-3.7.0-1.el7 ################################# [ 90%] 116:libitm-devel-4.8.5-28.el7 ################################# [ 91%] 117:nss-util-devel-3.34.0-2.el7 ################################# [ 91%] 118:nspr-devel-4.17.0-1.el7 ################################# [ 92%] 119:systemd-libs-219-62.el7 ################################# [ 93%] 120:device-mapper-7:1.02.149-8.el7 ################################# [ 94%] 121:device-mapper-libs-7:1.02.149-8.e################################# [ 95%] 122:parted-3.1-29.el7 ################################# [ 95%] 123:opencryptoki-icsftok-3.7.0-1.el7 ################################# [ 96%] 124:libmount-2.23.2-59.el7 ################################# [ 97%] 125:opencryptoki-3.7.0-1.el7 ################################# [ 98%] 126:nss-softokn-freebl-3.36.0-5.el7_5################################# [ 98%] 127:libffi-3.0.13-18.el7 ################################# [ 99%] 128:libverto-0.2.5-4.el7 ################################# [100%] and after running qmake and make like this:- [root@centos75client mysql]# /opt/Qt/5.7/gcc_64/bin/qmake "INCLUDEPATH+=/usr/include" "LIBS+=-L/usr/lib64/mysql -lmysqlclient_r -lrt -ldl -lssl -lcrypto" mysql.pro [root@centos75client mysql]# make rm -f libqsqlmysql.so g++ -Wl,--no-undefined -Wl,-O1 -Wl,--enable-new-dtags -Wl,-z,origin -Wl,-rpath,\$ORIGIN/../../lib -Wl,-rpath,\$ORIGIN/../../lib -shared -o libqsqlmysql.so .obj/main.o .obj/qsql_mysql.o .obj/moc_qsql_mysql_p.o -L/usr/lib64/mysql -lrt -ldl -lmysqlclient_r -lz -lcrypt -lnsl -lm -lssl -lcrypto -L/opt/Qt/5.7/gcc_64/lib -lQt5Sql -lQt5Core -lpthread mv -f libqsqlmysql.so ../../../../plugins/sqldrivers/ [root@centos75client mysql]# make install install -m 755 -p ../../../../plugins/sqldrivers/libqsqlmysql.so /opt/Qt/5.7/gcc_64/plugins/sqldrivers/libqsqlmysql.so strip --strip-unneeded /opt/Qt/5.7/gcc_64/plugins/sqldrivers/libqsqlmysql.so install -m 644 -p /opt/Qt/5.7/Src/qtbase/lib/cmake/Qt5Sql/Qt5Sql_QMYSQLDriverPlugin.cmake /opt/Qt/5.7/gcc_64/lib/cmake/Qt5Sql/ and mysql plugin installed thanks alot
  • Qt 5.9.8 offline-installer problem

    Solved
    3
    0 Votes
    3 Posts
    468 Views
    frodebjF
    Hi, I checked the MD5 sum for the downloaded offline installer. It was corrupt. Downloaded new file and it installed without problems. Problem solved.
  • Who is using Qt5?

    Unsolved
    7
    0 Votes
    7 Posts
    1k Views
    jsulmJ
    @BKBK What is the policy of your government/cyber security group regarding usage of open source software? "Being open source does not guarantee that someone has closely examined all the code for malware" - correct, but without source code there is guarantee that nobody outside the company writing the code examined the source code :-) From my point of view organisations concerned about security should either use open source (to be able to check source code) or have special agreements with companies to be able to check source code from closed source software.
  • 0 Votes
    2 Posts
    343 Views
    R
    I found in sources of QtIFW class EnvironmentVariableOperation, that implement functions "performOperation" and "UndoOperation" for installation and uninstallation steps, but still not clear why errors appear
  • Is it possible to build QtMqtt on Windows 10 for Android ARM v7?

    Unsolved
    4
    0 Votes
    4 Posts
    727 Views
    SGaistS
    Hi and welcome to devnet, One maybe simpler way to do that would be to open the module in Qt Creator and build it using the Android Kit.
  • Deploy qt desktop app 'Driver not loaded'

    Solved
    24
    0 Votes
    24 Posts
    4k Views
    A
    Sure. It was a mistake using static QSqlDatabase object, because only fail at the deployment. Thanks guys.
  • publish app microsoft store

    Unsolved microsoft uwp desktop bridge
    2
    0 Votes
    2 Posts
    548 Views
    jsulmJ
    @Guigiidre If you want to publish for WinRT why don't you want to rebuild it for WinRT? That would be the clean solution and not some hacks with Desktop bridge.
  • Qt Creator and Maintenance tool does not react to user input

    Unsolved
    2
    0 Votes
    2 Posts
    305 Views
    SGaistS
    Hi, Any chances that you had a Windows update in between ? A graphic card driver update ?