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?
Forum Updated to NodeBB v4.3 + New Features

Develop on Windows, deploy to Linux?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
cppwebframeworklinuxdeploycross compile
5 Posts 2 Posters 1.6k Views 1 Watching
  • 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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
      0
      • SGaistS SGaist

        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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          1
          • SGaistS SGaist

            That's what you usually do using a script.

            P Offline
            P Offline
            PaulR
            wrote on 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

            • Login

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