• 6681阅读
  • 4回复

windows下装QT遇见的问题~ [复制链接]

上一主题 下一主题
离线fkwcowboy
 

只看楼主 倒序阅读 楼主  发表于: 2006-06-06
在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 <key>]
  [-release] [-debug] [-debug-and-release] [-shared] [-static]
  [-no-fast] [-fast] [-no-exceptions] [-exceptions]
  [-no-accessibility] [-accessibility] [-no-rtti] [-rtti]
  [-no-stl] [-stl] [-no-sql-<driver>] [-qt-sql-<driver>]
  [-plugin-sql-<driver>] [-arch <arch>] [-platform <spec>]
  [-D <define>] [-I <includepath>] [-L <librarypath>]
  [-help] [-no-dsp] [-dsp] [-no-vcproj] [-vcproj]
  [-no-qmake] [-qmake] [-dont-process] [-process]
  [-no-style-<style>] [-qt-style-<style>] [-redo]
  [-saveconfig <config>] [-loadconfig <config>] [-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 <key> .... Build the Qt library and plugins using the specified
          <key>. When the library loads plugins, it will only
          load those that have a matching <key>.

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 two Qt libraries, with and without
          debugging turned on.

* -shared ............ Create and use shared Qt libraries.
-static ............ Create and use static Qt libraries.

* -no-fast ........... Configure Qt normally by generating Makefiles for all
          project files.
-fast .............. Configure Qt quickly by generating Makefiles only for
          library and subdirectory targets. All other Makefiles
          are created as wrappers which will in turn run qmake

-no-exceptions ..... Disable exceptions on platforms that support it.
* -exceptions ........ Enable exceptions on platforms that support it.

-no-accessibility .. Do not compile Windows Active Accessibilit support.
* -accessibility ..... Compile Windows Active Accessibilit support.

-no-stl ............ Do not compile STL support.
* -stl ............... Compile STL support.

-no-sql-<driver> ... Disable SQL <driver> entirely, by default none are
          turned on.
-qt-sql-<driver> ... Enable a SQL <driver> in the Qt Library.
-plugin-sql-<driver> Enable SQL <driver> as a plugin to be linked to at run
          time.
          Available values for <driver>:
            mysql
            psql
            oci
            odbc
            tds
            db2
+           sqlite
            sqlite2
            ibase
          (drivers marked with a '+' have been detected as
          available on this system)

-no-qt3support ..... Disables the Qt 3 support functionality.

-platform <spec> ... The operating system and compiler you are building on.
          (default %QMAKESPEC%)

          See the README file for a list of supported operating
          systems and compilers.

-D <define> ........ Add an explicit define to the preprocessor.
-I <includepath> ... Add an explicit include path.
-L <librarypath> ... Add an explicit library path.
-l <libraryname> ... Add an explicit library name, residing in a
          librarypath.

-help, -h, -? ...... Display this information.

Third Party Libraries:

-no-zlib ........... Do not compile in ZLIB support. Implies -no-libpng.
-qt-zlib ........... Use the zlib bundled with Qt.
+ -system-zlib ....... Use zlib from the operating system.
          See http://www.gzip.org/zlib

+ -no-gif ............ Do not compile the plugin for GIF reading support.
-qt-gif ............ Compile the plugin for GIF reading support.
          See also src/plugins/imageformats/gif/qgifhandler.h

-no-libpng ......... Do not compile in PNG support.
-qt-libpng ......... Use the libpng bundled with Qt.
+ -system-libpng ..... Use libpng from the operating system.
          See http://www.libpng.org/pub/png

-no-libmng ......... Do not compile in MNG support.
-qt-libmng ......... Use the libmng bundled with Qt.
+ -system-libmng ..... Use libmng from the operating system.
          See See http://www.libmng.com

-no-libjpeg ........ Do not compile the plugin for JPEG support.
-qt-libjpeg ........ Use the libjpeg bundled with Qt.
+ -system-libjpeg .... Use libjpeg from the operating system.
          See http://www.ijg.org

Qt/Windows only:

-no-dsp ............ Do not generate VC++ .dsp files.
* -dsp ............... Generate VC++ .dsp files, only if spec "win32-msvc".

-no-vcproj ......... Do not generate VC++ .vcproj files.
* -vcproj ............ Generate VC++ .vcproj files, only if platform
          "win32-msvc.net".

-no-qmake .......... Do not compile qmake.
* -qmake ............. Compile qmake.

-dont-process ...... Do not generate Makefiles/Project files.
* -process ........... Generate Makefiles/Project files.

-no-rtti ........... Do not compile runtime type information.
* -rtti .............. Compile runtime type information.

-arch <arch> ....... Specify an architecture.
          Available values for <arch>:
*           windows
            boundschecker

-no-style-<style> .. Disable <style> entirely.
-qt-style-<style> .. Enable <style> in the Qt Library.
          Available styles:
*           windows
+           windowsxp
*           plastique
*           motif
*           cde

-loadconfig <config> Run configure with the parameters from file configure_
          <config>.cache.
-saveconfig <config> Run configure and save the parameters in file
          configure_<config>.cache.
-redo .............. Run configure with the same parameters as last time.
哪为高人知道咋回事啊
[ 此贴被XChinux在2006-06-06 19:17重新编辑 ]
离线deer
只看该作者 1楼 发表于: 2006-06-06
Unable to detect the platform from environment. Use -platform command lineargume
nt or set the QMAKESPEC environment variable and run configure again
看见这句了没有,你好像是没有在环境变量里面设置QMAKESPEC ,它就找不到编译器了
离线fygenius

只看该作者 2楼 发表于: 2006-06-06
要指定你的编译器vc么vc mingw么mingw
离线fkwcowboy

只看该作者 3楼 发表于: 2006-06-06
啊 还要指定编译器啊..  怎么设置 用什么命令啊?
离线deer
只看该作者 4楼 发表于: 2006-06-06
在环境变量里面新建“QMAKESPEC ”,值根据你的环境来设,比方说你用vc,值就为win32-msvc,
如果用g++,值就为win32-g++,具体类型可参见qt目录下mkspecs文件夹
快速回复
限100 字节
 
上一个 下一个