0

我 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" 中也不起作用。

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

真挚地!

在此处输入图像描述

4

1 回答 1

0

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

如果您选择命令行,请执行以下步骤:

  1. 生成解决方案文件

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

  3. 构建解决方案

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

于 2017-08-28T15:11:23.607 回答