Qt Forum

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

    Unsolved Develop on Windows, deploy to Linux?

    Installation and Deployment
    cppwebframework linux deploy cross compile
    2
    5
    1140
    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.
    • P
      PaulR last edited by

      Hi

      I am developing a website with the CPPWebFramework, which is made with Qt and I want to deploy the site to a Linux instance on Vultr. I'm doing all development in Qt Creator.

      I know I can install Qt on Linux, transfer the files and manually compile from there, but any more automated - and not too convoluted - tips and tricks would be very welcome. Transferring any ad hoc files from the Server directory during the build/deploy step would be helpful too.

      Cheers for any insights!

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

        Hi,

        The quick version would be to do what you described. Setting up cross-compilation from Windows to Linux might be doable but it's really not easy.

        You could even consider using Docker for that.

        Note that if on you are on Windows 10, the new Linux Subsystem could potentially be another solution.

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

        P 1 Reply Last reply Reply Quote 0
        • P
          PaulR @SGaist last edited by

          @SGaist Thanks for your quick reply!

          Is it possible to get a Qt build target that git pulls, then runs qmake and make via SSH or something?

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

            That's what you usually do using a script.

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

            P 1 Reply Last reply Reply Quote 1
            • P
              PaulR @SGaist last edited by

              @SGaist Ahh, okay I see it.

              Clone Build Config -> Delete Build Steps -> add Custom Process Step

              Thanks for the inspiration!

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