Qt Forum

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

    Update: Forum Guidelines & Code of Conduct

    Unsolved Remote Linux compile and deploying to Android?

    Installation and Deployment
    4
    8
    614
    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.
    • K
      krokstr last edited by

      Hello, I was wondering if it's possible to develop and compile on a remote server(this part is not a problem), and after that deploy on Android device, connected to my working PC. I've searched, but didn't found what I was looking for. Any idea if this is even possible and if so, I would like to get some info how to do it? Thanks!

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        Do you mean:

        • Build on a distant machine
        • Download the corresponding APK on your local machine
        • Run it on your device

        ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 2
        • K
          krokstr last edited by

          Thanks for the response. And yes, that's exactly what I need. To automate these three steps.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            What do you mean by automate ?

            Because the first thing you write about is developing on a remote machine.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply Reply Quote 1
            • K
              krokstr last edited by

              I mean doing it in some clever and faster way than build, copy the apk to my PC, then copy and install on my Android . I'm reaching the remote machine with installed Qt by SSH, then I can write and build the program there. But the problem is that I don't know how to redirect the output APK file to my working PC and then deploy it. I don't know if I need to setup something special for Deploy step on the remote machine or something like that ? The idea is to use more powerful machine only for building the application, to save time between every change in the code and building it. Push the Run button on the remote machine's Qt and the app comes up on the phone connected to my PC. That's what I want to do. Thanks!

              1 Reply Last reply Reply Quote 0
              • KillerSmath
                KillerSmath last edited by

                I don't think so QT has a feature like that but have you tried to create a bash code in your server to build and use ssh to transfer the output apk ?

                @Computer Science Student - Brazil
                Web Developer and Researcher
                “Sometimes it’s the people no one imagines anything of who do the things that no one can imagine.” - Alan Turing

                1 Reply Last reply Reply Quote 0
                • K
                  krokstr last edited by

                  I don't think this would help very much, it would only have advantage if I'm gonna move the apk on my own. Maybe if I can connect remote machine's Qt to my local Qt. And the build is done remotely, then the last deploy step is done by my local machine, so I don't have to manually install the apk on the phone.

                  1 Reply Last reply Reply Quote 0
                  • sneubert
                    sneubert last edited by

                    You need some CD/CI System like Jenkins

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