sudo apt -y update sudo apt -y install git cmake cmake-curses-gui cmake-gui
Windows での マイクロソフト C++ ビルドツール (Build Tools) のインストール手順: 別ページで説明している.
URL: https://github.com/mmp/pbrt-v4
Windows での手順を下に示す.Ubuntu でも同様の手順になる.
mkdir c:\tools cd c:\tools rmdir /s /q pbrt-v4
「--recursive」を付けている.glog, openexr, ptex, zlib があわせてダウンロードされる.
cd c:\tools git clone --recursive https://github.com/mmp/pbrt-v4
cd c:\tools cd pbrt-v4 rmdir /s /q build mkdir build cd build cmake -G "Visual Studio 16 2019" -A x64 -T host=x64 ..
エラーメッセージが出ていないこと
cmake --build . --config RELEASE --target INSTALL
エラーメッセージが出ていないこと
cd c:\tools git clone --recursive https://github.com/mmp/pbrt-v4-scenes
cd c:\tools cd pbrt-v4 "c:\Program Files\PBRT-V4\bin\pbrt.exe" --outfile a.png ..\pbrt-v4-scenes\killeroos\killeroo-simple.pbrt