UBports Robot Logo

    UBports Forum

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

    arm64 build within IDE atom and clickable plugin

    App Development
    3
    7
    432
    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
      nauvpp last edited by

      Hi,
      I'm working on having arm64 build for Openradio. I succeeded to simply build it within the terminal and this command :

      • clickable build --arch arm64

      Then I installed the package with UT tweak tool and that's ok.
      I noticed that the Openstore App shows that it conflicts with the stable version, which is btw the armhf version. Not a big deal, but not so clean either.

      Now I'd like the make the relevant changes in the source code so I can compile it within my IDE setup (Atom+click plugin) and finally push a PR to the maintainer who will make it available for download in the Openstore.
      I tried to add this in the file "clickable.json" :

      • "build_args": ["arch=arm64"],

      but atom still compile for the armhf version... So what should I do ?

      Sorry for being so noob with such a question and as always, thanks for your help!

      AppLee arubislander 2 Replies Last reply Reply Quote 0
      • AppLee
        AppLee @nauvpp last edited by

        @nauvpp
        To avoid the conflict with the official on you should change the developer tag in the app name.
        For example: openradio.myApp
        Or at least change the version number so the Open Store can understand what's happening.

        I do not understand the part with relevant changes.
        Most of the time compiling for arm64 is enough.
        But if you need to make modifications to the code, then just edit it... ?! πŸ€”
        I told you I missed something ; probably I need some sleep πŸ˜ƒ

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

          @applee Hi, thanks for your reply.
          Yep, I can edit the source but, I don't know what to do. I tried to change the file clickable.json using my IDE ( atom) to tell the compiler some arm64 args but it does not have any impact.
          Hopefully I could compile arm64 directly from the source code folder with clickable...

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

            @nauvpp
            Ok, what I would do is:

            • first: change the version or app name so you can test it without conflict with the official app
            • then: edit the clickable plugin to modify the command.
              I did so to force --ssh <ip_address> but you can force the --arch arm64 option instead

            Edit: I don't have the steps to change the plugin in top of my head but I found it on the documentation.
            Edit: I found the information from an old post

            N 2 Replies Last reply Reply Quote 0
            • N
              nauvpp @AppLee last edited by

              @applee ok I'll give it a try. Thank you very much! πŸ‘

              1 Reply Last reply Reply Quote 1
              • arubislander
                arubislander @nauvpp last edited by

                @nauvpp If all that is needed to achieve an arm64 version of the app is adding -a arm64 to clickable build then there are no source code changes necessary in the repo.

                I checked and there is no automated build configured for this project. This means that the maintainer builds and uploads the click manually.

                So I am afraid you need to ask the maintainer to build an arm64 version manually.
                Alternatively you could research adding automated build to the project by way of a .gitab-ci.yml.

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                BQ Aquaris M10 FHD (16.04 RC)
                Google Pixel 3a (20.04 DEV)
                JingPad (20.04 DEV)
                Meizu Pro 5 (16.04 DEV)
                PinePhone / PineTab UT CE (16.04 DEV)

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

                  @applee hi, I finally updated atom clickable plugin and clicklable v7 and everything is fine! I can choose suitable target architecture.

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