UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Clickable build of Godot

    Scheduled Pinned Locked Moved App Development
    4 Posts 2 Posters 459 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • D Offline
        duncancragg
        last edited by duncancragg

        I see @abmyii has a build for a recent Godot version for UT here:

        https://gitlab.com/abmyii/ubports-godot/-/tree/v3.4.0-ubports

        .. but I don't know how to cross-compile the exe for UT! There are no Clickable files, like a manifest, and clickable bails pretty quickly.

        I can build it for my x86 laptop (which kinda works but has rendering bugs that don't happen with the pre-built https://gitlab.com/abmyii/ubports-godot/-/jobs version ..??), but how do I Clickable it? I presume it has to be built inside of Docker? There's a .gitlab-ci.yml file which looks promising.

        I'm new to all this, so be kind and assume I don't know anything more than a typical C++ dev!

        Cheers
        Duncan

        1 Reply Last reply Reply Quote 0
        • joniusJ Offline
          jonius
          last edited by

          To facilitate the process, we have added abmyii's Godot builds to the Clickable build containers. You can directly install it into the click package. Check out the clickable.yaml in the Godot template you get with clickable create.

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            duncancragg @jonius
            last edited by

            @jonius Hi, and thanks for that reply. Apologies, but I didn't explain why I was asking what I did! I've started work on a UT app that uses 3D, so I was trying to build Godot - as a large, known project that has UT builds - to get some experience cross-compiling with Clickable, since that's what I'll be doing in my own project. Hope that clarifies! Cheers, Duncan

            1 Reply Last reply Reply Quote 0
            • joniusJ Offline
              jonius
              last edited by jonius

              I still don't understand why you want to compile Godot instead of just using the one we ship in the build containers. But if you want to do so, see abmyii's build script (https://gitlab.com/abmyii/ubports-godot/-/blob/v3.4.0-ubports/build-ubports.sh) which he runs without Clickable, but within a clickable container (https://gitlab.com/abmyii/ubports-godot/-/blob/v3.4.0-ubports/.gitlab-ci.yml).

              If you are just interested in cross compiling with Clickable in general, that is pretty straight forward. The build containers are set up in a way that you only need to tell Clickable which architecture to build for and Clickable chooses the according prepared build container. If you are interested how they are set up, see the Dockerfile: https://gitlab.com/clickable/clickable-docker-images/-/blob/master/ubuntu-sdk/16.04-cross-build/Dockerfile.

              And finally, if you want to compile dependencies along with you app, see this guide: https://docs.ubports.com/en/latest/appdev/guides/dependencies.html

              1 Reply Last reply Reply Quote 0
              • First post
                Last post