I’m building a game with an UnrealCV inside.
I have UE 4.21 and downloaded UnrealCV from the 4.22 branch (cause it looks to be the closest version to 4.21)
I’m running UE on macOS 10.14.6, Xcode 11.3.1
I placed the unrealcv folder inside the Plugins folder, then added a C++ class, then created the Xcode project and run compilation in it.
I finished with the following logs (taken from Xcode’s console on Cmd+5):
Setting up Mono
Building MyProject3Editor…
2020-12-15 12:37:54.497 defaults[26054:279270]
The domain/default pair of (com.apple.dt.Xcode, IDEBuildOperationMaxNumberOfConcurrentCompileTasks) does not exist
Building ShaderCompileWorker…
Creating makefile for ShaderCompileWorker (no existing makefile)
ERROR: Couldn’t find target rules file for target ‘ShaderCompileWorker’ in rules assembly ‘UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’.
Location: /Volumes/Update/EpicGames/UE_4.21/Engine/Intermediate/Build/BuildRules/UE4Rules.dll
Target rules found:
(see …/Programs/UnrealBuildTool/Log.txt for full exception trace)
Running command : Engine/Binaries/DotNET/UnrealBuildTool.exe MyProject3Editor Mac Development /Volumes/Update/work/ue4/Med_room_test/MyProject3.uproject -buildscw
Creating makefile for MyProject3Editor (source directory changed)
Performing 2 actions (8 in parallel)
[1/2] Compile AnnotationComponent.cpp
[2/2] Link UE4Editor-UnrealCV.dylib
Undefined symbols for architecture x86_64:
“FShaderResource::InitializeShaderRHI()”, referenced from:
FScreenPS::SetParameters(FRHICommandList&, FRHISamplerState, FRHITexture) in TextureReader.cpp.o
“GetGlobalShaderMap(EShaderPlatform)”, referenced from:
UE4Function_Private::TFunctionRefCaller<ResizeFastReadTexture2DAsync(TRefCountPtr<FRHITexture2D>, int, int, TFunction<void (FColor*, int, int)>)::$_1, void (FRHICommandListImmediate&, TRefCountPtr<FRHITexture2D>)>::Call(void*, FRHICommandListImmediate&, TRefCountPtr<FRHITexture2D>&) in TextureReader.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)**
ERROR: UBT ERROR: Failed to produce item: /Volumes/Update/work/ue4/Med_room_test/Plugins/unrealcv/Binaries/Mac/UE4Editor-UnrealCV.dylib
(see …/Programs/UnrealBuildTool/Log.txt for full exception trace)
Total build time: 27.86 seconds (Local executor: 0.00 seconds)
Command /Volumes/Update/EpicGames/UE_4.21/Engine/Build/BatchFiles/Mac/Build.sh failed with exit code 5
The error tells that linker failed to resolve some symbols dependencies.
Could someone advise how to overcome this?