0

我已经使用 Visual Studio 2017 克隆了pbrt-v3 存储库。我尝试编译一个包含 Transform.h 的项目,但我从链接器收到以下错误:

LNK2019 未解析的外部符号“int __cdecl Imf::globalThreadCount(void)”(?globalThreadCount@Imf@@YAHXZ) 在函数“class pbrt::RGBSpectrum * __cdecl pbrt::ReadImageEXR(class std::basic_string,class std::分配器 > const &,int *,int *,class pbrt::Bounds2 *,class pbrt::Bounds2 *)" (?ReadImageEXR@pbrt@@YAPEAVRGBSpectrum@1@AEBV?$basic_string@DU?$char_traits@D@std @@V?$allocator@D@2@@std@@PEAH1PEAV?$Bounds2@H@1@2@Z)

我已经使用 CMake for Visual Studio 编译并安装了 openexr。我已经添加

libpbrt.lib libglog_static.lib IlmThread-2_2.lib Half.lib Iex-2_2.lib IexMath-2_2.lib Imath-2_2.lib

作为项目设置中的附加依赖项。我无法弄清楚在哪个库globalThreadCount中定义。那么,我错过了哪个图书馆?

4

0 回答 0