Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Photon Unreal Engine SDK Compile Error

$
0
0
Hello
I try to compile photon sample for UE4 .but stick to Errors. my original error is "Cannot instantiate abstract class". but i think errors come from window header files.
I using Visual Studio 2015 Enterprise Edition and UE4.14 and i following the tutorials from YouTube.


VS Output:
2>c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(109): warning C4264: 'void ExitGames::LoadBalancing::Listener::connectReturn(int,const ExitGames::Common::JString &,const ExitGames::Common::JString &)': no override available for virtual member function from base 'ExitGames::LoadBalancing::Listener'; function is hidden
2> C:\PhotonDemoParticle-UE4\Source\Photon\LoadBalancing-cpp/inc/Listener.h(40): note: see declaration of 'ExitGames::LoadBalancing::Listener::connectReturn'
2> C:\PhotonDemoParticle-UE4\Source\Photon\LoadBalancing-cpp/inc/Listener.h(19): note: see declaration of 'ExitGames::LoadBalancing::Listener'
2>c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(27): warning C4458: declaration of 'lbc' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(18): note: see declaration of 'LoadBalancingListener::lbc'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(221): warning C4458: declaration of 'localPlayerNr' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(61): note: see declaration of 'LoadBalancingListener::localPlayerNr'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(233): warning C4458: declaration of 'localPlayerNr' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(61): note: see declaration of 'LoadBalancingListener::localPlayerNr'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(245): warning C4458: declaration of 'localPlayerNr' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(61): note: see declaration of 'LoadBalancingListener::localPlayerNr'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(257): warning C4458: declaration of 'localPlayerNr' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(61): note: see declaration of 'LoadBalancingListener::localPlayerNr'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(333): warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\string.h(119): note: see declaration of 'strcpy'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(374): warning C4458: declaration of 'localPlayerNr' hides class member
2> c:\photondemoparticle-ue4\source\photondemoparticle\demo_particle_common\LoadBalancingListener.h(61): note: see declaration of 'LoadBalancingListener::localPlayerNr'
2>C:\PhotonDemoParticle-UE4\Source\PhotonDemoParticle\demo_particle_common\LoadBalancingListener.cpp(400): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
2> C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\stdio.h(1769): note: see declaration of 'sprintf'
2>ERROR : UBT error : Failed to produce item: C:\PhotonDemoParticle-UE4\Binaries\Win64\UE4Editor-PhotonDemoParticle.dll
2> Total build time: 7.51 seconds
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(41,5): error MSB3075: The command "D:\UnrealEngine4.14.1\Engine\Build\BatchFiles\Build.bat PhotonDemoParticleEditor Win64 Development "C:\PhotonDemoParticle-UE4\PhotonDemoParticle.uproject" -waitmutex" exited with code 5. Please verify that you have sufficient rights to run this command.
========== Build: 1 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

Viewing all articles
Browse latest Browse all 15755

Trending Articles