原文地址:http://blog.csdn.net/u010807846/article/details/45031077
@H_403_5@
原材料:qt-opensource-Linux-x64-5.4.0.run + CentOS 6.6 + gcc4.8@H_403_5@
1. Install Development Tools@H_403_5@
yum groupinstall "Development Tools"@H_403_5@2. Install glibc-devel.i686
yum install glibc-devel.i686@H_403_5@
On Ubuntu it's called libc6-dev-i386-do
On Red Hat distros,the package name is glibc-devel.i686
On CentOS 5.8,the package name is glibc-devel.i386
On CentOS 6 / 7,the package name is glibc-devel.i686.
On SLES it's called glibc-devel-32bit - do zypper in glibc-devel-32bit
@H_403_5@@H_403_5@@H_403_5@
3. Download and install GCC 4.8.2 or latest version.@H_403_5@
cd gcc-4.8.2
./contrib/download_prerequisites
mkdir gcc-bulid-4.8.2
cd /gcc-build-4.8.2
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
make -j4
make install@H_403_5@
@H_403_5@
mv /usr/lib64/libstdc+''.so.6 /usr/lib64/libstdc.so.6.backup
cp -f /usr/local/lib64/libstdc++.so libstdc++.so.6 libstdc++.so.6.0.18 /usr/lib64
ldconfig -v@H_403_5@
5. Download and install Qt 5.4.0 or latest version
./qt-opensource-linux-x64-5.4.0.run@H_403_5@
imagine that you install the qt in the /opt/Qt5.4.0/
6. install libGL lib
yum install libGL
yum install libGL-devel@H_403_5@
7. start the Qt:
cd /opt/Qt5.4.0/Tools/QtCreator/bin/ ./qtcreator.sh@H_403_5@@H_403_5@ @H_403_5@ 原文链接:https://www.f2er.com/centos/379584.html