After CesiumForUnreal plugin v2.9.0 placing it in the Plugins folder of Cesium for Unreal Samples v2.9.0, I encounter packaging failures when I create a C++ file that inherits from Cesium3DTileset within the Unreal Editor.
The following errors are occurring during the packaging. Could you please provide guidance on how to resolve this issue?
Before creating the C++ file inheriting from Cesium3DTileset, the packaging was successful.
The version of Unreal Engine I am using is 5.3.
UATHelper: Packaging (Windows): ------ Building 3 action(s) started ------
UATHelper: Packaging (Windows): [1/3] Compile [x64] MyCesium3DTileset.gen.cpp
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(58): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h(250): note: in expansion of macro ‘checkf’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(65): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\Core\Public\Misc\AssertionMacros.h(250): note: in expansion of macro ‘checkf’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(76): note: see reference to class template instantiation ‘TRelativePtr<T,OffsetType>’ being compiled
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2059: syntax error: ‘(’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘>’ was unexpected here; expected ‘statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘>’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘selection_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘statement_seq’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: missing one of: ‘}’ ?
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C2760: syntax error: ‘)’ was unexpected here; expected ‘}’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): error C3878: syntax error: unexpected token ‘)’ following ‘compound_statement’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(57): note: error recovery skipped: ‘) ) ) . . . )’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2062: type ‘unknown-type’ unexpected
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2789: ‘TRelativePtr<void,uint32>::NullValue’: an object of const-qualified type must be initialized
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): note: see declaration of ‘TRelativePtr<void,uint32>::NullValue’
UATHelper: Packaging (Windows): D:\Application\UE_5.3\Engine\Source\Runtime\MovieScene\Public\EntitySystem\RelativePtr.h(12): error C2059: syntax error: ‘)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C4003: not enough arguments for function-like macro invocation ‘max’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) >’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(313): note: error recovery skipped: ‘) )’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2589: ‘(’: illegal token on right side of ‘::’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C3878: syntax error: unexpected token ‘(’ following ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘( (’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2760: syntax error: ‘)’ was unexpected here; expected ‘;’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C3878: syntax error: unexpected token ‘)’ following ‘expression_statement’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) >’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): error C2760: syntax error: ‘)’ was unexpected here; expected ‘expression’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) ) ?’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) :’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(314): note: error recovery skipped: ‘) )’
UATHelper: Packaging (Windows): D:\UnrealProjects\CesiumForUnrealSamples-v2.9.0\Plugins\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\AccessorUtility.h(304): note: This diagnostic occurred in the compiler generated function ‘std::optionalglm::dvec2 CesiumGltf::TexCoordFromAccessor::operator ()(const CesiumGltf::AccessorView<CesiumGltf::AccessorTypes::VEC2> &)’
UATHelper: Packaging (Windows): Total time in Parallel executor: 3.04 seconds
UATHelper: Packaging (Windows): Total execution time: 4.47 seconds
UATHelper: Packaging (Windows): Took 4.54s to run dotnet.exe, ExitCode=6
UATHelper: Packaging (Windows): UnrealBuildTool failed. See log for more details. (C:\Users\sentomo\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Application+UE_5.3\UBT-CesiumForUnrealSamples-Win64-Development.txt)
UATHelper: Packaging (Windows): AutomationTool executed for 0h 0m 6s
UATHelper: Packaging (Windows): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Windows): BUILD FAILED