Chinaunix首页 | 论坛 | 博客
  • 博客访问: 493169
  • 博文数量: 106
  • 博客积分: 6010
  • 博客等级: 准将
  • 技术积分: 1083
  • 用 户 组: 普通用户
  • 注册时间: 2007-09-22 18:20
文章分类

全部博文(106)

文章存档

2009年(1)

2008年(105)

我的朋友

分类: LINUX

2008-05-07 09:45:29

在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
 
解决办法如下




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 呵呵
阅读(1766) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~