博客首页 注册 建议与交流 排行榜 加入友情链接
推荐 投诉 搜索: 帮助

leenux

落霞与孤骛齐飞,秋水共长天一色
leenux.cublog.cn


在Windows下编译Qt4.3.0开源版本出错解决办法
在Windows下编译Qt4.3.0,configure没有问题,但执行mingw32-make时出了以下错误,求高手解释,谢谢!

C:\Qt\4.3.0>C:\MinGW\bin\mingw32-make
cd src\winmain\ && C:/MinGW/bin/mingw32-make -f Makefile
mingw32-make[1]: Entering directory `C:/Qt/4.3.0/src/winmain'
C:/MinGW/bin/mingw32-make -f Makefile.Debug all
mingw32-make[2]: Entering directory `C:/Qt/4.3.0/src/winmain'
Makefile.Debug:116: *** multiple target patterns.  Stop.
mingw32-make[2]: Leaving directory `C:/Qt/4.3.0/src/winmain'
mingw32-make[1]: *** [debug-all] Error 2
mingw32-make[1]: Leaving directory `C:/Qt/4.3.0/src/winmain'
mingw32-make: *** [sub-winmain-make_default-ordered] Error 2
 
解决办法如下
http://www.qtcn.org/bbs/read.php?tid=8320

http://www.qtcentre.org/forum/f-installation-5/t-did-you-try-qt-43-opensource-on-winxp--7428.html

Do the following:

Open the Qt 4.3.0 console
Unset the INCLUDE and LIB environment variables, i.e.
"set lib = "
"set include = "
Do "del /s qconfig.h"
configure -debug_and_release (应该是-debug-and-release吧)
mingw32-make

I've followed this procedure and it appears to compile okay
 
其实暂时把lib和include环境变量变为空(要先备份哦),最好还是系统注销了再做下面的,接着configure,编译,然后把环境变量在恢复回来。方法有点狠,但是很有效,目的只有一个,不让qt4找vc或者vs的include 呵呵

发表于: 2008-03-06 ,修改于: 2008-03-06 17:18,已浏览241次,有评论0条 推荐 投诉


网友评论

发表评论