用于Windows的QCA库

时间:2011-06-17 22:32:12

标签: windows qt encryption compilation

我正在为Windows编译QCA库并使用INSTALL文件中的步骤进行配置我在Windows控制台中使用以下命令:

configure.exe --qtdir=C:\QtSDK\Desktop\Qt\4.7.3\mingw

回复是:

Configuring Qt Cryptographic Architecture (QCA) ...

Reason: There was an error compiling 'conf'.  See conf.log for details.

我试图直接在Windows中使用Qt进行编译,并显示以下错误:

-I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\include\ActiveQt" -I"release" -I"." -I"c:\QtSDK\Desktop\Qt\4.7.3\mingw\mkspecs\win32-g++" -o release\mlock.o ..\..\Encryption-QCA\src\botantools\botan\ml_win32\mlock.cpp
In file included from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objbase.h:73,
                 from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/ole2.h:9,
                 from c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/windows.h:114,
                 from ..\..\Encryption-QCA\src\botantools\botan\ml_win32\mlock.cpp:37:
c:\qtsdk\mingw\bin\../lib/gcc/mingw32/4.4.0/../../../../include/objidl.h:95: error: expected unqualified-id before string constant
mingw32-make[2]: Leaving directory `C:/Users/AlejoLina/Documents/Alejandro/Compacta/SE-HA_Tool/Encryption-QCA-build-desktop/src'
mingw32-make[1]: Leaving directory `C:/Users/AlejoLina/Documents/Alejandro/Compacta/SE-HA_Tool/Encryption-QCA-build-desktop/src'
mingw32-make[2]: *** [release/mlock.o] Error 1
mingw32-make[1]: *** [release] Error 2
mingw32-make: *** [sub-src-make_default] Error 2
The process "C:\QtSDK\mingw\bin\mingw32-make.exe" exited with code 2.
Error while building project qca (target: Desktop)
When executing build step 'Make'

提前感谢您的帮助

2 个答案:

答案 0 :(得分:0)

我不能确定这是您的问题,但您可能想尝试使用MSYS提供的make。我一直都有更好的成功。来自MinGW's own FAQ ..

  

“原生”(即:MSVCRT依赖)   一些人缺乏制造港   功能和修改   功能由于缺乏POSIX   在Win32上。

答案 1 :(得分:0)

配置中的问题是可执行文件没有找到windows make(mingw-make)。

解决方案是将正确的路径放入envinronment变量(qt和mingw bin路径)。