我正在构建一个跨平台的c ++项目,我正在评估可能帮助我完成工作的各种库。其中之一是POCO。似乎它提供了我需要的一切,我想尝试一下。
上下文:
无论如何,一切都很好,直到尝试编译。对于每个工具集版本,都有一个批处理文件。对于VS2013(v12),没有任何。我手动创建了它:
@echo off if defined VS120COMNTOOLS ( call "%VS120COMNTOOLS%\vsvars32.bat") buildwin 120 build shared both Win32 samples
并按照模式将其命名为build_vs120.cmd
。
在buildwin.cmd
中,我编辑了OpenSSL和mysql的路径以指向正确的位置:
set OPENSSL_DIR=C:\OpenSSL-Win32 set MYSQL_DIR=C:\Program Files (x86)\MySQL\MySQL Connector C++ 1.1.4
这就是我在buildwin.cmd
编辑的全部内容。其他一切看起来都很正常。
现在,我打开了Power Shell并启动了build_vs120.cmd
。 CppUnit
项目进展顺利,但在Foundation
项目失败时:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++ Building [Foundation_vs120.vcxproj] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Microsoft (R) Build Engine version 12.0.30723.0 [Microsoft .NET Framework, version 4.0.30319.34014] Copyright (C) Microsoft Corporation. All rights reserved. Build started 8/23/2014 8:56:02 AM. 1>Project "D:\Proiecte\cpp\commons\POCO\Foundation\Foundation_vs120.vcxproj" on node 1 (build target(s)). 1>InitializeBuildStatus: Touching "obj\debug_shared\Foundation.tlog\unsuccessfulbuild". 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code -1073741819. [D:\Proiecte\cpp\commons\POCO\Foundation\Foundation_vs120.vcxproj] 1>Done Building Project "D:\Proiecte\cpp\commons\POCO\Foundation\Foundation_vs120.vcxproj" (build target(s)) -- FAILED. Build FAILED. "D:\Proiecte\cpp\commons\POCO\Foundation\Foundation_vs120.vcxproj" (build target) (1) -> (CustomBuild target) -> C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets(170,5): error MSB6006: "cmd.exe" exited with code -1073741819. [D:\Proiecte\cpp\commons\POCO\Foundation\Foundation_vs120.vcxproj] 0 Warning(s) 1 Error(s) Time Elapsed 00:00:01.54
我很丢失。我试图挖掘这个错误,但没有太多关于它的信息。知道发生了什么事吗?我做错了什么吗?是否有任何遗漏的依赖项我忘记安装或设置为Visual Studio?
谢谢, DC
答案 0 :(得分:0)
事实上......我的Visual Studio安装存在问题:
我尝试重新安装VS2013,以应用sp3 - 但它们都以同样的方式失败了。关闭此事,因为它不再与POCO库有关。