Photon Unreal SDK DemoParticle UE4 Android(ASTC) Package failed

Hieudpt
Hieudpt
edited December 2021 in Native

Hi there, I package and test on on windown, Photon-Windows-Sdk_v5-0-1-1 is fine, but problem when package project Photon Unreal SDK DemoParticle UE4 Android(ASTC) Package failed, I used: photon-androidndk-sdk_v5-0-1-1, how to I fix that, I have research in forum but can't find right way. Thanks


UATHelper: Packaging (Android (ASTC)):   ld.lld: error: undefined symbol: ExitGames::LoadBalancing::ConnectOptions::setUsername(ExitGames::Common::JString const&)

UATHelper: Packaging (Android (ASTC)):   >>> referenced by LoadBalancingListener.cpp:84 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp:84)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::connect(ExitGames::Common::JString const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced by PhotonLBClient.cpp:31 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\PhotonDemoParticle\PhotonLBClient.cpp:31)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/PhotonLBClient.cppa7.o:(APhotonLBClient::BeginPlay())

UATHelper: Packaging (Android (ASTC)):  

UATHelper: Packaging (Android (ASTC)):   ld.lld: error: undefined symbol: ExitGames::Common::Object::~Object()

UATHelper: Packaging (Android (ASTC)):   >>> referenced by AuthenticationValues.h:20 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\LoadBalancing-cpp\inc\AuthenticationValues.h:20)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::connect(ExitGames::Common::JString const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced by AuthenticationValues.h:20 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\LoadBalancing-cpp\inc\AuthenticationValues.h:20)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::connect(ExitGames::Common::JString const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced by AssociativeContainerBase.h:402 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp\inc\Containers\AssociativeContainerBase.h:402)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::customEventAction(int, unsigned char, ExitGames::Common::Object const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced 32 more times

UATHelper: Packaging (Android (ASTC)):  

UATHelper: Packaging (Android (ASTC)):   ld.lld: error: undefined symbol: ExitGames::Common::ToString::~ToString()

UATHelper: Packaging (Android (ASTC)):   >>> referenced by AuthenticationValues.h:20 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\LoadBalancing-cpp\inc\AuthenticationValues.h:20)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::connect(ExitGames::Common::JString const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced by AuthenticationValues.h:20 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\LoadBalancing-cpp\inc\AuthenticationValues.h:20)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::connect(ExitGames::Common::JString const&))

UATHelper: Packaging (Android (ASTC)):   >>> referenced by JVector.h:60 (D:/SourceBuild\Photon-Unreal-SDK_DemoParticle-UE4\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp\inc\Containers\JVector.h:60)

UATHelper: Packaging (Android (ASTC)):   >>>        D:/SourceBuild/Photon-Unreal-SDK_DemoParticle-UE4/Photon-Unreal-SDK_DemoParticle-UE4/Intermediate/Build/Android/UE4/Development/PhotonDemoParticle/LoadBalancingListener.cppa7.o:(LoadBalancingListener::updateGroups())

UATHelper: Packaging (Android (ASTC)):   >>> referenced 75 more times

UATHelper: Packaging (Android (ASTC)):  

UATHelper: Packaging (Android (ASTC)):   ld.lld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)

UATHelper: Packaging (Android (ASTC)):   clang++: error: linker command failed with exit code 1 (use -v to see invocation)

UATHelper: Packaging (Android (ASTC)): Took 45.6689289s to run UnrealBuildTool.exe, ExitCode=6

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::cstr() const

UATHelper: Packaging (Android (ASTC)): UnrealBuildTool failed. See log for more details. (C:\Users\hieupv\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.26\UBT-PhotonDemoParticle-Android-Development_2.txt)

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::UTF8Representation() const

PackagingResults: Error: undefined symbol: ExitGames::Common::BaseCharString::cstr() const

PackagingResults: Error: undefined symbol: ExitGames::Common::UTF8String::~UTF8String()

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::JString(wchar_t const*)

PackagingResults: Error: undefined symbol: ExitGames::Common::operator+(ExitGames::Common::JString const&, ExitGames::Common::JString const&)

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::~JString()

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::JString(char const*)

PackagingResults: Error: undefined symbol: ExitGames::LoadBalancing::AuthenticationValues::AuthenticationValues()

PackagingResults: Error: undefined symbol: ExitGames::LoadBalancing::ConnectOptions::ConnectOptions(ExitGames::LoadBalancing::AuthenticationValues const&, ExitGames::Common::JString const&, ExitGames::Common::JString const&, unsigned char, bool)

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::JString(unsigned int)

PackagingResults: Error: undefined symbol: getTimeUnix()

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::JString(ExitGames::Common::JString const&)

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::operator=(int)

PackagingResults: Error: undefined symbol: ExitGames::Common::JString::operator+=(ExitGames::Common::JString const&)

PackagingResults: Error: undefined symbol: ExitGames::LoadBalancing::AuthenticationValues::setUserID(ExitGames::Common::JString const&)

PackagingResults: Error: undefined symbol: ExitGames::LoadBalancing::ConnectOptions::setAuthenticationValues(ExitGames::LoadBalancing::AuthenticationValues const&)

PackagingResults: Error: undefined symbol: ExitGames::LoadBalancing::ConnectOptions::setUsername(ExitGames::Common::JString const&)

PackagingResults: Error: undefined symbol: ExitGames::Common::Object::~Object()

PackagingResults: Error: undefined symbol: ExitGames::Common::ToString::~ToString()

PackagingResults: Error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)

PackagingResults: Error: linker command failed with exit code 1 (use -v to see invocation)

UATHelper: Packaging (Android (ASTC)): AutomationTool exiting with ExitCode=6 (6)

UATHelper: Packaging (Android (ASTC)): BUILD FAILED

PackagingResults: Error: Unknown Error

Answers

  • Hi @Hieudpt.


    Great that you could solve your issue.

    I see that you have posted your question into the "Photon Server" category of the forum. That category is intended for questions regarding server-side coding with the self-hosted Photon Server SDK and not for client-side questions.

    I move your thread over to to the "Native" category, which is the correct place for all questions regarding C++ Client SDK related questions.

    Please always post your questions in the correct category. Otherwise you might have to wait longer for an answer or don't receive one at all, as the expert for the topic of the question might not see the topic if it is in a category that he isn't regularly visiting.

  • Hi @Kaiserludi

    I will take note of this.

    I have some questions about:

    1. How to create room and open new level
    2. When all Player in room, can I use execute command for servertravel level.
    3. When client join room, OnPostLogin on GameMode not execute, Or show to get player controller reference of client. I want to spawn player and possess.

    Thank you

  • Hi @Hieudpt.


    1. Just create a room with opCreateRoom(). How to open a new level does have nothing to do with Photon. Just do it the same way like you would do it in a single-player game and send the relevant information like the name of the map to load, etc. to other players that join the room via opRaiseEvent() or make it a room property.
    2. Sorry, but I don't understand the question. Could you rephrase it please?
    3. Again: I don't understand what you are asking. Sorry.