Closed bramford closed 3 years ago
I managed to quash the WARNINGs by changing the lines from PublicAdditionalLibraries.Add
to PublicSystemLibraries.Add
:
PublicSystemLibraries.Add("cudart_static");
PublicSystemLibraries.Add("cuda");
The same end result failure occurs. Here's the log:
[2021.03.23-21.40.41:561][ 39]Running /home/bramford/Documents/git/github/ImmortalEmperor/UnrealEngine/Engine/Binaries/DotNET/UnrealBuildTool.exe -projectfiles -project="/home/bramford/Documents/git/github/newgameplus/PixelStreamingLinux3/
PixelStreamingLinux3.uproject" -game -engine -progress
[2021.03.23-21.40.41:661][ 39]
[2021.03.23-21.40.41:661][ 39]Running Mono...
[2021.03.23-21.40.41:661][ 39]
[2021.03.23-21.40.41:761][ 39]Fixing inconsistent case in filenames.
[2021.03.23-21.40.41:762][ 39]Setting up Mono
[2021.03.23-21.40.41:762][ 39]~/Documents/git/github/ImmortalEmperor/UnrealEngine/Engine ~/Documents/git/github/ImmortalEmperor/UnrealEngine/Engine/Binaries/Linux
[2021.03.23-21.40.42:162][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.40.45:365][ 39]Generating data for project indexing...
[2021.03.23-21.40.55:739][ 39]Generating data for project indexing... 78%
[2021.03.23-21.40.57:856][ 39]Generating data for project indexing... 100%
[2021.03.23-21.40.57:856][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.40.59:558][ 39]Generating data for project indexing...
[2021.03.23-21.41.09:835][ 39]Generating data for project indexing... 89%
[2021.03.23-21.41.10:744][ 39]Generating data for project indexing... 100%
[2021.03.23-21.41.10:744][ 39]Writing project files...
[2021.03.23-21.41.10:947][ 39]Writing project files... 100%
[2021.03.23-21.41.10:947][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.41.12:549][ 39]Generating data for project indexing...
[2021.03.23-21.41.22:834][ 39]Generating data for project indexing... 87%
[2021.03.23-21.41.24:041][ 39]Generating data for project indexing... 100%
[2021.03.23-21.41.24:041][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.41.25:743][ 39]Generating data for project indexing...
[2021.03.23-21.41.36:029][ 39]Generating data for project indexing... 87%
[2021.03.23-21.41.37:243][ 39]Generating data for project indexing... 100%
[2021.03.23-21.42.16:784][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.42.18:386][ 39]Generating data for project indexing...
[2021.03.23-21.42.28:772][ 39]Generating data for project indexing... 87%
[2021.03.23-21.42.29:983][ 39]Generating data for project indexing... 100%
[2021.03.23-21.42.35:689][ 39]Discovering modules, targets and source code for project...
[2021.03.23-21.42.37:291][ 39]Generating data for project indexing...
[2021.03.23-21.42.47:679][ 39]Generating data for project indexing... 84%
[2021.03.23-21.42.49:092][ 39]Generating data for project indexing... 100%
[2021.03.23-21.42.49:092][ 39]Writing project files...
[2021.03.23-21.42.51:097][ 39]Writing project files... 100%
[2021.03.23-21.42.51:355][ 39]LogSlate: Window 'Unreal Project Browser' being destroyed
[2021.03.23-21.42.51:389][ 40]Cmd: QUIT_EDITOR
[2021.03.23-21.42.51:389][ 40]LogCore: Engine exit requested (reason: UUnrealEdEngine::CloseEditor())
[2021.03.23-21.42.51:399][ 40]LogCore: Engine exit requested (reason: EngineExit() was called; note: exit was already requested)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_NZ:en",
LC_ALL = (unset),
LC_NUMERIC = "en_US",
LANG = "en_NZ.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_NZ.UTF-8").
[2021.03.23-21.42.51:469][ 40]LogEditorSessionSummary: EditorSessionSummary sent report. Type=Shutdown, SessionId={7C5FF12E-3306-4C77-B727-111B97B56C99}
[2021.03.23-21.42.51:475][ 40]LogSlate: Slate User Destroyed. User Index 0, Is Virtual User: 0
[2021.03.23-21.42.51:476][ 40]LogExit: Preparing to exit.
I also suspected that the cuda library path was not known during runtime so I tried patching the RPATH
with this command:
patchelf --force-rpath --set-rpath '${ORIGIN}:${ORIGIN}/..:${ORIGIN}/../../../Engine/Binaries/ThirdParty/Qualcomm/Linux:${ORIGIN}/../../../Engine/Binaries/ThirdParty/OpenVR/OpenVRv1_5_17/linux64:${ORIGIN}/../../../Engine/Binaries/ThirdParty/PhysX3/Linux/x86_64-unknown-linux-gnu:/usr/local/cuda/lib64:/usr/local/cuda/cudart' UE4Editor
Didn't help
@ImmortalEmperor
Environment: Debian Buster 11 (same issue on Ubuntu 18.04 LTS)
I successfully compiled
4.25-pixelstreaming
after:/usr/local/cuda
UnrealEngine/Engine/Plugins/CUDA/Source/CUDA.Build.cs
:Runnin
UE4Editor
works but when I try to create a new project, it gets stuck and 90% then returns to 80% and works its way back to 90% only to rinse and repeat.The logs lead me to believe that the cuda library path is not used by the runtime despite compilation working on the same machine: