Linking issue when building UE5.1.1 on Ubuntu 20.04

I’ve clone the repo on an Ubuntu 20.04 machine and I’m having trouble build a fresh UE checkout of 5.1.1. I’m following the basic sequence of

./Setup.sh --force
./GenerateProjectFiles.sh
make

But this ends after about 30 minutes with the followings errors:

[3237/3740] Link (lld) libUnrealEditor-OpenColorIO.so
ld.lld: error: undefined symbol: OpenColorIO_v2_2::GpuShaderDesc::CreateShaderDesc()
>>> referenced by OpenColorIOColorTransform.cpp:260 (./../Plugins/Compositing/OpenColorIO/Source/OpenColorIO/Private/OpenColorIOColorTransform.cpp:260)
>>>               /opt/src/EpicGames/UnrealEngine/Engine/Plugins/Compositing/OpenColorIO/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/OpenColorIO/Module.OpenColorIO.cpp.o:(UOpenColorIOColorTransform::CacheResourceTextures())
>>> referenced by OpenColorIOColorTransform.cpp:583 (./../Plugins/Compositing/OpenColorIO/Source/OpenColorIO/Private/OpenColorIOColorTransform.cpp:583)
>>>               /opt/src/EpicGames/UnrealEngine/Engine/Plugins/Compositing/OpenColorIO/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/OpenColorIO/Module.OpenColorIO.cpp.o:(UOpenColorIOColorTransform::UpdateShaderInfo(FString&, FString&, FString&))
ld.lld: error: undefined symbol: OpenColorIO_v2_2::GpuShaderCreator::setLanguage(OpenColorIO_v2_2::GpuLanguage)
>>> referenced by OpenColorIOColorTransform.cpp:261 (./../Plugins/Compositing/OpenColorIO/Source/OpenColorIO/Private/OpenColorIOColorTransform.cpp:261)
>>>               /opt/src/EpicGames/UnrealEngine/Engine/Plugins/Compositing/OpenColorIO/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/OpenColorIO/Module.OpenColorIO.cpp.o:(UOpenColorIOColorTransform::CacheResourceTextures())
>>> referenced by OpenColorIOColorTransform.cpp:584 (./../Plugins/Compositing/OpenColorIO/Source/OpenColorIO/Private/OpenColorIOColorTransform.cpp:584)
>>>               /opt/src/EpicGames/UnrealEngine/Engine/Plugins/Compositing/OpenColorIO/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/OpenColorIO/Module.OpenColorIO.cpp.o:(UOpenColorIOColorTransform::UpdateShaderInfo(FString&, FString&, FString&))
ld.lld: error: undefined symbol: OpenColorIO_v2_2::GpuShaderCreator::setFunctionName(char const*)
>>> referenced by OpenColorIOColorTransform.cpp:262 (./../Plugins/Compositing/OpenColorIO/Source/O
...

Any ideas where to start looking for issues? Is there a debug or more verbose log I can look at to see where these symbols should be defined?

I fixed this issue - it turns out I had an incorrect dependencies XML in the source when I compiled so OpenColorIO 2.1 was being installed as a dependency but the code was using the OpenColorIO 2.2 namespace.

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