{"id":2259,"date":"2025-01-06T22:42:41","date_gmt":"2025-01-06T13:42:41","guid":{"rendered":"https:\/\/remoooo.com\/?p=2259"},"modified":"2025-01-07T02:36:26","modified_gmt":"2025-01-06T17:36:26","slug":"pbrt-v4-build-on-windows-11-cmake-generation-requires-target-zlibstatic-that-is-not-in-any-export-set-english","status":"publish","type":"post","link":"https:\/\/remoooo.com\/en\/pbrt-v4-build-on-windows-11-cmake-generation-requires-target-zlibstatic-that-is-not-in-any-export-set-english\/","title":{"rendered":"pbrt-v4 build on windows 11 cmake generation requires target \u201czlibstatic\u201d that is not in any export set. (English)"},"content":{"rendered":"<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>link same issue: <a href=\"https:\/\/github.com\/mmp\/pbrt-v4\/issues\/467\">https:\/\/github.com\/mmp\/pbrt-v4\/issues\/467<\/a><\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>My Env: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Win11 24H2<\/li>\n\n\n\n<li>AMD Ryzen 9 5900X 12-Core Processor<\/li>\n\n\n\n<li>Microsoft Visual Studio Community 2022 17.12.3<\/li>\n\n\n\n<li>VisualStudio.17.Release\/17.12.3+35527.113<\/li>\n\n\n\n<li>Microsoft .NET Framework 4.8.09032<\/li>\n\n\n\n<li>Visual C++ 2022 00482-90000-00000-AA244<\/li>\n\n\n\n<li>Microsoft Visual C++ 2022<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Log:<\/p>\n\n\n\n<p>1&gt; [CMake] CMake Error: install(EXPORT \u201cPtex\u201d \u2026) includes target \u201cPtex_static\u201d which requires target \u201czlibstatic\u201d that is not in any export set.<br>1&gt; [CMake] \u2014 Generating done (0.2s)<br>1&gt; [CMake] CMake Generate step failed. Build files cannot be regenerated correctly.<\/p>\n<\/blockquote>\n\n\n\n<p>Place the following file to pbrt4 dir and double click to compile.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-471a939f-019d-4f2d-8876-18d8093f2f86\" href=\"https:\/\/remoooo.com\/wp-content\/uploads\/make_zlib_deps_main.zip\">make_zlib_deps_main<\/a><a href=\"https:\/\/remoooo.com\/wp-content\/uploads\/make_zlib_deps_main.zip\" class=\"wp-block-file__button wp-element-button\" download aria-describedby=\"wp-block-file--media-471a939f-019d-4f2d-8876-18d8093f2f86\">download<\/a><\/div>\n\n\n\n<p>Then <code>cd .\/build\/pbrt4deploy<\/code> -> <code>.\/pbrt<\/code><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Log:<\/p>\n\n\n\n<p>PS G:\\pbrt\\pbrt-v4\\pbrt-v4\\build\\pbrt4deploy\\bin&gt; .\/pbrt<br>pbrt version 4 (built Jan 6 2025 at 21:39:19)<br>Copyright (c)1998-2021 Matt Pharr, Wenzel Jakob, and Greg Humphreys.<br>The source code to pbrt (but <em>not<\/em> the book contents) is covered by the Apache 2.0 License.<br>See the file LICENSE.txt for the conditions of the license.<\/p>\n<\/blockquote>\n\n\n\n<p><\/p>\n\n\n\n<p>Then maybe you will get the following Warning:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>link to: <a href=\"https:\/\/www.janwalter.org\/rnd\/blog\/rnd-pbrt-v4-002\/\">https:\/\/www.janwalter.org\/rnd\/blog\/rnd-pbrt-v4-002\/<\/a><\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Log:<\/p>\n\n\n\n<p>Found CUDA but PBRT_OPTIX7_PATH is not set. Disabling GPU compilation<\/p>\n<\/blockquote>\n\n\n\n<p>Make sure that the SDK Path is correct. (-DPBRT_OPTIX7_PATH)<\/p>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>link same issue: https:\/\/github.com\/mmp\/pbrt-v4\/issues\/ [\u2026]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2259","post","type-post","status-publish","format-standard","hentry","category-article"],"_links":{"self":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/comments?post=2259"}],"version-history":[{"count":8,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2259\/revisions"}],"predecessor-version":[{"id":2271,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/posts\/2259\/revisions\/2271"}],"wp:attachment":[{"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/media?parent=2259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/categories?post=2259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/remoooo.com\/en\/wp-json\/wp\/v2\/tags?post=2259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}