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

    Can we install build-essential?

    Scheduled Pinned Locked Moved Support
    2 Posts 2 Posters 257 Views 1 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.
      • N Offline
        nebulom
        last edited by nebulom

        Just wanted to try out gcc hello world. I also want to know since I want to promote UT to students learning C/C++. Thanks a lot!

        Nexus 5 (Ubuntu 16.04 2020-W38)

        AppLeeA 1 Reply Last reply Reply Quote 0
        • AppLeeA Offline
          AppLee @nebulom
          last edited by

          @nebulom
          Hi, the root filesystem is read only which means you cannot install debian packages the traditional way.

          But it is a Linux afterall so you can remount the FS with write privilege.
          You can also use a Libertine container which is probably the best choice for you.

          If you want to use show your students how to create an app for UT it will have multiple pros and cons:

          • Differenciate the host and target computer (cross compilation)
          • Show them the linking issues and requirements
          • How useful yocto, clickable and other tools are to overcome some of the problems
          • What is a bootloader, a rootfs, an OS, a DE and what it means for their code

          If you just want something simpler just SSH to the computer, code within vi and compile using GCC, UT comes with unecessary complications. But IMHO the previous items are worth tackling with when your learn new skills. Some might like it, some no but they'll learn what it is and what they are willing/able to do.

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