【问题标题】:error of building google or-tools on win7win7构建google or-tools的错误
【发布时间】:2015-07-05 22:07:18
【问题描述】:

我想在 win 7 上安装 google-or-tools (https://code.google.com/p/or-tools/),以便我可以从 vidsual studio 2013 调用第三方优化求解器 (scip http://scip.zib.de/)。

我是 or-tools 的新手。

我按照https://developers.google.com/optimization/docs/installing#source_windows的说明进行操作

但是,当我在 cygwin 中运行“tools/make.exethird_party”时,出现错误:

  makefiles/Makefile.cpp.mk:1573: warning: ignoring old commands for target `lib/libbop.'

  cd dependencies/sources/gflags-2.1.1 && \
    -D BUILD_SHARED_LIBS=ON \
     -D BUILD_STATIC_LIBS=ON \
     -D CMAKE_INSTALL_PREFIX=../../install \
     -D CMAKE_CXX_FLAGS=-fPIC \
     .
      C:\cygwin\install\tmp\make91243.sh: line 1: -D: command not found
      E:\Google_or_tools\or-tools-master\tools\make.exe: *** [dependencies/install/bin/gflags_completions.sh] Error 127

我在 C:\cygwin\install 中找不到文件 make91243.sh。

任何帮助将不胜感激。

谢谢

【问题讨论】:

    标签: visual-studio-2013 windows-7 scip or-tools


    【解决方案1】:

    目前最新版本 (v6.5) 在 windows 上支持 Visual Studio 2015 和 Visual Studio 2017,不支持 Visual Studio 2013。

    【讨论】:

      【解决方案2】:

      这是一个老问题,但请注意,or-tools 目前不支持 Cygwin(请参阅 this 帖子)。在 Windows 上,您需要使用 Microsoft 的 Visual C++ 编译器。

      【讨论】:

        猜你喜欢
        • 2022-06-30
        • 2021-12-25
        • 2022-08-19
        • 2020-04-21
        • 2019-04-28
        • 2021-10-15
        • 1970-01-01
        • 2019-08-10
        • 1970-01-01
        相关资源
        最近更新 更多