Linux Running without displaying map

Successfully packaged Linux


Running the screen in Unity

Running the interface in Ubuntu 18.04 LTS system

How to solve the problem of not displaying the map?

Player.log output by Unity
Player.rar (5.7 KB)

The native code appears to be missing. Did you build it by following the Developer Setup instructions?

Switch to the window platform for packaging, packaging interface

Right, because we ship binaries for Windows, so you don’t need to build them manually like you do for Linux.

How does Linux need to build them manually?

Built based on this development document
https://github.com/CesiumGS/cesium-unity/blob/main/Documentation~/developer-setup.md

Linux is not currently a supported platform for Cesium for Unity.

It’s possible to run Cesium for Unity on Linux (others have done it), but it is not simple. It doesn’t work out of the box, and there are no step-by-step instructions available. The developer setup instructions basically explain how it’s done, but they’re written for Windows. They need to be adjusted for Linux. This is especially true if you’re trying to build for Linux from Windows. That should also be possible, but I’m not aware of anyone ever having done it.

So if you want to take this on, you’ll have to work through the process carefully, understanding what you’re doing along the way. Some knowledge of C++ and CMake will be necessary. I can probably help when you run into problems, but can’t guide you through it step-by-step.

If that sounds too difficult, I’m afraid you’ll just have to wait until we add official Linux support.

What if building Linux from Linux? Would it be much easier?

Yes, it will probably be easier. We know of people that have done that successfully, at least.

building Linux from Linux,When are you planning to launch this feature?

We have no definite timeline for it right now.

The linux version compiles successfully

Hello, I need to release the Linux version. Can you add a WeChat account for a detailed chat? My WeChat account: LWK18020018226

qq:76610744

hi, I really need to run cesium on linux, I am also usin 22.04(I got that from your desktop background). Could you please help me, guide me how you did it. My unity version is 2022.3.55f1 and I tried following the cesium developer guide(for now the cesium-unity-samples project) and I get an error:
NotImplementedException: The native implementation is missing so Update cannot be invoked. This may be caused by a missing call to CreateImplementation in one of your constructors, or it may be that the entire native implementation shared library is missing or out of date.
CesiumForUnity.Cesium3DTileset.Update () (at ./Reinterop/Reinterop.RoslynSourceGenerator/Cesium3DTileset-generated.cs:127)

Hi @johni , welcome to the community!

Usually, this is expected when you first setup the environment. You need to execute the dotnet publish step before you open Unity, so that the Reinterop files are generated. If you don’t see them generating, force Unity to recompile your code by adding a trivial change (such as adding whitespace) to a file in the plugin. Then, close Unity and run the cmake steps in the native~ folder.

I hope that works, but if not, it would help if you shared what you did step-by-step so we can better advise!

hi thank you for helping me out! I finally got the Unity Cesium working in ubuntu, except now there is a problem where 3d tiles won’t load. when I open the 01_CesiumWorld scene I do see terrain data but when I tried like the 03_CesiumSanFrancisco scene I see no 3d tiles. I even tried hosting my own 3d tiles world but it simply doesn’t show anything. I really need this to work. what can I do?

Hi @johni, glad you got it compiling!

You probably need to add a call to registerAllTileContentTypes. We’re not entirely sure why this is needed on Linux and not other platforms, but other users have found it helpful. See here:

Thank you for helping out! I really appreciate it. I was able to fix the problem! Thank you so much!