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. How to create minimal install on Ubuntu 18.04?
QtWS25 Last Chance

How to create minimal install on Ubuntu 18.04?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
linuxcloudminimal install
6 Posts 4 Posters 4.1k 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 last edited by PaulR
    #1

    I have an Ubuntu 18.04 cloud VM with 2GB RAM and 40GB disk space that I want to run a Qt web server app on that's developed in Windows.

    What are my options re installing enough of Qt to be able to use it.? I only need core, network, xml and sql so far with qmake if I was to build on the server. I see that a full build could use a lot of disk space and possibly run out of memory.

    Please forgive the simple questions, but can I build Qt on WSL and copy the necessary files across? What's the minimal disk space needed to build on the server with headers and qmake etc? What's the best way to do this or is there an ISO lurking out there that I could use (if that's allowed in the LGPL licensing terms)?

    Thanks in advance!

    aha_1980A 1 Reply Last reply
    0
    • P PaulR

      I have an Ubuntu 18.04 cloud VM with 2GB RAM and 40GB disk space that I want to run a Qt web server app on that's developed in Windows.

      What are my options re installing enough of Qt to be able to use it.? I only need core, network, xml and sql so far with qmake if I was to build on the server. I see that a full build could use a lot of disk space and possibly run out of memory.

      Please forgive the simple questions, but can I build Qt on WSL and copy the necessary files across? What's the minimal disk space needed to build on the server with headers and qmake etc? What's the best way to do this or is there an ISO lurking out there that I could use (if that's allowed in the LGPL licensing terms)?

      Thanks in advance!

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @PaulR,

      you have indeed a couple of possibilities here.

      The least resources on the server are needed, if you develop and compile on your own machine. If you don't have Linux yet, you can set up a virtual machine. The VM has enough resources to run your program.

      If you want to compile on the VM, you should stick to pre-compiled Qt and only build your app. That should be no problem, too.

      I guess the least disk space is used if you install Qt by the package manager then, because you can skip all packages you don't need.

      The last option is to install Qt by the online installer. My installation here (Qt 5.12.0) takes approx. 2 GB hard disk, and includes full documentation and Qt Creator. Mind you, that you still need the compiler and tools from Ubuntu (built-essential), so a bit more disk space should be needed.

      Regards

      Qt has to stay free or it will die.

      P 1 Reply Last reply
      2
      • aha_1980A aha_1980

        Hi @PaulR,

        you have indeed a couple of possibilities here.

        The least resources on the server are needed, if you develop and compile on your own machine. If you don't have Linux yet, you can set up a virtual machine. The VM has enough resources to run your program.

        If you want to compile on the VM, you should stick to pre-compiled Qt and only build your app. That should be no problem, too.

        I guess the least disk space is used if you install Qt by the package manager then, because you can skip all packages you don't need.

        The last option is to install Qt by the online installer. My installation here (Qt 5.12.0) takes approx. 2 GB hard disk, and includes full documentation and Qt Creator. Mind you, that you still need the compiler and tools from Ubuntu (built-essential), so a bit more disk space should be needed.

        Regards

        P Offline
        P Offline
        PaulR
        wrote on last edited by
        #3

        @aha_1980 Thanks, that's very informative and 2GB of disk space is sounds fine, my full Windows 5.10.1 dir is nearly 10GB. I've already installed build-essentials and a couple of other things, so it's just Qt now.

        I tried the final option by installing with wget http://download.qt.io/official_releases/qt/5.110/5.10.1/qt-opensource-linux-x64-5.10.1.run but it wanted libfontconfig and now needs the library for libX11-xcb.so but I'd rather not install the graphics deps.

        How would I install pre-built binaries and dev headers via the command line?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          Use apt-get, then you'll have your distribution provided Qt.

          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
          3
          • SGaistS SGaist

            Hi,

            Use apt-get, then you'll have your distribution provided Qt.

            P Offline
            P Offline
            PaulR
            wrote on last edited by
            #5

            @SGaist Ah okay cheers, I installed qt5-default for now which has got me started.

            Thanks to you both!

            JonBJ 1 Reply Last reply
            2
            • P PaulR

              @SGaist Ah okay cheers, I installed qt5-default for now which has got me started.

              Thanks to you both!

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @PaulR
              I don't do any "Qt web server app", so I don't know if that has any special requirements, but just to say I do all my Qt install stuff just from the release version for Ubuntu 18.04 via apt-get (including apt-get qt5-default, plus any extras I then find I need) and never do any source/compiling. Simplez :)

              1 Reply Last reply
              1

              • Login

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