Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RafSet047 opened this issue Apr 5, 2024 · 1 comment
Open

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

RafSet047 opened this issue Apr 5, 2024 · 1 comment

Comments

@RafSet047
Copy link

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
Copy link
Owner

getnamo commented Apr 11, 2024

Add CoreUtility to your build.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants