标题:windows下装QT遇见的问题~
作者:fkwcowboy
日期:2006-06-06 01:19
内容:
在windows下装QT遇到的问题
C:\qt\4.1.3>configure
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
See the README file for a list of supported operating systems and compilers.
Usage: configure [-buildkey ]
[-release] [-debug] [-debug-and-release] [-shared] [-static]
[-no-fast] [-fast] [-no-exceptions] [-exceptions]
[-no-accessibility] [-accessibility] [-no-rtti] [-rtti]
[-no-stl] [-stl] [-no-sql-] [-qt-sql-]
[-plugin-sql-] [-arch ] [-platform ]
[-D ] [-I ] [-L ]
[-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj]
[-no-qmake] [-qmake] [-dont-process] [-process]
[-no-style-] [-qt-style-] [-redo]
[-saveconfig ] [-loadconfig ] [-no-zlib]
[-qt-zlib] [-system-zlib] [-no-gif] [-qt-gif] [-no-libpng]
[-qt-libpng] [-system-libpng] [-no-libjpeg] [-qt-libjpeg]
[-system-libjpeg] [-no-libmng] [-qt-libmng] [-system-libmng]
[-no-qt3support]
Installation options:
You may use these options to turn on strict plugin loading:
-buildkey .... Build the Qt library and plugins using the specified
. When the library loads plugins, it will only
load those that have a matching .
Configure options:
The defaults (*) are usually acceptable. A plus (+) denotes a default value
that needs to be evaluated. If the evaluation succeeds, the feature is
included. Here is a short explanation of each option:
-release ........... Compile and link Qt with debugging turned off.
* -debug ............. Compile and link Qt with debugging turned on.
+ -debug-and-release . Compile and link ..
#1 [deer 06-06 11:53]
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
看见这句了没有,你好像是没有在环境变量里面设置QMAKESPEC ,它就找不到编译器了
#2 [fygenius 06-06 13:04]
要指定你的编译器vc么vc mingw么mingw
#3 [fkwcowboy 06-06 16:58]
啊 还要指定编译器啊.. 怎么设置 用什么命令啊?
#4 [deer 06-06 17:18]
在环境变量里面新建“QMAKESPEC ”,值根据你的环境来设,比方说你用vc,值就为win32-msvc,
如果用g++,值就为win32-g++,具体类型可参见qt目录下mkspecs文件夹