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

    does pygame run on ubuntu touch

    Scheduled Pinned Locked Moved App Development
    4 Posts 4 Posters 501 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.
      • A Offline
        Amy
        last edited by

        I have a game I made in pygame that I want to port

        LakotaubpL magdesignM 2 Replies Last reply Reply Quote 1
        • LakotaubpL Offline
          Lakotaubp @Amy
          last edited by

          @amy I would start by looking in the UBports Docs https://docs.ubports.com/en/latest/appdev/index.html

          1 Reply Last reply Reply Quote 0
          • magdesignM Offline
            magdesign @Amy
            last edited by

            @amy
            I was able to install it with:

            sudo apt-get install python-pygame
            

            and then tried to run a simple pygame, resulted in:

            Fatal Python error: (pygame parachute) Segmentation Fault
            Aborted
            

            So why not test it yourself?

            Oneplus 6 (A6003)
            UBports 16.04 RC 2021-W32

            CiberSheepC 1 Reply Last reply Reply Quote 0
            • CiberSheepC Offline
              CiberSheep @magdesign
              last edited by

              @magdesign I think that's not the way you want to go.
              Apps would be confined anyway so you should include dependencies in the app.

              The way to go, it should be adding pygame to the clickable.yml

              I don't know if you need to add a way of doing pip install pygame that would add them in the local folder (to be confirmed)

              https://clickable-ut.dev/en/latest/project-config.html#libraries

              Another planet, another time, another universe!

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