• 6016阅读
  • 3回复

在编译和生成库的过程中出现了错误,4.1.2版本的 mingwm,可能是什么地方的问题呢? 谢谢 [复制链接]

上一主题 下一主题
离线freshcon
 
只看楼主 正序阅读 楼主  发表于: 2006-04-26
Setting up a MinGW/Qt only environment...
-- QTDIR set to D:\App_Software_Inst_D\Qt\4.1.2
-- PATH set to D:\App_Software_Inst_D\Qt\4.1.2\bin
-- Adding D:\App_Software_Inst_D\Dev-Cpp\bin to PATH
-- Adding C:\WINNT\System32 to PATH
-- QMAKESPEC set to win32-g++
This will configure and compile qt in debug.
The release libraries will not be recompiled.
请按任意键继续 . . .

This is the Qt/Windows Open Source Edition.

You are licensed to use this software under the terms of
the GNU General Public License.

Type '?' to view the GNU General Public License.
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.

Do you accept the terms of the license?
y
Environment:
  INCLUDE=
    D:\App_Software_Inst_D\VC98\atl\include
    D:\App_Software_Inst_D\VC98\mfc\include
    D:\App_Software_Inst_D\VC98\include
    d:\App_Software_Inst_D\Microsoft Visual VC++\atl\include
    d:\App_Software_Inst_D\Microsoft Visual VC++\mfc\include
    d:\App_Software_Inst_D\Microsoft Visual VC++\include
  LIB=
    D:\App_Software_Inst_D\VC98\mfc\lib
    D:\App_Software_Inst_D\VC98\lib
    d:\App_Software_Inst_D\Microsoft Visual VC++\mfc\lib
    d:\App_Software_Inst_D\Microsoft Visual VC++\lib
  PATH=
    D:\App_Software_Inst_D\Qt\4.1.2\bin
    D:\App_Software_Inst_D\Dev-Cpp\bin
    C:\WINNT\System32
You are licensed to use this software under the terms of the GNU GPL.

.............


Qt is now configured for building. Just run mingw32-make.
To reconfigure, run mingw32-make clean and configure.

(cd winmain && mingw32-make -f Makefile debug)
mingw32-make[1]: Entering directory `D:/App_Software_Inst_D/Qt/4.1.2/src/winmain
'
mingw32-make -f Makefile.Debug
mingw32-make[2]: Entering directory `D:/App_Software_Inst_D/Qt/4.1.2/src/winmain
'
g++ -c -g -g -Wall -frtti -fexceptions -DQT_THREAD_SUPPORT -DUNICODE -DQT_LARGEF
ILE_SUPPORT -DQT_NEEDS_QMAIN -DQT_NO_CAST_TO_ASCII -DQT3_SUPPORT -DQT_MOC_COMPAT
-I"D:/App_Software_Inst_D/Qt/4.1.2/include" -I"tmp" -I"D:/App_Software_Inst_D/Q
t/4.1.2/include/QtCore" -I"D:\App_Software_Inst_D\Qt\4.1.2\include\qtmain" -I"tm
p" -I"D:/App_Software_Inst_D/Qt/4.1.2/include/ActiveQt" -I"tmp\moc\debug_shared"
-I"." -I"D:/App_Software_Inst_D/Qt/4.1.2/mkspecs/win32-g++" -o tmp\obj\debug_sh
ared\qtmain_win.o qtmain_win.cpp
ar -ru "..\..\lib\libqtmaind.a" tmp\obj\debug_shared\qtmain_win.o
mingw32-make[2]: Leaving directory `D:/App_Software_Inst_D/Qt/4.1.2/src/winmain'

mingw32-make[1]: Leaving directory `D:/App_Software_Inst_D/Qt/4.1.2/src/winmain'

(cd tools/moc && mingw32-make -f Makefile first)
mingw32-make[1]: Makefile: No such file or directory
mingw32-make[1]: *** No rule to make target `Makefile'. Stop.
mingw32-make[1]: Entering directory `D:/App_Software_Inst_D/Qt/4.1.2/src/tools'
mingw32-make[1]: Leaving directory `D:/App_Software_Inst_D/Qt/4.1.2/src/tools'
mingw32-make: *** [debug-tools/moc] Error 2
D:\App_Software_Inst_D\Qt\4.1.2\src>
[ 此贴被XChinux在2006-05-07 23:40重新编辑 ]
QT C++...
离线hike
只看该作者 3楼 发表于: 2008-03-24
我也遇到了同样的问题!
我的路径是C:\Qt\4.3.4\src>  用的是Dev-cpp!怎么能把debug编译成功!
请高手指点!
离线igoo
只看该作者 2楼 发表于: 2006-05-26
该问题我遇到过,折腾了好几个小时
在出错的时候
运行
mingw32-make first就行了

该命令会把qt的库全部编译一遍。我的amd2200+,380M Ram编译了将近一个小时

或者有奇妙的办法,主要问题是debug版本的库没有,但是在lib下面有几个prl的patch文件,
可能是他们有问题,如果不求甚解,就按照我的办法来吧
离线smallpig
只看该作者 1楼 发表于: 2006-05-09
mingw版本编译的时候,要将mingw的路径设置到path中,而且调用configure应该在4.1.2目录下,看你的文本,缺省目录怎么跑到D:\App_Software_Inst_D\Qt\4.1.2\src>下了。而且环境中的include都是for vc的,你是否4.1.2不是for mingw的,是for vc的。
快速回复
限100 字节
 
上一个 下一个