Unable to Package UE5.0.3 project with Cesium v1.19.0

Hi,

I have the following issue when I’m trying to package a default UE5 project for Windows platform using CesiumUnreal 1.19.0:

UATHelper: Packaging (Windows): [1/5] Compile Cesium3DTilesetAuthoring.gen.cpp
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(603): warning C4005: 'TEXT': macro redefinition
UATHelper: Packaging (Windows): C:\UE\UE_5.0.3\Engine\Source\Runtime\Core\Public\HAL\Platform.h(1171): note: see previous definition of 'TEXT'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10277): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10283): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10291): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10510): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(13950): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(15416): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(15429): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(26): error C2059: syntax error: 'constant'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(26): error C2238: unexpected token(s) preceding ';'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(92): error C2589: 'constant': illegal token on right side of '::'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(92): error C2062: type 'unknown-type' unexpected
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\CesiumRuntime\Public\CesiumCreditSystem.h(5): fatal error C1083: Cannot open include file: 'Components/WidgetComponent.h': No such file or directory
PackagingResults: Error: 'constant'
UATHelper: Packaging (Windows): [2/5] Compile Cesium3DTilesetAuthoring.cpp
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winnt.h(603): warning C4005: 'TEXT': macro redefinition
UATHelper: Packaging (Windows): C:\UE\UE_5.0.3\Engine\Source\Runtime\Core\Public\HAL\Platform.h(1171): note: see previous definition of 'TEXT'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10277): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10283): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10291): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(10510): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(13950): error C4668: '_WIN32_WINNT_WIN10_RS5' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(15416): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um\winioctl.h(15429): error C4668: '_WIN32_WINNT_WIN10_RS4' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(26): error C2059: syntax error: 'constant'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(26): error C2238: unexpected token(s) preceding ';'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(92): error C2589: 'constant': illegal token on right side of '::'
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\ThirdParty\include\CesiumGltf\Material.h(92): error C2062: type 'unknown-type' unexpected
UATHelper: Packaging (Windows): C:\UE\CesiumReccup\Plugins\CesiumForUnreal-500-v1.19.0-ue5\CesiumForUnreal\Source\CesiumRuntime\Public\CesiumCreditSystem.h(5): fatal error C1083: Cannot open include file: 'Components/WidgetComponent.h': No such file or directory
PackagingResults: Error: 'constant'

I tried from sources and from the packaged version available on the Github repo.

Does anyone have an idea ?

Thanks!

Kind regards

I just also wanted to chime in that when i upgrade the cesium plugin from v1.17.0 to v1.18 or v1.19 i’m unable to build and open my project for unreal editor source version 5.0.3.

Also, is the plugin ready to be used with v5.1.0?