pbrt-v3
pbrt-v3 copied to clipboard
pbrt-v3 failed to build due to error MSB8066 using MSVC for ARM64EC target on Windows
Hi All,
pbrt-v3 failed to build due to error error MSB8066: Custom build for 'F:\gitP\mmp\pbrt-v3\build_arm64ec\CMakeFiles\c541becc1f2c5fefb64230479ede90f9\eLut.h.rule;F:\gitP\mmp\pbrt-v3\build_arm64ec\CMakeFiles\c541becc1f2c5fefb64230479ede90f9\toFloat.h.rule' exited with code -1073741819. using MSVC for ARM64EC target on Windows. Could you please help look at this issue?
Repro steps:
- git clone https://github.com/mmp/pbrt-v3 F:\gitP\mmp\pbrt-v3
- mkdir build_arm64ec && cd build_arm64ec
- cmake -G "Visual Studio 16 2019" -A ARM64EC -DCMAKE_SYSTEM_VERSION=10.0.22618.0 -DCMAKE_BUILD_TYPE=Release ..
- msbuild /m /p:Platform=ARM64EC /p:Configuration=Release PBRT-V3.sln /t:Rebuild
Build log: build_arm64ec_2.log
Expected result: build successfully.
Actural result: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'F:\gitP\mmp\pbrt-v3\build_arm64ec\CMakeFiles\c541becc1f2c5fefb64230479ede90f9\eLut.h.rule;F:\gitP\mmp\pbrt-v3\build_arm64ec\CMakeFiles\c541becc1f2c5fefb64230479ede90f9\toFloat.h.rule' exited with code -1073741819. [F:\gitP\mmp\pbrt-v3\build_arm64ec\src\ext\openexr\IlmBase\Half\Half.vcxproj]
The issue seems to be in the third-party OpenEXR library. You might try updating it to a more recent release (the version used in pbrt-v3 dates to 2018, so I could imagine OpenEXR's Windows + ARM64 support has improved since then.)