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. Command Line/Terminal Installers
Forum Updated to NodeBB v4.3 + New Features

Command Line/Terminal Installers

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 2 Posters 2.8k 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.
  • U Offline
    U Offline
    UebelAndre
    wrote on last edited by
    #1

    What options are available to install Qt via command line/terminal for Linux, MacOS, and Windows?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by mrjj
      #2

      Hi
      There is the offline installer that can be started from commandline but can
      you explain a bit more about what the goal is ?
      On some linux distos you can also install Qt from its App store.
      apt-get install or what ever manager used.

      Something like a silent install ?
      https://stackoverflow.com/questions/25105269/silent-install-qt-run-installer-on-ubuntu-server

      U 1 Reply Last reply
      2
      • mrjjM mrjj

        Hi
        There is the offline installer that can be started from commandline but can
        you explain a bit more about what the goal is ?
        On some linux distos you can also install Qt from its App store.
        apt-get install or what ever manager used.

        Something like a silent install ?
        https://stackoverflow.com/questions/25105269/silent-install-qt-run-installer-on-ubuntu-server

        U Offline
        U Offline
        UebelAndre
        wrote on last edited by
        #3

        @mrjj I’m trying to automate first time setups for a project I’m working on and want to be able to pull prebuilt qt libraries all by calling either a bash script or a powershell script. I want to have solutions for Linux, MacOS, and Windows. I would also prefer the solution to be more or less the same for each platform (not rely on apt/homebrew/chocolate).

        mrjjM 1 Reply Last reply
        0
        • U UebelAndre

          @mrjj I’m trying to automate first time setups for a project I’m working on and want to be able to pull prebuilt qt libraries all by calling either a bash script or a powershell script. I want to have solutions for Linux, MacOS, and Windows. I would also prefer the solution to be more or less the same for each platform (not rely on apt/homebrew/chocolate).

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @UebelAndre
          Hi
          Do you mean so other developers can just use this solution to get the needed setup with
          no manual steps?

          For a cross paltform solution, i think the silent installer as shown in the link is the most useful
          for auto installing the same across platforms.
          But it might be some hours work to make it work 100% on all platforms.

          But why do you need this if i may ask ?
          normally you just install 1 time on each platform and that is that.

          U 1 Reply Last reply
          0
          • mrjjM mrjj

            @UebelAndre
            Hi
            Do you mean so other developers can just use this solution to get the needed setup with
            no manual steps?

            For a cross paltform solution, i think the silent installer as shown in the link is the most useful
            for auto installing the same across platforms.
            But it might be some hours work to make it work 100% on all platforms.

            But why do you need this if i may ask ?
            normally you just install 1 time on each platform and that is that.

            U Offline
            U Offline
            UebelAndre
            wrote on last edited by
            #5

            @mrjj The solution there looks to be a linux only option. I need this to help new users install the correct versions of Qt5 for the project. I also am not installing to the default system paths. I had at first tried compiling Qt and that turned into a nightmare and was never able to get Windows working. My alternate solution is to programmatically install the Qt libraries into the project directory so users can compile. I want this step to be completely automated such that the project can be downloaded on any platform. I don't want to have to bundle the installer and deal with having to do something unique per platform. My expectation was that I could specify a version and a platform and do some kind of curl command to grab what I need. Is this not the case?

            1 Reply Last reply
            0
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi
              Actually it's for Qt Installer Framework which is used on all platforms so while shown for Ubuntu linux, it should work the same on other platforms. ( i did not test it )
              It runs the installer with a custom script to make a silent install.
              On Windows, it would just be qt-opensource-windows-x86-5.14.1.exe
              and similar on macOS

              Regarding to using curl.
              You can get the installer https://download.qt.io/official_releases/qt/
              but then user still has to check the right.

              Here its done on windows using powerscript and same type of installer script
              https://github.com/mjscosta/qt-silent-installer

              So I guess you can make a script that uses curl to get the right
              installer and then use the script to silently install what is needed.

              but you would need a script pr platform so not sure it will make you 100% happy :)

              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