• 6990阅读
  • 8回复

我装QT4.1.2装了一个晚上,老是报错,快晕了! [复制链接]

上一主题 下一主题
离线ysh2004
 

只看楼主 倒序阅读 楼主  发表于: 2006-04-27
我装QT4.1.2装了一个晚上,老是报错,快晕了!

我按照论坛上面的步骤,一步一步的装,大家帮忙看看,看我的安装步骤是否有误,我的是VC6:
第1步:安装论坛置顶贴里面的Dev-cpp。
第2步:安装论坛置顶贴里面的minGW。
第3步:释放QT4.1.2的安装文件到C:\QT\4.1.2
第4步:释放QT4的补丁到C:\QT\4.1.2
第5步:在DOS提示符下运行vcvars32.bat
第6步:在DOS提示符下运行NMAKE/?
第7步:在DOS提示符下运行installpatch411.bat
第8步:在DOS提示符下运行qconfigure.bat msvc -release -no-stl
第9步:在DOS提示符下运行NMAKE
第9步只运行了大概三四分钟后,就报错终止了,错误如下:
styles\qwindowsxpstyle.cpp(168) : error C2065: 'HTHEME' : undeclared identifier
styles\qwindowsxpstyle.cpp(168) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(168) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(168) : error C2071: 'PtrGetThemePartSize' : illegal storage class
styles\qwindowsxpstyle.cpp(168) : error C2059: syntax error : ')'
styles\qwindowsxpstyle.cpp(169) : error C2059: syntax error : '__stdcall'
styles\qwindowsxpstyle.cpp(169) : error C2091: function returns function
styles\qwindowsxpstyle.cpp(169) : error C2378: 'HTHEME' : redefinition; symbol cannot be overloaded with a typedef
styles\qwindowsxpstyle.cpp(170) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(170) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(170) : error C2071: 'PtrCloseThemeData' : illegal storage class
styles\qwindowsxpstyle.cpp(170) : error C2059: syntax error : ')'
styles\qwindowsxpstyle.cpp(171) : error C2146: syntax error : missing ')' before identifier 'hTheme'
styles\qwindowsxpstyle.cpp(171) : error C2165: 'left-side modifier' : cannot modify pointers to data
styles\qwindowsxpstyle.cpp(171) : error C2071: 'PtrDrawThemeBackground' : illegal storage class
styles\qwindowsxpstyle.cpp(171) : error C2059: syntax error : ')'

NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"D:\Program Files\Microsoft Visual Studio\VC98\Bin\N
MAKE.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

请问这是什么问题呀,把我快急死了,搞了一个晚上,一点收获都没有!
[ 此贴被XChinux在2006-05-07 22:38重新编辑 ]
离线seraphliu

只看该作者 1楼 发表于: 2006-04-27
在vc6.0下,我也安装失败,vc.net下就是ok,不晓得怎么回事?
离线guyansrg

只看该作者 2楼 发表于: 2006-04-27
相应的系统环境设置好了吗?
比如INCLUDE变量里,又没有设置:C:\Program Files\Microsoft Visual Studio\VC98\Include
检查一下吧
离线ysh2004

只看该作者 3楼 发表于: 2006-04-27
我全部都设好了,但还是出现同样的错误!
离线guyansrg

只看该作者 4楼 发表于: 2006-04-27
能不能把qwindowsxpstyle.cpp的内容给我看一下
[ 此贴被guyansrg在2006-04-27 20:22重新编辑 ]
离线ysh2004

只看该作者 5楼 发表于: 2006-04-30
我重装了一下系统,后来安装QT 4.1.2虽然成功,但老是有这样的提示,在运行nmake时都会出现:
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dll
LINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dll
LINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dll
LINK : warning LNK4199: /DELAYLOAD:ws2_32.dll ignored; no imports found from ws2_32.dll
LINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dll

各位大侠,这到底是什么原因?
离线hyacinth
只看该作者 6楼 发表于: 2006-06-08
i think this is caused by path setting. But i m not using on windows and not 4.1.2

i use qt3
离线snipertheone

只看该作者 7楼 发表于: 2006-06-25
QT是我见过的安装最烦的软件...就是一堆狗屎,没办法还得用
我爱学习
离线chwoozy

只看该作者 8楼 发表于: 2006-06-30

QT是我见过的安装最烦的软件...就是一堆狗屎,没办法还得用

我安装起来很顺利啊。我觉得楼主思路有问题,既然叫你装Dev-Cpp你就不用再装MingW了,因为它里面已经带了;而装了Dev-Cpp就不用再nmake了,在Windows下不是有不用编译的二进制安装包吗。楼主是把几种安装方式给搞混淆了
快速回复
限100 字节
 
上一个 下一个