Important: Reproduction steps are at the bottom of this post
After converting to 4.13, I managed to get my c++ project compiling. I had to remove 'UPROPERTY’s inside ‘#if PLATFORM_WINDOWS’ statements, as well as remove the old SteamOSS from my Build.cs file and add the SteamOnlineSubsystem plugin instead.
However I can not package my game for Android and I get the following error:
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'HtoNS(unsigned short)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'HtoNS(unsigned short)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'HtoNL(unsigned int)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'HtoNL(unsigned int)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'NtoHS(unsigned short)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: C:/Program Files (x86)/Epic Games/4.13/Engine/Binaries/Android/UE4-Icmp-armv7-es2.a(Module.Icmp.cpp-armv7-es2.o):function UDPEchoImpl(ISocketSubsystem*, FString const&, float): error: undefined reference to 'NtoHS(unsigned short)'
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
UATHelper: Packaging (Android (ATC)): UnrealBuildTool: ERROR: UBT ERROR: Failed to produce item: C:\...\RobotDefenseCPP\Binaries\Android\RobotDefenseCPP-armv7-es2.so
The game packages just fine for Android with 4.12. And packaging for Windows still works just fine in 4.13. Any ideas what is going on?
Edit: So far, I have no clue what is causing the issue. I have tried refreshing the project (deleting binary, intermediate, and other folders). But that did not help, so any help is very much appreciated.
Edit 2: I can reproduce the issue, so I will upgrade this post to a bug report and provide reproduction steps below.
Reproduction Steps
- Create a new blank C++ project using UE 4.13
- Add the plugins “Online Framework Plugin” and “Online Subsystem Steam” (the plugins can be found under the category “Online Platform”
- Package the game for Android (All)