1 主要原因是针对mysql的CFG_MYSQL_CONFIG使用
--- qt-everywhere-opensource-src-4.7.0-beta2-mysql_config.patch.bak 2014-08-09 14:06:14.091961783 +0800
+++ qt-everywhere-opensource-src-4.7.0-beta2-mysql_config.patch 2014-08-09 14:08:29.833959939 +0800
@@ -5,8 +5,8 @@ diff -up qt-everywhere-opensource-src-4.
[ -z "$CFG_MYSQL_CONFIG" ] && CFG_MYSQL_CONFIG=`"$WHICH" mysql_config`
if [ -x "$CFG_MYSQL_CONFIG" ]; then
QT_CFLAGS_MYSQL=`$CFG_MYSQL_CONFIG --include 2>/dev/null`
-+ $CFG_MYSQL_CONFIG --pkglibdir &>/dev/null && \
-+ QT_MYSQL_PKGLIBDIR=`$CFG_MYSQL_CONFIG --pkglibdir 2>/dev/null`
++ $CFG_MYSQL_CONFIG --variable=pkglibdir &>/dev/null && \
++ QT_MYSQL_PKGLIBDIR=`$CFG_MYSQL_CONFIG --variable=pkglibdir 2>/dev/null`
+ if [ -n "$QT_MYSQL_PKGLIBDIR" ]; then
+ QT_LFLAGS_MYSQL_R="-L$QT_MYSQL_PKGLIBDIR -lmysqlclient_r"
+ QT_LFLAGS_MYSQL="-L$QT_MYSQL_PKGLIBDIR -lmysqlclient"
2 qt.spec文件缺少依赖软件包
[root@localhost qt]# cat qt.spec.patch
--- qt.spec.bak 2014-08-09 14:10:26.513958353 +0800
+++ qt.spec 2014-08-09 14:10:42.096958141 +0800
@@ -221,6 +221,10 @@ Source31: hi48-app-qt4-logo.png
%define _qt4_translationdir %{_datadir}/qt4/translations
BuildRequires: cups-devel
+BuildRequires: ibm-data-db2
+BuildRequires: sqlite-devel
+BuildRequires: postgresql-devel
+BuildRequires: unixODBC-devel
BuildRequires: desktop-file-utils
BuildRequires: findutils
BuildRequires: libjpeg-devel