SocketIOClient-Unreal icon indicating copy to clipboard operation
SocketIOClient-Unreal copied to clipboard

Packaging for Android on UE 5.4.1 fails

Open D3valon opened this issue 1 year ago • 2 comments

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.

D3valon avatar May 24 '24 08:05 D3valon

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

Note to self: check opus include for 5.4 version

getnamo avatar May 25 '24 04:05 getnamo

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)

R1ftwarr avatar Jul 08 '24 23:07 R1ftwarr