Compile link error

I encountered the same issue. I’m using the latest Cesium for Unreal v2.21.0, compiled from source, and I also followed the instructions in developer-setup-windows-gotchas.md

@winnonatural @Cloud These errors indicate a mismatch between the compiler version being used for Unreal and the compiler version being used to build Cesium Native (or to build Cesium Native’s vcpkg dependencies). Following the steps in that gotchas guide to force all three to use the same compiler version should help, but you might have cached binaries still using the wrong compiler version. You can try:

  • Deleting your build directory in the CesiumForUnreal/extern folder (or whatever directory you told CMake to use).
  • Deleting the .ezvcpkg folder. The location of this is listed in the CMake configure log, and for Windows should be in the root of your hard drive (for example, C:/.ezvcpkg)
  • Deleting the vcpkg archives folder (should be in %LocalAppData%/archives)
  • Deleting the Intermediate/Build/Win64 folder in both the Unreal project folder and the Cesium for Unreal plugin folder.

You probably won’t need to perform all of these steps to get them working, but I would expect at least the first two to help. If you delete those folders and run through the steps to build Cesium Native again - making sure to specify -T "version=…" and VCPKG_PLATFORM_TOOLSET_VERSION that match the compiler Unreal tells you it’s using in the build log (in this case 14.38) - it should resolve these errors.

1 Like