POCO dev-release v1.5.3编译失败

时间:2014-08-23 07:25:31

标签: c++ compilation compiler-errors poco-libraries

我正在构建一个跨平台的c ++项目,我正在评估可能帮助我完成工作的各种库。其中之一是POCO。似乎它提供了我需要的一切,我想尝试一下。

上下文:

  • OpenSSL for windows(http://slproweb.com/products/Win32OpenSSL.html),两个平台都安装在“C:\ OpenSSL-Win32”和“C:\ OpenSSL-Win64”中;
  • 用于c ++ 1.1.4的mysql连接器x86;
  • 我的机器上安装了VS2010和VS2013;
  • 我决定使用VS2013,即使还没有正式发布支持它,因为该项目可能需要一段时间才能发布第一个版本,同时如果POCO有任何问题,那么它可能会被解决;
  • OS:Win8.1 x64;
  • 目标平台是x86 - 现在;

无论如何,一切都很好,直到尝试编译。对于每个工具集版本,都有一个批处理文件。对于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.cmdCppUnit项目进展顺利,但在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

1 个答案:

答案 0 :(得分:0)

事实上......我的Visual Studio安装存在问题:

  • 我在另一台机器(Win7 / x64)上测试了POCO库编译,它运行良好 - 完整版;
  • 我尝试为有问题的机器添加自定义构建步骤(前/后和任何类型的自定义构建步骤 - 从简单的" dir"开始,复制文件或只是启动新的可执行文件)和它们所有人都用同样的信息坠毁了。 POCO和仅为此测试创建的虚拟项目的编译失败。

我尝试重新安装VS2013,以应用sp3 - 但它们都以同样的方式失败了。关闭此事,因为它不再与POCO库有关。