Cannot build PhotonDemoParticle solution

Options
Hi, I'm getting the following when trying to build. I'm using UE 4.26. Any help would be greatly appreciated.
cheers

Edit: After updating the PhotonLibrary Path to "-cpp_vc16_release_windows_md_" in PhotonDemoParticle.Build.cs it does build (still a few warnings ), hopefully this helps someone else with the same issue

1>
Build started: Project: PhotonDemoParticle, Configuration: DebugGame_Editor x64
1>Creating makefile for PhotonDemoParticleEditor (no existing makefile)
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\PhotonDemoParticle\PhotonDemoParticle.Build.cs : warning : Modules must specify an explicit precompiled header (eg. PrivatePCHHeaderFile = "PhotonDemoParticle.h") from UE 4.21 onwards.
1>UnrealBuildTool : warning : Library 'C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\lib\Windows\Photon-cpp_vc14_release_windows_md_x64.lib' was not resolvable to a file when used in Module 'PhotonDemoParticle', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
1>UnrealBuildTool : warning : Library 'C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\lib\Windows\LoadBalancing-cpp_vc14_release_windows_md_x64.lib' was not resolvable to a file when used in Module 'PhotonDemoParticle', assuming it is a filename and will search library paths for it. This is slow and dependency checking will not work for it. Please update reference to be fully qualified alternatively use PublicSystemLibraryPaths if you do intended to use this slow path to suppress this warning.
1>Parsing headers for PhotonDemoParticleEditor
1> Running UnrealHeaderTool "C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\PhotonDemoParticle.uproject" "C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Intermediate\Build\Win64\PhotonDemoParticleEditor\DebugGame\PhotonDemoParticleEditor.uhtmanifest" -LogCmds="loginit warning, logexit warning, logdatabase error" -Unattended -WarningsAsErrors -abslog="C:\Users\marco\AppData\Local\UnrealBuildTool\Log_UHT.txt" -installed
1>Reflection code generated for PhotonDemoParticleEditor in 3.2959501 seconds
1>Building PhotonDemoParticleEditor...
1>Using Visual Studio 2019 14.29.30037 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.29.30037) and Windows 10.0.19041.0 SDK (C:\Program Files (x86)\Windows Kits\10).
1>[Upgrade]
1>[Upgrade] Using backward-compatible build settings. The latest version of UE4 sets the following values by default, which may require code changes:
1>[Upgrade] bLegacyPublicIncludePaths = false => Omits subfolders from public include paths to reduce compiler command line length. (Previously: true).
1>[Upgrade] ShadowVariableWarningLevel = WarningLevel.Error => Treats shadowed variable warnings as errors. (Previously: WarningLevel.Warning).
1>[Upgrade] PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs => Set in build.cs files to enables IWYU-style PCH model. See https://docs.unrealengine.com/en-US/Programming/BuildTools/UnrealBuildTool/IWYU/index.html. (Previously: PCHUsageMode.UseSharedPCHs).
1>[Upgrade] Suppress this message by setting 'DefaultBuildSettings = BuildSettingsVersion.V2;' in PhotonDemoParticleEditor.Target.cs, and explicitly overriding settings that differ from the new defaults.
1>[Upgrade]
1>Building 11 actions with 24 processes...
1> [1/11] PhotonDemoParticle.rc
1> [2/11] PCH.PhotonDemoParticle.cpp
1> [3/11] PhotonDemoParticle.cpp
1> [4/11] PhotonDemoParticle.init.gen.cpp
1> [5/11] Console.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(611): warning C4005: 'TEXT': macro redefinition
1> C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\HAL/Platform.h(1082): note: see previous definition of 'TEXT'
1> [6/11] PhotonLBClient.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(611): warning C4005: 'TEXT': macro redefinition
1> C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\HAL/Platform.h(1082): note: see previous definition of 'TEXT'
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &&)': member function does not override any base class virtual member function
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Photon-cpp/inc/PhotonPeer.h(127): note: see reference to class template instantiation 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>' being compiled
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(const ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &)': member function does not override any base class virtual member function
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4264: 'ExitGames::Common::Helpers::SharedPointerBase<Etype> &ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator =(const ExitGames::Common::Helpers::SharedPointerBase<Etype> &)': no override available for virtual member function from base 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'; function is hidden
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointerBase.h(26): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator ='
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(18): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> [7/11] PhotonLBClient.gen.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(611): warning C4005: 'TEXT': macro redefinition
1> C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\HAL/Platform.h(1082): note: see previous definition of 'TEXT'
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &&)': member function does not override any base class virtual member function
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Photon-cpp/inc/PhotonPeer.h(127): note: see reference to class template instantiation 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>' being compiled
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(const ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &)': member function does not override any base class virtual member function
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4264: 'ExitGames::Common::Helpers::SharedPointerBase<Etype> &ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator =(const ExitGames::Common::Helpers::SharedPointerBase<Etype> &)': no override available for virtual member function from base 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'; function is hidden
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointerBase.h(26): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator ='
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(18): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> [8/11] LoadBalancingListener.cpp
1>C:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um\winnt.h(611): warning C4005: 'TEXT': macro redefinition
1> C:\Program Files\Epic Games\UE_4.26\Engine\Source\Runtime\Core\Public\HAL/Platform.h(1082): note: see previous definition of 'TEXT'
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &&)': member function does not override any base class virtual member function
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Photon-cpp/inc/PhotonPeer.h(127): note: see reference to class template instantiation 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>' being compiled
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4263: 'ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase>::operator =(const ExitGames::Common::Helpers::SharedPointer<ExitGames::Photon::Internal::PeerBase> &)': member function does not override any base class virtual member function
1>C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(25): warning C4264: 'ExitGames::Common::Helpers::SharedPointerBase<Etype> &ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator =(const ExitGames::Common::Helpers::SharedPointerBase<Etype> &)': no override available for virtual member function from base 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'; function is hidden
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointerBase.h(26): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>::operator ='
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\Common-cpp/inc/Helpers/SmartPointers/SharedPointer.h(18): note: see declaration of 'ExitGames::Common::Helpers::SharedPointerBase<Etype>'
1> with
1> [
1> Etype=ExitGames::Photon::Internal::PeerBase
1> ]
1> [9/11] UE4Editor-PhotonDemoParticle-Win64-DebugGame.lib
1> Creating library C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Intermediate\Build\Win64\UE4Editor\DebugGame\PhotonDemoParticle\UE4Editor-PhotonDemoParticle-Win64-DebugGame.lib and object C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Intermediate\Build\Win64\UE4Editor\DebugGame\PhotonDemoParticle\UE4Editor-PhotonDemoParticle-Win64-DebugGame.exp
1> [10/11] UE4Editor-PhotonDemoParticle-Win64-DebugGame.dll
1>LINK : fatal error LNK1181: cannot open input file 'C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\lib\Windows\Photon-cpp_vc14_release_windows_md_x64.lib'
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.MakeFile.Targets(45,5): error MSB3073: The command ""C:\Program Files\Epic Games\UE_4.26\Engine\Build\BatchFiles\Build.bat" PhotonDemoParticleEditor Win64 DebugGame -Project="C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\PhotonDemoParticle.uproject" -WaitMutex -FromMsBuild" exited with code 6.
1>Done building project "PhotonDemoParticle.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Comments

  • Kaiserludi
    Options
    Hi @deadstar619.
    LINK : fatal error LNK1181: cannot open input file 'C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\lib\Windows\Photon-cpp_vc14_release_windows_md_x64.lib'
    This error message says that Unreal can't find Photon-cpp_vc14_release_windows_md_x64.lib inside C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\Photon\lib\Windows.

    Copying the .libs files from the Windows SDK to the correct path inside the demo project like instructed at https://doc.photonengine.com/en-us/realtime/current/getting-started/unreal-engine will fix this error.

    However afterwards you will run into another build error:
    Unreal Engine 4.26 requires the vc15 variants of the Photon libraries and not the vc14 ones.
    Open 'C:\Users\marco\Downloads\Photon-Unreal-SDK_DemoParticle-UE4\Source\PhotonDemoParticle\PhotonDemoParticle.Build.cs' and change the 'vc14' in there to 'vc16' to link against the correct .lib files for the Unreal Engine version that you use.