Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    UNSOLVED How to run CPP or C?

    App Development
    2
    2
    261
    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.
    • T
      trwidick last edited by trwidick

      How do I run a C++ program once compiled or C. Do I have to build a click package to run C++ program in terminal? If so why?
      g++, gcc is missing.
      Pip in not installed in python, how do i install packages for running my scripts?

      Currently Using: Google Pixel 3a (sargo) OTA-17

      AppLee 1 Reply Last reply Reply Quote 0
      • AppLee
        AppLee @trwidick last edited by

        @trwidick
        The recommended way is to build a click.
        It's easy with clickable.

        If you need only CLI, then I guess you can cross-build the program on your desktop, transfer it to your UT device and run it within the terminal.

        G++ or GCC are not "missing" they are not required (it's the same for android) for a normal usage. The system partition are limited so everything that is not required is removed from the rootf.
        Same goes for pip, installing all the required libraries and managing the directories is an unnecessary burden. It's very simple and easy to use click packages so deployment on the device is consistent and simple.

        You don't ask why RPM are not supported on Ubuntu... That's the same for a mobile operating system choices were made and we stick to it until we change...
        😉 🙂

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