Qt World Summit: Register Today!

Installation Issues on RHEL

  • I downloaded qtbase-5.11.zip directly from github and I'm trying to install on Red Hat Enterprise Linux using the instructions on building from source: http://doc.qt.io/qt-5/linux-building.html I was able to get past some initial troubles with the configure script by running the syncqt.pl script in the bin folder with "--version 5", but now I'm getting the following error:

    bash-4.2$ ./configure 
    Creating qmake...
    .In file included from /home/abouchard/workspace/ros_deps/qtbase-5.11/src/corelib/codecs/qtextcodec.cpp:42:0:
    /home/abouchard/workspace/ros_deps/qtbase-5.11/src/corelib/codecs/qtextcodec_p.h:54:38: fatal error: QtCore/private/qglobal_p.h: No such file or directory
     #include <QtCore/private/qglobal_p.h>
    compilation terminated.
    gmake: *** [qtextcodec.o] Error 1

    I googled the error, but the only thing that I'm finding are people having issues compiling projects, not doing installations, so the fixes seem to assume a successful installation. Has anyone seen this before? The file that it's looking for seems to have already been installed in /usr/include/qt5/QtCore/5.9.2/QtCore/private/, but I checked and /usr/include is already in my $PATH.

  • Moderators

    Use the official git repos or archives: https://download.qt.io/official_releases/qt/5.11/5.11.1/single/ There is no need to run syncqt.pl on them, just configure and then make / make install.

    However, there is no need to go through all the trouble of compiling yourself. Just use the Qt installer https://www.qt.io/download-qt-installer

Log in to reply