Compiling ShaderCompilerWorker in UE5.2.1 failed for Mac OS 13.5.2

There is now linking failure for ShaderCompileWorker-RenderCore.dylib.
And it also mentioning about some deprecation warning concerning home-brew install version of libTiff…
But the deadly failure are here:

Undefined symbols for architecture arm64:
  "Imf_3_2::OutputFile::writePixels(int)", referenced from:
      FExrImageWrapper::Compress(int) in Module.ImageWrapper.cpp.o
  "Imf_3_2::OutputFile::setFrameBuffer(Imf_3_2::FrameBuffer const&)", referenced from:
      FExrImageWrapper::Compress(int) in Module.ImageWrapper.cpp.o
  "Imf_3_2::OutputFile::OutputFile(Imf_3_2::OStream&, Imf_3_2::Header const&, int)", referenced from:
      FExrImageWrapper::Compress(int) in Module.ImageWrapper.cpp.o
  "Imf_3_2::OutputFile::~OutputFile()", referenced from:
      FExrImageWrapper::Compress(int) in Module.ImageWrapper.cpp.o

And it doesn’t matter which Xcode I’m using to build now.(I’m aligning to 14.1 currently)

Does anyone know how to fix this?

ok, I found out the root of the problem now.
The ILMImf version came along with openexr, which is a dependency somehow for ffmpeg in homebrew package manager. I can confirm that uninstall openexr in homebrew resolve this problem.
Then there comes another problem about undefined symbol in OpenSSL, which is also conflicting with the version came with homebrew…
So I set environment variable CPATH=“” in the UE5 schema to ignore the Homebrew’s library to make it compiled finally.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.