2009-11-03 47 views
0

有没有人设法使用VS2008构建最新的QT(2009.04)?使用VS2008构建QT(2009.04)(在XP上)

我有运行以下命令建立QT

我配置QT问题:

C:\Qt\2009.04\qt>configure -no-sql-sqlite -no-qt3support -no-opengl -platform win32-msvc2008 -no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit 

当我运行NMAKE,这是输出(只是错误之前)

.\tokenizer.cpp(477) : warning C4996: 'strcpy': This function or variable may be 
unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR 
E_NO_WARNINGS. See online help for details. 
     c:\VisualStudio_9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy 
' 
.\tokenizer.cpp(560) : warning C4996: 'strcpy': This function or variable may be 
unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR 
E_NO_WARNINGS. See online help for details. 
     c:\VisualStudio_9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy 
' 
.\tokenizer.cpp(561) : warning C4996: 'strcpy': This function or variable may be 
unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECUR 
E_NO_WARNINGS. See online help for details. 
     c:\VisualStudio_9.0\VC\INCLUDE\string.h(74) : see declaration of 'strcpy 
' 
tree.cpp 
uncompressor.cpp 
webxmlgenerator.cpp 
.\webxmlgenerator.cpp(134) : warning C4065: switch statement contains 'default' 
but no 'case' labels 
yyindent.cpp 
Generating Code... 
     link /LIBPATH:"c:\Qt\2009.04\qt\lib" /LIBPATH:"c:\Qt\2009.04\qt\lib" /NO 
LOGO /INCREMENTAL:NO /SUBSYSTEM:CONSOLE /MANIFEST /MANIFESTFILE:"tmp\obj\release 
_shared\qdoc3.intermediate.manifest" /OUT:release\qdoc3.exe @C:\DOCUME~1\NEILOS~ 
1\LOCALS~1\Temp\nm194F.tmp 
     mt.exe -nologo -manifest "tmp\obj\release_shared\qdoc3.intermediate.mani 
fest" -outputresource:release\qdoc3.exe;1 

有谁知道如何解决这个问题?有没有人设法使用VS2008在XP上构建QT?

+0

这是错误还是警告? QT完成了建设吗? 这些警告是由于Visual Studio试图通过strcpy利用可能的漏洞来强化他们的软件以防止安全漏洞,并且提出了一个strcpy_s(其中s可能代表安全)。不幸的是,这是C++标准。 – Extrakun 2009-11-03 08:10:44

+0

对不起,我已经离开了我的办公桌。它确实看起来像构建完成成功完成(我预计构建需要4个小时或更长时间 - 从我在网上阅读的文章 - 因为它只需要大约30分钟,我认为构建失败 - 尤其是,因为它已失败以前用另一个配置[config options]) – skyeagle 2009-11-03 21:29:26

回答

1

您似乎只有警告的消息。 Visual Studio建议你从Windows使用安全函数,而不是不安全的标准函数(strcpy_s而不是strcpy)。对于Qt,您可以禁用C4996警告,以免发出这些消息。

无论如何,如果您在编译Qt时遇到问题,或者如果您不想在使用Qt之前编译Qt,则可以在此处下载适用于Visual Studio 2008的Qt二进制文件(.dll & .lib):http://qt.developpez.com/binaires/en/

0

您可以在他们的labs blog上看到,从Qt 4.6 Release Candidate 1开始,他们提供VS2008预编译的开源版二进制文件,因此您不需要自行重新编译它们或从第三方。

从评论:

是的,我们打算释放两个MinGW和VS2008二进制包,只要这些编译器在我们的“1级“平台列表。