我用的是WINXP系统,开源4.1.0的版本,
qt-win-opensource-4.1.0-mingw.exe
MinGW-3.2.0-rc-3.exe
都装在C盘默认目录。
安装完后 设置环境变量为:
QTDIR C:\qt\4.1.0
QMAKESPEC win32-g++
PATH C:\qt\4.1.0\bin;C:\MinGW\bin
然后进入Qt by Trolltech v4.1.0 (OpenSource)”->“Qt 4.1.0 Command Prompt”进入到命令行窗口
configure (没有问题)
然后
mingw32-make
问题来了:
。
。
。
styles\qwindowsxpstyle.cpp:3411: error: `MAXBS_PUSHED' undeclared (first use thi
s function)
styles\qwindowsxpstyle.cpp:3415: error: `MAXBS_HOT' undeclared (first use this f
unction)
styles\qwindowsxpstyle.cpp:3419: error: `MAXBS_DISABLED' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:3396: warning: unused variable 'dwOpt'
styles\qwindowsxpstyle.cpp:3439: error: `pGetThemePartSize' cannot be used as a
function
styles\qwindowsxpstyle.cpp:3443: error: `WP_CLOSEBUTTON' undeclared (first use t
his function)
styles\qwindowsxpstyle.cpp:3448: error: `CBS_PUSHED' undeclared (first use this
function)
styles\qwindowsxpstyle.cpp:3452: error: `CBS_HOT' undeclared (first use this fun
ction)
styles\qwindowsxpstyle.cpp:3456: error: `CBS_DISABLED' undeclared (first use thi
s function)
styles\qwindowsxpstyle.cpp:3433: warning: unused variable 'dwOpt'
styles\qwindowsxpstyle.cpp:3473: error: `WP_RESTOREBUTTON' undeclared (first use
this function)
styles\qwindowsxpstyle.cpp:3476: error: `pGetThemePartSize' cannot be used as a
function
styles\qwindowsxpstyle.cpp:3469: warning: unused variable 'dwOpt'
mingw32-make[3]: *** [tmp\obj\debug_shared\qwindowsxpstyle.o] Error 1
mingw32-make[3]: Leaving directory `C:/Qt/4.1.0/src/gui'
mingw32-make[2]: *** [debug-all] Error 2
mingw32-make[2]: Leaving directory `C:/Qt/4.1.0/src/gui'
mingw32-make[1]: *** [sub-gui-make_default-ordered] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.1.0/src'
mingw32-make: *** [sub-src-make_default-ordered] Error 2
关于安装这个,我搞了好几天了,都没有成功。。。。。
请大虾指点迷津!我都快要崩溃了。。
[ 此贴被XChinux在2007-08-12 22:41重新编辑 ]