简体   繁体   English

如何使用Visual Studio 2017在Windows10上安装pbrt-v3?

[英]How to install pbrt-v3 on windows10 with Visual Studio 2017?

I fork the repo and download it, then open it in the Visual Studio 2017 community and did as follows: 我分叉存储库并下载它,然后在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

I can't find the directory like *\\bin, also in cmd "pbrt" dosen't work. 我找不到类似* \\ bin的目录,在cmd“ pbrt”中也无法正常工作。

Am I wrong with build?and solution! 我在构建和解决方案上错了吗!

Sincerely! 祝商祺!

在此处输入图片说明

Use the cmake-gui or cmake command line tool to generate Visual Studio solution file, then build the solution. 使用cmake-gui或cmake命令行工具生成Visual Studio解决方案文件,然后构建解决方案。

If you choose the command line, here are steps: 如果选择命令行,请执行以下步骤:

  1. Generate solution files 生成解决方案文件

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

  3. Buile the solution 解决方案

PS: from the readme in pbrt-v3 project, you need run git submodule update --init --recursive to fetch the dependencies. PS:从pbrt-v3项目的自述文件中,您需要运行git submodule update --init --recursive来获取依赖项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM