link same issue: https://github.com/mmp/pbrt-v4/issues/467
My Env:
- Win11 24H2
- AMD Ryzen 9 5900X 12-Core Processor
- Microsoft Visual Studio Community 2022 17.12.3
- VisualStudio.17.Release/17.12.3+35527.113
- Microsoft .NET Framework 4.8.09032
- Visual C++ 2022 00482-90000-00000-AA244
- Microsoft Visual C++ 2022
Log:
1> [CMake] CMake Error: install(EXPORT “Ptex” …) includes target “Ptex_static” which requires target “zlibstatic” that is not in any export set.
1> [CMake] — Generating done (0.2s)
1> [CMake] CMake Generate step failed. Build files cannot be regenerated correctly.
Place the following file to pbrt4 dir and double click to compile.
Then cd ./build/pbrt4deploy
-> ./pbrt
Log:
PS G:\pbrt\pbrt-v4\pbrt-v4\build\pbrt4deploy\bin> ./pbrt
pbrt version 4 (built Jan 6 2025 at 21:39:19)
Copyright (c)1998-2021 Matt Pharr, Wenzel Jakob, and Greg Humphreys.
The source code to pbrt (but not the book contents) is covered by the Apache 2.0 License.
See the file LICENSE.txt for the conditions of the license.
Then maybe you will get the following Warning:
link to: https://www.janwalter.org/rnd/blog/rnd-pbrt-v4-002/
Log:
Found CUDA but PBRT_OPTIX7_PATH is not set. Disabling GPU compilation
Make sure that the SDK Path is correct. (-DPBRT_OPTIX7_PATH)
Leave a Reply