getnamo / SocketIOClient-Unreal

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

Packaging for Android on UE 5.4.1 fails #422

Open D3valon opened 4 months ago

D3valon commented 4 months ago

Hey all,

Packaging (Android (ASTC)): G:/eeVReeUEMobile/eevree_unrealmobileapplication/Projects/eeVRee/Plugins/SocketIO/Source/CoreUtility/Public/CUOpusCoder.h(7,9): error: 'WITH_OPUS' macro redefined [-Werror,-Wmacro-redefined] UATHelper: Packaging (Android (ASTC)): 1 error generated.

PackagingResults: Error: 'WITH_OPUS' macro redefined [-Werror,-Wmacro-redefined] PackagingResults: Error: Unknown Error

For temporary solution I commented out the line

define WITH_OPUS (PLATFORM_WINDOWS || PLATFORM_UNIX || PLATFORM_ANDROID)

After this the project compiles successfully.

getnamo commented 4 months ago

Valid workaround if you're not using the opus coder.

Note to self: check opus include for 5.4 version

R1ftwarr commented 2 months ago

Have tried to comment out the below line in CUOpusCoder.h on a Linux build but the Linux build still fails.

define WITH_OPUS (PLATFORM_WINDOWS || PLATFORM_UNIX || PLATFORM_ANDROID)