Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946
Qt5 Installation Problem.
Can Qt5 be installed on CentOS 5 and CentOS 6?
As long as it has OpenGL, ICU, and a working ISO C++98 compiler, it should be possible.
Thanks for the reply.
I tried to compile Qt5 from source on CentOS-5.8 but it failed with errors listed below,
@opengl/qopengl.cpp: In constructor 'QOpenGLExtensionMatcher::QOpenGLExtensionMatcher()':
opengl/qopengl.cpp:77: error: 'GL_NUM_EXTENSIONS' was not declared in this scope
make: *** [.obj/debug-shared/qopengl.o] Error 1
make: Leaving directory
/setups/qt-everywhere-opensource-src-5.0.0/qtbase/src/gui' make: *** [sub-gui-make_first] Error 2 make: Leaving directory/setups/qt-everywhere-opensource-src-5.0.0/qtbase/src'
make: *** [sub-src-make_first] Error 2
make: Leaving directory `/setups/qt-everywhere-opensource-src-5.0.0/qtbase'
make: *** [module-qtbase-make_first] Error 2
When I tried to install Qt5 on CentOS-6.3 with the installer, but it too failed with the following error,
@./qt-linux-opensource-5.0.0-x86-offline.run: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./qt-linux-opensource-5.0.0-x86-offline.run)@
Can you help me figure out this problem.
Take a look at dependencies and instructions in this "guide":http://qt-project.org/wiki/Building_Qt_5_from_Git (esp. mesa packages should be of interest to you). I'm not using CentOS, so it's hard for me to be more specific. I've compiled Qt5 on Kubuntu numerous times with both GCC and clang, if that is any help.
Actually if you manage to get it working, you can modify the wiki page and include your findings.
I have managed to install Qt5 on CentOS 6.3 using the installer.
But on CentOS 5.8 it still fails. I have also installed all the mesa packages that were available for CentOS, then too the error is not going. The package I cannot found for CentOS were xcb-util-wm, xcb-util-wm-devel, xcb-util-image, xcb-util-image-devel, xcb-util-keysyms, xcb-util-keysyms-devel.
Now that is not good. XCB is needed the official QPA plugin (Qt Platform Plugin) for X11. There other alternative is Wayland, or possibly linuxFB, but I have no experience in either of them, sorry.