【问题标题】:Error with cmake when trying to build wt?尝试构建 wt 时 cmake 出错?
【发布时间】:2010-07-17 04:13:01
【问题描述】:

检查工作的 C 编译器:cl

检查工作的 C 编译器:cl --broken

C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CMakeTestCCompiler.cmake:32 处的 CMake 错误

(MESSAGE):C 编译器“cl”无法编译简单的测试程序。

失败,输出如下:

更改目录:C:/Users/Gilg/Documents/Projects/builds/CMakeFiles/CMakeTmp

运行编译命令:C:\PROGRA~1\MI30EB~1\Common7\IDE\devenv.com CMAKE_TRY_COMPILE.sln /build 调试 /project cmTryCompileExec

Microsoft (R) Visual Studio 版本 8.0.50727.762。

版权 (C) Microsoft Corp 1984-2005。保留所有权利。

1>----- 构建开始:项目:cmTryCompileExec,配置:调试 Win32 ------

1>正在编译...

1>Microsoft (R) 32 位 C/C++ 优化编译器版本 14.00.50727.762 适用于 80x86

1>版权所有 (C) Microsoft Corporation。保留所有权利。

1>cl /Od /D "WIN32" /D "_WINDOWS" /D "_D​​EBUG" /D "CMAKE_INTDIR=\"Debug\"" /D "_MBCS" /FD /RTCs /MDd /Fo"cmTryCompileExec.dir\Debug\" /Fd"C:/Users/Gilg/Documents/Projects/builds/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.pdb" /W3 /c /Zi /TC /Zm1000

1> .\testCCompiler.c

1>testCCompiler.c

1>.\testCCompiler.c : 致命错误 C1033: 无法打开程序数据库

1>构建日志保存在 "file://c:\Users\Gilg\Documents\Projects\builds\CMakeFiles\CMakeTmp\cmTryCompileExec.dir\Debug\BuildLog.htm"

1>cmTryCompileExec - 1 个错误,0 个警告

========== 构建:0 成功,1 失败,0 最新,0 跳过 ==========

我已将路径 $(SystemRoot), $(SystemRoot)\System32,$(SystemRoot)\System32\wbem 添加到 MCVS 2005 的 vc++ 目录中,但我仍然遇到此问题。我不知道还能做什么。非常感谢任何帮助,谢谢。

【问题讨论】:

  • 您在哪个版本的 Windows 上编译?如果在带有 MCVS 2005 的 Windows 7 上尝试以 vista 兼容性运行它。

标签: cmake


【解决方案1】:

看起来您运行 cmake 的方式有问题。删除你的整个项目,通过关注the wt on windows installation instructions从头开始

【讨论】:

    【解决方案2】:

    我最近遇到了类似的问题,这是由于 cygwin 在 VC200x 二进制文件之前处于路径中。通过将 \cygwin\bin 放在 C++ 目录 -> 可执行文件目录的最后并将其完全从系统环境路径中取出来解决。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-24
      • 2013-01-26
      • 2019-05-13
      • 2019-11-17
      • 1970-01-01
      相关资源
      最近更新 更多