pbrt-v4 build on windows 11 cmake generation requires target “zlibstatic” that is not in any export set. (English)

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 Warnning:

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)

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据

zh_CNCN