getnamo / SocketIOClient-Unreal

Socket.IO client plugin for the Unreal Engine.
Other
881 stars 239 forks source link

Unable to build in UE5.3.2(Linux) #414

Open RafSet047 opened 6 months ago

RafSet047 commented 6 months ago

Hi there, I have a project in the ${HOME}/Documents/Unreal Projects/Turret2 as root directory of the project. I created Plugins directory in the root directory and cloned the project with third party libs into that, now it is located in ${HOME}/Documents/Unreal Projects/Turret2/Plugins/SocketIOClient-Unreal. As it is mentioned in the docs, I updated the Turret2.Build.cs file where I included the "SocketIOClient", "SocketIOLib", "Json", "SIOJson" as the public dependencies, after that in the UE I clicked to compile the code and got this linker errors, where it complains that it is unable to locate lUnrealEditor-CoreUtility. I even tried to add the CoreUtility in the .cs file as well, but nothing happened. This are the logs

[2024.04.05-16.34.44:956][893]Candidate modules for hot reload:
[2024.04.05-16.34.44:956][893]  Turret2
[2024.04.05-16.34.44:964][893]Launching UnrealBuildTool... [/home/user/workspace/UnrealEngine-5.3.2/Engine/Build/BatchFiles/Linux/Build.sh  -ModuleWithSuffix=Turret2,3712 Turret2Editor Linux Development -Project="/home/user/Documents/Unreal Projects/Turret2/Turret2.uproject" "/home/user/Documents/Unreal Projects/Turret2/Turret2.uproject"  -IgnoreJunk -progress]
[2024.04.05-16.34.44:964][893]Warning: Starting HotReload took  0.1s.
[2024.04.05-16.34.46:595][969]CompilerResultsLog: New page: Compilation - Apr 6, 2024, 12:34:46 AM
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Setting up bundled DotNet SDK
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll -ModuleWithSuffix=Turret2,3712 Turret2Editor Linux Development -Project=/home/user/Documents/Unreal Projects/Turret2/Turret2.uproject /home/user/Documents/Unreal Projects/Turret2/Turret2.uproject -IgnoreJunk -progress
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Log file: /home/user/.config/Epic/UnrealBuildTool/Log.txt
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress push 5%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Generating code...' 0%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Generating code...' 67%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Generating code...' 100%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress pop
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Building Turret2Editor...
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Determining max actions to execute in parallel (16 physical cores, 16 logical cores)
[2024.04.05-16.34.46:596][969]CompilerResultsLog:   Executing up to 16 processes, one per physical core
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Compiling C++ source code...' 0%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: ------ Building 7 action(s) started ------
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Compiling C++ source code...' 14%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: [1/7] Link (lld) libUnrealEditor-CoreUtility-0017.so
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Compiling C++ source code...' 29%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: [2/7] Link (lld) libUnrealEditor-SIOJson-0017.so
[2024.04.05-16.34.46:596][969]CompilerResultsLog: @progress 'Compiling C++ source code...' 43%
[2024.04.05-16.34.46:596][969]CompilerResultsLog: ld.lld: error: unable to find library -lUnrealEditor-CoreUtility
[2024.04.05-16.34.46:596][969]CompilerResultsLog: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
[2024.04.05-16.34.46:596][969]CompilerResultsLog: [3/7] Link (lld) libUnrealEditor-SocketIOLib-0017.so
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Total time in Parallel executor: 0.54 seconds
[2024.04.05-16.34.46:596][969]CompilerResultsLog: Total execution time: 1.52 seconds
[2024.04.05-16.34.46:596][969]LogMainFrame: MainFrame: Module compiling took 1.702 seconds
[2024.04.05-16.34.46:596][969]Warning: HotReload failed, recompile failed

How can I resolve this issue, thanks in the advance

getnamo commented 5 months ago

Add CoreUtility to your build.cs