UE4 Compile Fail

Could you please update the demo of the UE4? I cannot compile it. with the error of [LoadBalancingListener(): Cannot instantiate abstract class] , I searched whole night, and found few years ago , sb. also has this problem , and maybe the reason is you guys not update the demo. So please help. thank u.

Comments

  • i tried different version of UE4, all failed with this error
  • Also, could you please give us some examples and tutorials articles or videos of the C++'s Photon? such as how to connect the photon server etc.
  • 1>------ Build started: Project: PhotonDemoParticle, Configuration: DebugGame_Editor x64 ------
    1> Performing full C++ include scan (building a new target)
    1> Creating makefile for PhotonDemoParticleEditor (no existing makefile)
    1> Parsing headers for PhotonDemoParticleEditor
    1> Running UnrealHeaderTool "D:\Photon\PhotonDemoParticle\PhotonDemoParticle.uproject" "D:\Photon\PhotonDemoParticle\Intermediate\Build\Win64\PhotonDemoParticleEditor\DebugGame\PhotonDemoParticleEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -installed
    1> Reflection code generated for PhotonDemoParticleEditor in 6.9818966 seconds
    1> Performing 10 actions (4 in parallel)
    1> [2/10] Resource PhotonDemoParticle.rc
    1> PCH.PhotonDemoParticle.cpp
    1> PhotonDemoParticle.cpp
    1> PhotonLBClient.cpp
    1> Console.cpp
    1> LoadBalancingListener.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
    1> d:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
  • 1>D:\Photon\PhotonDemoParticle\Source\PhotonDemoParticle\PhotonLBClient.cpp(22): error C2259: 'LoadBalancingListener': cannot instantiate abstract class
    1> D:\Photon\PhotonDemoParticle\Source\PhotonDemoParticle\PhotonLBClient.cpp(22): note: due to following members:
    1> D:\Photon\PhotonDemoParticle\Source\PhotonDemoParticle\PhotonLBClient.cpp(22): note: 'void ExitGames::LoadBalancing::Listener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': is abstract
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(38): note: see declaration of 'ExitGames::LoadBalancing::Listener::connectReturn'
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(55): warning C4263: 'void LoadBalancingListener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': member function does not override any base class virtual member function
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(85): warning C4264: 'void ExitGames::LoadBalancing::Listener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': no override available for virtual member function from base 'ExitGames::LoadBalancing::Listener'; function is hidden
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(38): note: see declaration of 'ExitGames::LoadBalancing::Listener::connectReturn'
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(17): note: see declaration of 'ExitGames::LoadBalancing::Listener'
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common/LoadBalancingListener.h(55): warning C4263: 'void LoadBalancingListener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': member function does not override any base class virtual member function
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common/LoadBalancingListener.h(85): warning C4264: 'void ExitGames::LoadBalancing::Listener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': no override available for virtual member function from base 'ExitGames::LoadBalancing::Listener'; function is hidden
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(38): note: see declaration of 'ExitGames::LoadBalancing::Listener::connectReturn'
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(17): note: see declaration of 'ExitGames::LoadBalancing::Listener'
    1>ERROR : UBT error : Failed to produce item: D:\Photon\PhotonDemoParticle\Binaries\Win64\UE4Editor-PhotonDemoParticle-Win64-DebugGame.dll
    1> Total build time: 44.11 seconds (Local executor: 0.00 seconds)
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command ""D:\Program Files\Epic Games\UE_4.18\Engine\Build\BatchFiles\Build.bat" PhotonDemoParticleEditor Win64 DebugGame "D:\Photon\PhotonDemoParticle\PhotonDemoParticle.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  • 1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1> PhotonDemoParticle.init.gen.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
    1> d:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
    1> d:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1> PhotonLBClient.gen.cpp
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(536): warning C4005: 'TEXT': macro redefinition
    1> d:\program files\epic games\ue_4.18\engine\source\runtime\core\public\HAL/Platform.h(848): note: see previous definition of 'TEXT'
  • 1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_LEVEL' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_MEMORY_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_PERFORMANCE_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(17005): warning C4668: '_APISET_RTLSUPPORT_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\interlockedapi.h(73): warning C4668: '_APISET_INTERLOCKED_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\processthreadsapi.h(1170): warning C4668: '_WIN32_WINNT_WINTHRESHOLD' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_LEVEL' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_MEMORY_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_PERFORMANCE_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_LEVEL' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_MEMORY_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_PERFORMANCE_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(357): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(472): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\securitybaseapi.h(1302): warning C4668: '_APISET_SECURITYBASE_VER' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>C:\Program Files (x86)\Windows Kits\8.1\include\um\winbase.h(8618): warning C4668: 'NTDDI_WIN7SP1' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_LEVEL' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_MEMORY_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>D:\Photon\PhotonDemoParticle\Source\Photon\Common-cpp/inc/defines.h(186): warning C4668: 'DBGPRINTF_PERFORMANCE_ACTIVE' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common/LoadBalancingListener.h(55): warning C4263: 'void LoadBalancingListener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': member function does not override any base class virtual member function
    1>d:\photon\photondemoparticle\source\photondemoparticle\demo_particle_common/LoadBalancingListener.h(85): warning C4264: 'void ExitGames::LoadBalancing::Listener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': no override available for virtual member function from base 'ExitGames::LoadBalancing::Listener'; function is hidden
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(38): note: see declaration of 'ExitGames::LoadBalancing::Listener::connectReturn'
    1> D:\Photon\PhotonDemoParticle\Source\Photon\LoadBalancing-cpp/inc/Listener.h(17): note: see declaration of 'ExitGames::LoadBalancing::Listener'
  • Hi @hmfff.

    Please re-download the UE4 demo. I have just uploaded an updated version of it which works with the 4.1.11.x Client API.
  • Where can I download the updated UE4 demo?

    The link on that page is broken...
  • KaiserludiKaiserludi admin
    edited August 27
    Hi @Kendo.

    I assume that you refer to the link to the demo from the unreal-page in our online docs at https://doc.photonengine.com/en-us/realtime/current/getting-started/unreal-engine. That link is indeed currently broken. The link to the demo from https://www.photonengine.com/en-US/sdks#realtimeunrealengine however works fine.
    As you can see when comparing those two download links https://www.photonengine.com/Download/Photon-Unreal-SDK_DemoParticle-UE4.zip and https://dashboard.photonengine.com/download/Photon-Unreal-SDK_DemoParticle-UE4.zip, the difference is that the former starts with "www.", while the latter starts with "dashboard.". The "www" links are no longer valid. A fix for this will go live with the next update of our website later this week.
Sign In or Register to comment.