With assistance from the support group at Digia, I was able to solve this issue.
What was missing was OpenGL support.
For the sake of posterity, here is the procedure I followed to successfully install Qt 5.3.1 and Qt Creator 3.2.1 on CentOS 6.4 64-bit with MySQL support:
Please note: This entire process can take a couple of days to complete:
1. Install CentOS 6.4 Basic Server + mysql and web server support.
2. yum update
There will be hundreds of updates so this may take a several minutes (15 to 20 minutes).
Last time I did this, it installed 382 updates.
3. Install dependences for Qt:
as root:
4. Install devtoolsyum install libxcb libxcb-devel xcb-util xcb-util-devel
yum install flex bison gperf libicu-devel libxslt-devel ruby
yum install git
yum install gcc-c++
yum install mysql-devel
yum install libX11-devel
yum install libXrender-devel
yum install libusb-devel
yum install mesa-libGL-devel
5. Download latest Qt from Git:wget http://people.centos.org/tru/devtool...tools-1.1.repo -P /etc/yum.repos.d
sh -c 'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
yum install devtoolset-1.1
This will take 30 to 45 minutes.git clone git://gitorious.org/qt/qt5.git qt5
cd qt5
git checkout stable
perl init-repository
6. Set the environment
By default, CentOS will set the following environmental variables:
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QT_IM_MODULE=xim
QTLIB=/usr/lib64/qt-3.3/lib
These must be unset before proceeding.
Now set the environment to use dev toolsenv | grep QT
QTDIR=/usr/lib64/qt-3.3
QTINC=/usr/lib64/qt-3.3/include
QT_IM_MODULE=xim
QTLIB=/usr/lib64/qt-3.3/lib
unset QTDIR
unset QTINC
unset QT_IM_MODULE
unset QTLIB
env | grep QT
scl enable devtoolset-1.1 bash
7. Configure, build, and install shared version of Qt
If installing on a multi-core virtual machine, type make -j# where # is the number of cores.cd qt5
./configure -prefix /Qt/5.3.1_shared -shared -platform linux-g++-64 -opensource -confirm-license -debug-and-release -I/usr/include/mysql -L/usr/lib64/mysql -qt-sql-mysql
Takes 15 - 30 minutes.
make
Takes 4 to 8 hours. Sometimes best to let it run over night.
As root from $HOME/qt5:
Takes 20 minutes to an hour.make install
Takes 20 minutes to an hour.make install docs
8. Download QtCreator from git
From $HOME as development user:
9. Set the build directorygit clone --recursive https://git.gitorious.org/qt-creator/qt-creator.git
10. Set the environment:mkdir qt-creator-build
cd qt-creator-build
11. Build Qt Creatorscl enable devtoolset-1.1 bash
export QTDIR=/Qt/5.3.1_shared
export PATH=$QTDIR/bin:$PATH
which qmake
/Qt/5.3.1_shared/bin/qmake
qmake -v
QMake version 3.0
Using Qt version 5.3.1 in /Qt/5.3.1_shared/lib
Takes 5 to 9 hours. Maybe another all nighter.qmake -r ../qt-creator/qtcreator.pro
make
Bookmarks