How to compile OnlineSubsystemEOS for Linux?

[266/710] Module.OnlineSubsystemEOS.cpp

In file included from E:/UnrealEngine/TestGame/Intermediate/Build/Linux/B4D820EA/TestGameClient/Development/OnlineSubsystemEOS/Module.OnlineSubsystemEOS.cpp:2:

In file included from E:/UnrealEngine/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Private/EOSHelpers.cpp:9:

[E:\UnrealEngine\Engine\Plugins\Online\OnlineSubsystemEOS\Source\OnlineSubsystemEOS\Public\OnlineSubsystemEOS.h(10,10)](file:///E:/UnrealEngine/Engine/Plugins/Online/OnlineSubsystemEOS/Source/OnlineSubsystemEOS/Public/OnlineSubsystemEOS.h(10,10)): fatal error: 'Linux/LinuxEOSHelpers.h' file not found

[#include](javascript:void(0);) COMPILED_PLATFORM_HEADER(EOSHelpers.h)

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[E:\UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\PreprocessorHelpers.h(57,42)](file:///E:/UnrealEngine/Engine/Source/Runtime/Core/Public/HAL/PreprocessorHelpers.h(57,42)): note: expanded from macro 'COMPILED_PLATFORM_HEADER'

[#define](javascript:void(0);) COMPILED_PLATFORM_HEADER(Suffix) PREPROCESSOR_TO_STRING(PREPROCESSOR_JOIN(PLATFORM_HEADER_NAME/PLATFORM_HEADER_NAME, Suffix))

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[E:\UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\PreprocessorHelpers.h(6,35)](file:///E:/UnrealEngine/Engine/Source/Runtime/Core/Public/HAL/PreprocessorHelpers.h(6,35)): note: expanded from macro 'PREPROCESSOR_TO_STRING'

[#define](javascript:void(0);) PREPROCESSOR_TO_STRING(x) PREPROCESSOR_TO_STRING_INNER(x)

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

[E:\UnrealEngine\Engine\Source\Runtime\Core\Public\HAL\PreprocessorHelpers.h(7,41)](file:///E:/UnrealEngine/Engine/Source/Runtime/Core/Public/HAL/PreprocessorHelpers.h(7,41)): note: expanded from macro 'PREPROCESSOR_TO_STRING_INNER'

[#define](javascript:void(0);) PREPROCESSOR_TO_STRING_INNER(x) #x

^~

<scratch space>(68,1): note: expanded from here

"Linux/LinuxEOSHelpers.h"

^~~~~~~~~~~~~~~~~~~~~~~~~

1 error generated.

[267/710] Module.EOSVoiceChat.cpp

Getting this error trying to compile OnlineSubsystemEOS for Linux

That plugin doesn’t support Linux by default. But you can make a similar plugin in YourProject/Plugins

  1. Copy paste the plugin folder (OnlineSubsystemEOS) (eg from C:\Users\JediKnight\Documents\UnrealEngine\Engine\Plugins\Online ) into YourProject/Plugins. Now there you should have a folder named OnlineSubsystemEOS
  2. Rename the folder and .uplugin to MyOnlineSubsystemEOS, replace the mentions of OnlineSubsystemEOS to MyOnlineSubsystemEOS in your .uproject and maybe source code (source code – not mandatory?).
  3. Create file YourProject\Plugins\MyOnlineSubsystemEOS\Source\OnlineSubsystemEOS\Private\Linux\LinuxEOSHelpers.h with the same content as Mac helpers.
  4. Add Linux to PlatformAllowList of 2 modules in .uplugin
  5. Now this should compile

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.