Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Develop on Windows, deploy to Linux?
QtWS25 Last Chance

Develop on Windows, deploy to Linux?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cppwebframeworklinuxdeploycross compile
5 Posts 2 Posters 1.6k Views
  • 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 Offline
    P Offline
    PaulR
    wrote on 15 Feb 2019, 22:15 last edited by
    #1

    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
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 Feb 2019, 22:28 last edited by
      #2

      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 15 Feb 2019, 23:31
      0
      • S SGaist
        15 Feb 2019, 22:28

        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.

        P Offline
        P Offline
        PaulR
        wrote on 15 Feb 2019, 23:31 last edited by
        #3

        @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
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 15 Feb 2019, 23:54 last edited by
          #4

          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 16 Feb 2019, 00:01
          1
          • S SGaist
            15 Feb 2019, 23:54

            That's what you usually do using a script.

            P Offline
            P Offline
            PaulR
            wrote on 16 Feb 2019, 00:01 last edited by
            #5

            @SGaist Ahh, okay I see it.

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

            Thanks for the inspiration!

            1 Reply Last reply
            0

            1/5

            15 Feb 2019, 22:15

            • Login

            • Login or register to search.
            1 out of 5
            • First post
              1/5
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved