Error when build a unity

i built a standalone game for windows , some errors happen:

An error occurred while building CesiumForUnityNative. See F:\Projects\project_cesium\Packages\com.cesium.unity\native~\build-Standalone\build.log for details. The command-line was:
cmake -B F:\Projects\project_cesium\Packages\com.cesium.unity\native~\build-Standalone -S F:\Projects\project_cesium\Packages\com.cesium.unity\native~ -DEDITOR=false -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=“F:\Projects\project_cesium\Packages\com.cesium.unity\Plugins\Standalone” -DREINTEROP_GENERATED_DIRECTORY=generated-Standalone
UnityEngine.Debug:LogError (object)
CesiumForUnity.CompileCesiumForUnityNative:RunAndLog (System.Diagnostics.ProcessStartInfo,System.IO.StreamWriter,string) (at Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:512)
CesiumForUnity.CompileCesiumForUnityNative:BuildNativeLibrary (CesiumForUnity.CompileCesiumForUnityNative/LibraryToBuild) (at Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:463)
CesiumForUnity.CompileCesiumForUnityNative:OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport) (at Packages/com.cesium.unity/Editor/CompileCesiumForUnityNative.cs:210)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

and when i start the game,the cesium earth dons’t appear,so i find out the play.log

it looks like the runtime.dll dons’t create.

but in the unity editor, the eath can appear, and it works fine,
can anyone help? thanks a lot!

Hi @beyondlei99,

It would help to know what platform you’re trying to build for. I see this error in the logs:

expected x64 architecture, but was Unknown architecture.

So from a glance, it looks like something is off with the Build Settings. But we’ll need more context to properly identify what’s going on.

The error message tells you to check a build log for details. Did you check the build log?

More broadly, it looks like you’re trying to use Cesium for Unity from the source repo, rather than using the built package. Is that intentional? If not, using the binaries from the Releases will be much easier!

I need extended functionality, so i need modify the source repo。

unfortunately, it works in the editor, when i build the package, something above appears.
here is the build.log
build.zip (3.0 KB)

image

this is my build platform

At Last ,i try to delete the Library folder, and i rebuild the project,
miracle happens, it builds sucessully.

i really don’t know where the point is.