Since the installation through tarball package directly downloaded from github release page was not working for unity in linux, i followed the instructions on the https://github.com/CesiumGS/cesium-unity/blob/main/Documentation\~/developer-setup.md page for how to package cesium for unity.
But when i run:
dotnet run --project Build~ package --platform Editor --platform Linux --unity-executable “/home/sonu/Unity/Hub/Editor/6000.2.14f1/Editor/Unity”
I get the following error:
executeMethod class ‘BuildCesiumForUnity’ could not be found.
Argument was -executeMethod CesiumForUnity.BuildCesiumForUnity.CompileForEditorAndExit
Aborting batchmode due to failure:
executeMethod class ‘BuildCesiumForUnity’ could not be found.
Argument was -executeMethod CesiumForUnity.BuildCesiumForUnity.CompileForEditorAndExit
Curl error 42: Callback aborted
Killing ADB server in 0.01924 seconds.
[Physics::Module] Cleanup current backend.
[Physics::Module] Id: 0xf2b8ea05
Input System module state changed to: ShutdownInProgress.
Input System polling thread exited.
Input System module state changed to: Shutdown.
[Licensing::IpcConnector] LicenseClient-sonu-6000.2.14-notifications channel disconnected successfully.
[Licensing::IpcConnector] LicenseClient-sonu-6000.2.14 channel disconnected successfully.
AcceleratorClientConnectionCallback - disconnected - :0
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down…
Cleanup mono
debugger-agent: Unable to listen on 41
Unhandled exception: System.Exception: An error (code 1) occurred while executing:
/home/sonu/Unity/Hub/Editor/6000.2.14f1/Editor/Unity -batchmode -nographics -projectPath /home/sonu -executeMethod CesiumForUnity.BuildCesiumForUnity.CompileForEditorAndExit -logFile /tmp/tmpXPC85n.tmp
at Build.Unity.Run(IEnumerable`1 args) in /home/sonu/cesium-workspace/cesium-unity/Build~/Unity.cs:line 81
at Build.Package.Run(Options options) in /home/sonu/cesium-workspace/cesium-unity/Build~/Package.cs:line 104
at Build.Program.<>c__DisplayClass0_0.b__1(ParseResult parseResult) in /home/sonu/cesium-workspace/cesium-unity/Build~/Program.cs:line 80
at System.CommandLine.Invocation.AnonymousSynchronousCommandLineAction.Invoke(ParseResult parseResult)
at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult parseResult)