【问题标题】:libqxt compilation - mingw32-make exceptionlibqxt 编译 - mingw32-make 异常
【发布时间】:2012-08-18 21:06:29
【问题描述】:

我在编译 libqxt 时遇到以下问题。

configure.bat 生成文件,但显示一些警告:

c:\Users\Lukasz\Downloads\libqxt-libqxt-7e0d3396b765>configure.bat
   Testing for qmake...
   Testing for mingw32-make...
       Using mingw32-make.
   Testing for optional external libraries.
   If tests fail, some features will not be available.
   Testing for Berkeley DB...
       Berkeley DB disabled.
   Testing for Zero Conf...
       Zero Conf disabled.
   Configuration successful.
   Generating makefiles...
Project MESSAGE: building docs
Project MESSAGE: building core module
Project MESSAGE: building widgets module
Project MESSAGE: building network module
Project MESSAGE: building sql module
Project MESSAGE: building web module
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/tools/3rdparty/qdoc
3/qdoc3.pro
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/core/core.pro
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/widgets/widgets
.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/designer/design
er.pro
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Project MESSAGE: Warning: unknown QT: widgets
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/network/network
.pro
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/tools/jsonrpcclient
/jsonrpcclient.pro
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/sql/sql.pro
Reading C:/Users/Lukasz/Downloads/libqxt-libqxt-7e0d3396b765/src/web/web.pro
   Makefiles generated. Run mingw32-make now.

mingw32-make 几乎立即中断,但有异常:

c:\Users\Lukasz\Downloads\libqxt-libqxt-7e0d3396b765>mingw32-make
mingw32-make: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x421963)

源码是从官方网站下载的。运行 configure 和 mingw32-make 是 README 文件中描述的编译方式。这里有什么问题?

【问题讨论】:

    标签: windows qt compiler-errors mingw32 libqxt


    【解决方案1】:

    答案很简单而且出乎意料 - mingw32-make 在 PATH 环境变量中的括号(“(”符号)存在很大问题。解决方案是从 PATH 中删除所有包含“(”的目录。

    可以使用以下语法在命令行中本地更改 PATH(而不为任何其他程序更改它): set PATH=...,例如我的消毒路径是:

    set PATH=C:\QtSDK\mingw\bin;C:\QtSDK\Desktop\Qt\4.8.0\mingw\lib;C:\QtSDK\Desktop\Qt\4.8.0\mingw\bin\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;
    

    至于获取当前PATH值,使用语法:echo %PATH%

    【讨论】:

      猜你喜欢
      • 2012-08-07
      • 1970-01-01
      • 2012-03-10
      • 1970-01-01
      • 1970-01-01
      • 2012-03-17
      • 2012-11-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多