Closed t0msk closed 1 year ago
Looks like UE5.0 plugin has the wrong opus include for linux, try to use the latest master branch plugin and compile for UE5.0, specifically it contains this update: https://github.com/getnamo/SocketIOClient-Unreal/commit/65d7253aa3a225fbe58229995971fd474c641063
So I just cloned and checkouted that commit like this:
[tomsk@tomsk-PC Plugins]$ git clone https://github.com/getnamo/SocketIOClient-Unreal.git --recurse-submodules
Cloning into 'SocketIOClient-Unreal'...
remote: Enumerating objects: 6018, done.
remote: Counting objects: 100% (554/554), done.
remote: Compressing objects: 100% (243/243), done.
remote: Total 6018 (delta 357), reused 471 (delta 311), pack-reused 5464
Receiving objects: 100% (6018/6018), 25.77 MiB | 20.63 MiB/s, done.
Resolving deltas: 100% (3634/3634), done.
Submodule 'Source/ThirdParty/asio' (https://github.com/getnamo/asio) registered for path 'Source/ThirdParty/asio'
Submodule 'Source/ThirdParty/rapidjson' (https://github.com/getnamo/rapidjson) registered for path 'Source/ThirdParty/rapidjson'
Submodule 'Source/ThirdParty/websocketpp' (https://github.com/getnamo/websocketpp) registered for path 'Source/ThirdParty/websocketpp'
Cloning into '/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/asio'...
remote: Enumerating objects: 48261, done.
remote: Total 48261 (delta 0), reused 0 (delta 0), pack-reused 48261
Receiving objects: 100% (48261/48261), 14.92 MiB | 10.34 MiB/s, done.
Resolving deltas: 100% (33876/33876), done.
Cloning into '/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson'...
remote: Enumerating objects: 21012, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 21012 (delta 3), reused 8 (delta 3), pack-reused 21002
Receiving objects: 100% (21012/21012), 24.95 MiB | 20.46 MiB/s, done.
Resolving deltas: 100% (15795/15795), done.
Cloning into '/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/websocketpp'...
remote: Enumerating objects: 12239, done.
remote: Counting objects: 100% (2855/2855), done.
remote: Compressing objects: 100% (394/394), done.
remote: Total 12239 (delta 2745), reused 2461 (delta 2461), pack-reused 9384
Receiving objects: 100% (12239/12239), 8.02 MiB | 10.07 MiB/s, done.
Resolving deltas: 100% (7692/7692), done.
Submodule path 'Source/ThirdParty/asio': checked out 'a59ab452265e3f9fdb77dd52aa1064f14eca0989'
Submodule path 'Source/ThirdParty/rapidjson': checked out 'deb1566fc59291e46044664d7510260f503c76b6'
Submodule 'thirdparty/gtest' (https://github.com/google/googletest.git) registered for path 'Source/ThirdParty/rapidjson/thirdparty/gtest'
Cloning into '/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/thirdparty/gtest'...
remote: Enumerating objects: 25296, done.
remote: Total 25296 (delta 0), reused 0 (delta 0), pack-reused 25296
Receiving objects: 100% (25296/25296), 11.26 MiB | 12.27 MiB/s, done.
Resolving deltas: 100% (18679/18679), done.
Submodule path 'Source/ThirdParty/rapidjson/thirdparty/gtest': checked out 'ba96d0b1161f540656efdaed035b3c062b60e006'
Submodule path 'Source/ThirdParty/websocketpp': checked out '72e2760a4cceef2d270450746ce90efce9374eb8'
[tomsk@tomsk-PC Plugins]$ cd SocketIOClient-Unreal/
[tomsk@tomsk-PC SocketIOClient-Unreal]$ git checkout 65d7253aa3
Note: switching to '65d7253aa3'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 65d7253 change libopus include
[tomsk@tomsk-PC SocketIOClient-Unreal]$ git branch
* (HEAD detached at 65d7253)
master
and tried to recompile and got another error:
Running /opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh Development Linux -Project="/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Setting up bundled DotNet SDK
Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll Development Linux -Project=/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: /home/tomsk/.config/Epic/UnrealBuildTool/Log.txt
Using 'git status' to determine working set for adaptive non-unity build (/home/tomsk/Projects/Unreal/BritishVsPirates 5.0).
Invalidating makefile for BritishVsPiratesEditor (source file removed)
@progress push 5%
Parsing headers for BritishVsPiratesEditor
Running UnrealHeaderTool "/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject" "/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Intermediate/Build/Linux/B4D820EA/BritishVsPiratesEditor/Development/BritishVsPiratesEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="/home/tomsk/.config/Epic/UnrealBuildTool/Log_UHT.txt" -installed
Reflection code generated for BritishVsPiratesEditor in 106.6688011 seconds
@progress pop
Building BritishVsPiratesEditor...
Determining max actions to execute in parallel (4 physical cores, 4 logical cores)
Executing up to 4 processes, one per physical core
Requested 1.5 GB free memory per action, 5.82 GB available: limiting max parallel actions to 3
Building 15 actions with 3 processes...
[1/15] Compile Module.CoreUtility.gen.cpp
[2/15] Compile Module.SIOJson.gen.cpp
[3/15] Compile Module.CoreUtility.cpp
[4/15] Compile Module.SIOJson.cpp
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SIOJson/Module.SIOJson.cpp:2:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SIOJson/Private/SIOJConvert.cpp:331:16: error: no member named 'ImportText_Direct' in 'FProperty'
Property->ImportText_Direct(ImportTextPtr, OutValue, nullptr, PPF_None);
~~~~~~~~ ^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SIOJson/Private/SIOJConvert.cpp:338:15: error: no member named 'ImportText_Direct' in 'FProperty'
Property->ImportText_Direct(ImportTextPtr, OutValue, nullptr, PPF_None);
~~~~~~~~ ^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SIOJson/Private/SIOJConvert.cpp:373:19: error: no member named 'ImportText_Direct' in 'FProperty'
if (Property->ImportText_Direct(*JsonValue->AsString(), OutValue, nullptr, PPF_None) == nullptr)
~~~~~~~~ ^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SIOJson/Private/SIOJConvert.cpp:383:18: error: no member named 'ImportText_Direct' in 'FProperty'
if (Property->ImportText_Direct(*JsonValue->AsString(), OutValue, nullptr, PPF_None) == nullptr)
~~~~~~~~ ^
4 errors generated.
[5/15] Compile Module.SocketIOClient.cpp
[6/15] Compile Module.SocketIOClient.gen.cpp
[7/15] Compile Module.SIOJEditorPlugin.gen.cpp
[8/15] Link (lld) libUnrealEditor-CoreUtility.so
[9/15] Compile Module.SIOJEditorPlugin.cpp
[10/15] Compile Module.SocketIOLib.cpp
[11/15] Link (lld) libUnrealEditor-SocketIOLib.so
LogInit: Warning: Still incompatible or missing module: SocketIOClient
LogInit: Warning: Still incompatible or missing module: SIOJson
LogInit: Warning: Still incompatible or missing module: SocketIOLib
LogInit: Warning: Still incompatible or missing module: CoreUtility
LogInit: Warning: Still incompatible or missing module: SIOJEditorPlugin
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.
LogModuleManager: Shutting down and abandoning module DesktopPlatform (56)
LogModuleManager: Shutting down and abandoning module PerforceSourceControl (54)
LogModuleManager: Shutting down and abandoning module SourceControl (53)
LogModuleManager: Shutting down and abandoning module PlatformCryptoOpenSSL (50)
LogModuleManager: Shutting down and abandoning module PlatformCryptoTypes (48)
LogModuleManager: Shutting down and abandoning module PlatformCrypto (46)
LogModuleManager: Shutting down and abandoning module PythonScriptPluginPreload (44)
LogModuleManager: Shutting down and abandoning module FastBuildController (42)
LogModuleManager: Shutting down and abandoning module AnimationModifiers (40)
LogModuleManager: Shutting down and abandoning module AudioEditor (38)
LogModuleManager: Shutting down and abandoning module PropertyEditor (37)
LogModuleManager: Shutting down and abandoning module Virtualization (34)
LogModuleManager: Shutting down and abandoning module MessageLog (33)
LogModuleManager: Shutting down and abandoning module TextureCompressor (30)
LogModuleManager: Shutting down and abandoning module RenderCore (28)
LogModuleManager: Shutting down and abandoning module Landscape (26)
LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (24)
LogModuleManager: Shutting down and abandoning module OpenGLDrv (22)
LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (20)
LogModuleManager: Shutting down and abandoning module Renderer (18)
LogModuleManager: Shutting down and abandoning module Engine (16)
LogModuleManager: Shutting down and abandoning module CoreUObject (14)
LogModuleManager: Shutting down and abandoning module SandboxFile (12)
LogModuleManager: Shutting down and abandoning module PakFile (10)
LogModuleManager: Shutting down and abandoning module RSA (9)
LogModuleManager: Shutting down and abandoning module NetworkFile (6)
LogModuleManager: Shutting down and abandoning module StreamingFile (4)
LogModuleManager: Shutting down and abandoning module StorageServerClient (2)
LogExit: Exiting.
LogInit: Tearing down SDL.
Exiting abnormally (error code: 1)
Looks like 5.1 isnt 5.0 backwards compatible, try checking out the newly pushed UE5.0 branch here: https://github.com/getnamo/SocketIOClient-Unreal/tree/UE5.0 I back ported the opus change but nothing else so it should compile.
Another errors :(
Building BritishVsPiratesEditor...
Determining max actions to execute in parallel (4 physical cores, 4 logical cores)
Executing up to 4 processes, one per physical core
Requested 1.5 GB free memory per action, 5.36 GB available: limiting max parallel actions to 3
Building 15 actions with 3 processes...
[1/15] Compile Module.CoreUtility.gen.cpp
[2/15] Compile Module.SIOJson.gen.cpp
[3/15] Compile Module.CoreUtility.cpp
[4/15] Compile Module.SIOJson.cpp
[5/15] Compile Module.SocketIOClient.cpp
[6/15] Compile Module.SocketIOLib.cpp
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:39:21: error: expected namespace name
using namespace rapidjson;
^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:41:45: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_message(message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers);
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:41:57: error: unknown type name 'Document'; did you mean 'rapidjsonsocketio::Document'?
void accept_message(message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers);
^~~~~~~~
rapidjsonsocketio::Document
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2506:34: note: 'rapidjsonsocketio::Document' declared here
typedef GenericDocument<UTF8<> > Document;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:43:55: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_bool_message(bool_message const& msg, Value& val)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:48:30: error: unknown type name 'Value'
void accept_null_message(Value& val)
^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:53:53: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_int_message(int_message const& msg, Value& val)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:58:59: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_double_message(double_message const& msg, Value& val)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:63:59: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_string_message(string_message const& msg, Value& val)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:65:49: error: use of undeclared identifier 'SizeType'
val.SetString(msg.get_string().data(), (SizeType)msg.get_string().length());
^
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:69:59: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_binary_message(binary_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:69:71: error: unknown type name 'Document'; did you mean 'rapidjsonsocketio::Document'?
void accept_binary_message(binary_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~~~~
rapidjsonsocketio::Document
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2506:34: note: 'rapidjsonsocketio::Document' declared here
typedef GenericDocument<UTF8<> > Document;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:72:9: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
Value boolVal;
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:75:9: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
Value numVal;
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:81:57: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_array_message(array_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:81:69: error: unknown type name 'Document'; did you mean 'rapidjsonsocketio::Document'?
void accept_array_message(array_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~~~~
rapidjsonsocketio::Document
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2506:34: note: 'rapidjsonsocketio::Document' declared here
typedef GenericDocument<UTF8<> > Document;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:85:13: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
Value child;
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:91:59: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
void accept_object_message(object_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:91:71: error: unknown type name 'Document'; did you mean 'rapidjsonsocketio::Document'?
void accept_object_message(object_message const& msg, Value& val, Document& doc, vector<shared_ptr<const string> >& buffers)
^~~~~~~~
rapidjsonsocketio::Document
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2506:34: note: 'rapidjsonsocketio::Document' declared here
typedef GenericDocument<UTF8<> > Document;
^
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/SocketIOLib/Module.SocketIOLib.cpp:3:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/SocketIOLib/Private/internal/sio_packet.cpp:95:13: error: unknown type name 'Value'; did you mean 'rapidjsonsocketio::Value'?
Value nameVal;
^~~~~
rapidjsonsocketio::Value
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient-Unreal/Source/ThirdParty/rapidjson/include/rapidjson/document.h:2110:31: note: 'rapidjsonsocketio::Value' declared here
typedef GenericValue<UTF8<> > Value;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[7/15] Compile Module.SIOJEditorPlugin.gen.cpp
[8/15] Link (lld) libUnrealEditor-CoreUtility.so
[9/15] Link (lld) libUnrealEditor-SIOJson.so
[10/15] Compile Module.SocketIOClient.gen.cpp
[11/15] Compile Module.SIOJEditorPlugin.cpp
[12/15] Link (lld) libUnrealEditor-SIOJEditorPlugin.so
LogInit: Warning: Still incompatible or missing module: SocketIOClient
LogInit: Warning: Still incompatible or missing module: SIOJson
LogInit: Warning: Still incompatible or missing module: SocketIOLib
LogInit: Warning: Still incompatible or missing module: CoreUtility
LogInit: Warning: Still incompatible or missing module: SIOJEditorPlugin
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.
LogModuleManager: Shutting down and abandoning module DesktopPlatform (56)
LogModuleManager: Shutting down and abandoning module PerforceSourceControl (54)
LogModuleManager: Shutting down and abandoning module SourceControl (53)
LogModuleManager: Shutting down and abandoning module PlatformCryptoOpenSSL (50)
LogModuleManager: Shutting down and abandoning module PlatformCryptoTypes (48)
LogModuleManager: Shutting down and abandoning module PlatformCrypto (46)
LogModuleManager: Shutting down and abandoning module PythonScriptPluginPreload (44)
LogModuleManager: Shutting down and abandoning module FastBuildController (42)
LogModuleManager: Shutting down and abandoning module AnimationModifiers (40)
LogModuleManager: Shutting down and abandoning module AudioEditor (38)
LogModuleManager: Shutting down and abandoning module PropertyEditor (37)
LogModuleManager: Shutting down and abandoning module Virtualization (34)
LogModuleManager: Shutting down and abandoning module MessageLog (33)
LogModuleManager: Shutting down and abandoning module TextureCompressor (30)
LogModuleManager: Shutting down and abandoning module RenderCore (28)
LogModuleManager: Shutting down and abandoning module Landscape (26)
LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (24)
LogModuleManager: Shutting down and abandoning module OpenGLDrv (22)
LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (20)
LogModuleManager: Shutting down and abandoning module Renderer (18)
LogModuleManager: Shutting down and abandoning module Engine (16)
LogModuleManager: Shutting down and abandoning module CoreUObject (14)
LogModuleManager: Shutting down and abandoning module SandboxFile (12)
LogModuleManager: Shutting down and abandoning module PakFile (10)
LogModuleManager: Shutting down and abandoning module RSA (9)
LogModuleManager: Shutting down and abandoning module NetworkFile (6)
LogModuleManager: Shutting down and abandoning module StreamingFile (4)
LogModuleManager: Shutting down and abandoning module StorageServerClient (2)
LogExit: Exiting.
LogInit: Tearing down SDL.
Exiting abnormally (error code: 1)
I just installed UE 5.1 and tried SocketIO client for version 5.1 and this is log:
LogInit: Warning: Incompatible or missing module: SocketIOClient
LogInit: Warning: Incompatible or missing module: SIOJson
LogInit: Warning: Incompatible or missing module: SocketIOLib
LogInit: Warning: Incompatible or missing module: CoreUtility
LogInit: Warning: Incompatible or missing module: SIOJEditorPlugin
LogInit: Initializing SDL.
LLVM Profile Error: Failed to write file "default.profraw": Permission denied
[tomsk@tomsk-PC Linux]$ LogInit: Initialized SDL 2.0.20 revision: (compiled against 2.0.20)
LogInit: Using SDL video driver 'x11'
LogInit: Display metrics:
LogInit: PrimaryDisplayWidth: 1920
LogInit: PrimaryDisplayHeight: 1080
LogInit: PrimaryDisplayWorkAreaRect:
LogInit: Left=64, Top=32, Right=1920, Bottom=976
LogInit: VirtualDisplayRect:
LogInit: Left=64, Top=0, Right=3200, Bottom=1024
LogInit: TitleSafePaddingSize: X=0.000 Y=0.000 Z=0.000 W=0.000
LogInit: ActionSafePaddingSize: X=0.000 Y=0.000 Z=0.000 W=0.000
LogInit: Number of monitors: 2
LogInit: Monitor 0
LogInit: Name: M2362D 23"
LogInit: ID: display0
LogInit: NativeWidth: 1920
LogInit: NativeHeight: 1080
LogInit: bIsPrimary: true
LogInit: Monitor 1
LogInit: Name: Philips 190B 19"
LogInit: ID: display1
LogInit: NativeWidth: 1280
LogInit: NativeHeight: 1024
LogInit: bIsPrimary: false
STUBBED: FDesktopPlatformLinux::GetNativeFeedbackContext at ./Developer/DesktopPlatform/Private/Linux/DesktopPlatformLinux.cpp:454 (GetNativeFeedbackContext)
Running /opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh Development Linux -Project="/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Setting up bundled DotNet SDK
chmod: changing permissions of '/opt/unreal-engine/Engine/Build/BatchFiles/Linux/../../../Binaries/ThirdParty/DotNet/6.0.302/linux/dotnet': Operation not permitted
LogInit: Warning: Still incompatible or missing module: SocketIOClient
LogInit: Warning: Still incompatible or missing module: SIOJson
LogInit: Warning: Still incompatible or missing module: SocketIOLib
LogInit: Warning: Still incompatible or missing module: CoreUtility
LogInit: Warning: Still incompatible or missing module: SIOJEditorPlugin
LogCore: Engine exit requested (reason: EngineExit() was called)
LogExit: Preparing to exit.
LogVirtualization: UE::Virtualization was shutdown
LogModuleManager: Shutting down and abandoning module DesktopPlatform (58)
LogModuleManager: Shutting down and abandoning module PerforceSourceControl (56)
LogModuleManager: Shutting down and abandoning module SourceControl (55)
LogModuleManager: Shutting down and abandoning module PlatformCryptoOpenSSL (52)
LogModuleManager: Shutting down and abandoning module PlatformCryptoTypes (50)
LogModuleManager: Shutting down and abandoning module PlatformCrypto (48)
LogModuleManager: Shutting down and abandoning module PythonScriptPluginPreload (46)
LogModuleManager: Shutting down and abandoning module FastBuildController (44)
LogModuleManager: Shutting down and abandoning module AnimationModifiers (42)
LogModuleManager: Shutting down and abandoning module AudioEditor (40)
LogModuleManager: Shutting down and abandoning module PropertyEditor (39)
LogModuleManager: Shutting down and abandoning module Virtualization (36)
LogModuleManager: Shutting down and abandoning module MessageLog (35)
LogModuleManager: Shutting down and abandoning module TextureCompressor (32)
LogModuleManager: Shutting down and abandoning module RenderCore (30)
LogModuleManager: Shutting down and abandoning module Landscape (28)
LogModuleManager: Shutting down and abandoning module SlateRHIRenderer (26)
LogModuleManager: Shutting down and abandoning module OpenGLDrv (24)
LogModuleManager: Shutting down and abandoning module AnimGraphRuntime (22)
LogModuleManager: Shutting down and abandoning module Renderer (20)
LogModuleManager: Shutting down and abandoning module Engine (18)
LogModuleManager: Shutting down and abandoning module CoreUObject (16)
LogModuleManager: Shutting down and abandoning module SandboxFile (14)
LogModuleManager: Shutting down and abandoning module PakFile (12)
LogModuleManager: Shutting down and abandoning module RSA (11)
LogModuleManager: Shutting down and abandoning module NetworkFile (8)
LogModuleManager: Shutting down and abandoning module StreamingFile (6)
LogModuleManager: Shutting down and abandoning module CookOnTheFly (4)
LogModuleManager: Shutting down and abandoning module StorageServerClient (2)
LogExit: Exiting.
LogInit: Tearing down SDL.
Exiting abnormally (error code: 1)
^C
[tomsk@tomsk-PC Linux]$ sudo /opt/unreal-engine/Engine/Build/BatchFiles/Linux/Build.sh Development Linux -Project="/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject" -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Setting up bundled DotNet SDK
Running command : dotnet Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll Development Linux -Project=/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject -TargetType=Editor -Progress -NoEngineChanges -NoHotReloadFromIDE
Log file: /root/.config/Epic/UnrealBuildTool/Log.txt
Using 'git status' to determine working set for adaptive non-unity build (/home/tomsk/Projects/Unreal/BritishVsPirates 5.0).
Invalidating makefile for BritishVsPiratesEditor (source file removed)
@progress push 5%
@progress 'Generating code...' 0%
@progress 'Generating code...' 33%
Parsing headers for BritishVsPiratesEditor
Running Internal UnrealHeaderTool "/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/BritishVsPirates.uproject" "/home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Intermediate/Build/Linux/B4D820EA/BritishVsPiratesEditor/Development/BritishVsPiratesEditor.uhtmanifest" -WarningsAsErrors -installed
Total of 34 written
Reflection code generated for BritishVsPiratesEditor in 3.0998798 seconds
@progress 'Generating code...' 67%
@progress 'Generating code...' 100%
@progress pop
------- Build details --------
Using toolchain located at '/opt/unreal-engine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu'.
Using clang (/opt/unreal-engine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/clang++) version 'clang version 13.0.1
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/unreal-engine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin' (string), 13 (major), 0 (minor), 1 (patch)
Using bundled libc++ standard C++ library.
Using lld linker
Using llvm-ar (/opt/unreal-engine/Engine/Extras/ThirdPartyNotUE/SDKs/HostLinux/Linux_x64/v20_clang-13.0.1-centos7/x86_64-unknown-linux-gnu/bin/llvm-ar) version 'LLVM (http://llvm.org/):
LLVM version 13.0.1
Optimized build.
Default target: x86_64-unknown-linux-gnu
Host CPU: haswell (string)'
Using fast way to relink circularly dependent libraries (no FixDeps).
------------------------------
Building BritishVsPiratesEditor...
[Upgrade]
[Upgrade] Using backward-compatible include order. The latest version of UE has changed the order of includes, which may require code changes. The current setting is:
[Upgrade] IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_0
[Upgrade] Suppress this message by setting 'IncludeOrderVersion = EngineIncludeOrderVersion.Unreal5_1;' in BritishVsPiratesEditor.Target.cs.
[Upgrade] Alternatively you can set this to 'EngineIncludeOrderVersion.Latest' to always use the latest include order. This will potentially cause compile errors when integrating new versions of the engine.
[Upgrade]
[Adaptive Build] Excluded from SIOJson unity file: SIOJConvert.cpp, SIOJRequestJSON.cpp, SIOJsonObject.cpp, SIOJsonValue.cpp, SIOJLibrary.cpp
[Adaptive Build] Excluded from SocketIOLib unity file: sio_client.cpp, sio_socket.cpp, sio_client_impl.cpp, sio_packet.cpp
[Adaptive Build] Excluded from CoreUtility unity file: CUFileComponent.cpp, CUBlueprintLibrary.cpp, CUMeasureTimer.cpp, CUOpusCoder.cpp
[Adaptive Build] Excluded from SIOJEditorPlugin unity file: SIOJ_BreakJson.cpp
Determining max actions to execute in parallel (4 physical cores, 4 logical cores)
Executing up to 4 processes, one per physical core
@progress 'Compiling C++ source code...' 0%
Building 25 actions with 4 processes...
@progress 'Compiling C++ source code...' 4%
[1/25] Compile CUOpusCoder.cpp
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient/Source/CoreUtility/Private/CUOpusCoder.cpp:1:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient/Source/CoreUtility/Public/CUOpusCoder.h:7:10: fatal error: 'ThirdParty/libOpus/opus-1.3.1-12/include/opus.h' file not found
#include "ThirdParty/libOpus/opus-1.3.1-12/include/opus.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
@progress 'Compiling C++ source code...' 8%
[2/25] Compile CUBlueprintLibrary.cpp
In file included from /home/tomsk/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient/Source/CoreUtility/Private/CUBlueprintLibrary.cpp:19:
/run/media/tomsk/Data/Projects/Unreal/BritishVsPirates 5.0/Plugins/SocketIOClient/Source/CoreUtility/Public/CUOpusCoder.h:7:10: fatal error: 'ThirdParty/libOpus/opus-1.3.1-12/include/opus.h' file not found
#include "ThirdParty/libOpus/opus-1.3.1-12/include/opus.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
@progress 'Compiling C++ source code...' 12%
[3/25] Compile Module.SIOJson.cpp
@progress 'Compiling C++ source code...' 16%
[4/25] Compile SIOJRequestJSON.cpp
@progress 'Compiling C++ source code...' 20%
[5/25] Compile SIOJsonObject.cpp
@progress 'Compiling C++ source code...' 24%
[6/25] Compile SIOJConvert.cpp
@progress 'Compiling C++ source code...' 28%
[7/25] Compile CUFileComponent.cpp
@progress 'Compiling C++ source code...' 32%
[8/25] Compile CUMeasureTimer.cpp
@progress 'Compiling C++ source code...' 36%
[9/25] Compile Module.CoreUtility.cpp
@progress 'Compiling C++ source code...' 40%
[10/25] Link (lld) libUnrealEditor-CoreUtility.so cancelled
@progress 'Compiling C++ source code...' 44%
[11/25] Compile SIOJsonValue.cpp
@progress 'Compiling C++ source code...' 48%
[12/25] Compile Module.SocketIOLib.cpp
@progress 'Compiling C++ source code...' 52%
[13/25] Compile SIOJLibrary.cpp
@progress 'Compiling C++ source code...' 56%
[14/25] Link (lld) libUnrealEditor-SIOJson.so cancelled
@progress 'Compiling C++ source code...' 60%
[15/25] Compile sio_client.cpp
@progress 'Compiling C++ source code...' 64%
[16/25] Compile Module.SIOJEditorPlugin.cpp
@progress 'Compiling C++ source code...' 68%
[17/25] Compile sio_packet.cpp
@progress 'Compiling C++ source code...' 72%
[18/25] Compile sio_socket.cpp
@progress 'Compiling C++ source code...' 76%
[19/25] Compile SIOJ_BreakJson.cpp
@progress 'Compiling C++ source code...' 80%
[20/25] Link (lld) libUnrealEditor-SIOJEditorPlugin.so cancelled
@progress 'Compiling C++ source code...' 84%
[21/25] Compile Module.SocketIOClient.cpp
@progress 'Compiling C++ source code...' 88%
[22/25] Compile sio_client_impl.cpp
@progress 'Compiling C++ source code...' 92%
[23/25] Link (lld) libUnrealEditor-SocketIOLib.so
@progress 'Compiling C++ source code...' 96%
[24/25] WriteMetadata BritishVsPiratesEditor.target cancelled
@progress 'Compiling C++ source code...' 100%
[25/25] Link (lld) libUnrealEditor-SocketIOClient.so cancelled
From the log we can see that your 5.1 compile is still missing this required change: https://github.com/getnamo/SocketIOClient-Unreal/commit/65d7253aa3a225fbe58229995971fd474c641063 (it's trying to include an invalid opus header). Pull latest master version of the plugin from git and try again, it should work.
Ah thank you, it works now :)
Hello, I was writing you on UE marketplace, topic: "Download plugin for Linux" :)
So I added SocketIO into project plugin folder and after launch I get this message, so I press "yes".
This is log from compilation:
and this is result message: