【问题标题】:How to install pbrt-v3 on windows10 with Visual Studio 2017?如何使用 Visual Studio 2017 在 windows10 上安装 pbrt-v3?
【发布时间】:2017-10-15 01:38:58
【问题描述】:

我 fork 回购并下载它,然后在 Visual Studio 2017 社区中打开它并执行以下操作:

1:right-click the MakeLists.txt and click the Rebuild All. (x64 Debug)
2:Then, i found the build directory at here:C:\Users\SHIZU-NOTEBOOK\AppData\Local\CMakeBuild\233159a3-9dca-9735-91fc-be7911e3ef6d\build\x64-Debug\Debug

我找不到像 *\bin 这样的目录,在 cmd "pbrt" 中也不起作用。

我的构建和解决方案错了吗!

真诚的!

【问题讨论】:

    标签: c++ graphics cmake visual-studio-2017 pbrt


    【解决方案1】:

    使用 cmake-gui 或 cmake 命令行工具生成 Visual Studio 解决方案文件,然后构建解决方案。

    如果选择命令行,步骤如下:

    1. 生成解决方案文件

      mkdir build && cd build
      cmake .. -G "Visual Studio 15 Win64"
      
    2. 现在,使用 Visual Studio 2017 打开 PBRT-V3.sln

    3. 构建解决方案

    PS:从 pbrt-v3 项目的自述文件中,您需要运行 git submodule update --init --recursive 来获取依赖项。

    【讨论】:

      猜你喜欢
      • 2018-07-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-18
      相关资源
      最近更新 更多