Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Install QT on hard drive ?
Forum Updated to NodeBB v4.3 + New Features

Install QT on hard drive ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 695 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.
  • A Offline
    A Offline
    Anonymous_Banned275
    wrote on last edited by
    #1

    Using Linux / Ubuntu.
    Can I install another copy of QT outside of the OS folders?
    If so - how does Ubuntu select correct copy ?

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @AnneRanch said in Install QT on hard drive ?:

      If so - how does Ubuntu select correct copy ?

      Ubuntu does not select anything. You select it in your QtCreator kit settings.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      A 1 Reply Last reply
      0
      • Christian EhrlicherC Christian Ehrlicher

        @AnneRanch said in Install QT on hard drive ?:

        If so - how does Ubuntu select correct copy ?

        Ubuntu does not select anything. You select it in your QtCreator kit settings.

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #3

        @Christian-Ehrlicher I was expecting a SINGLE executable...
        I guess I know after I install my "hard drive" version how to actually identify what is being executed.
        For example - I can "configure" project with "use all kits" so there is no such thing as ":single executable" - since I already have minimum of two "QT" folders.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Qt is a c++ library, not a single executable. But you're aware of that already since you use Qt for years...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on last edited by ChrisW67
            #5

            @AnneRanch said in Install QT on hard drive ?:

            Can I install another copy of QT outside of the OS folders?

            Yes. The Qt Installer will let you put versions(s) of Qt anywhere you like, or you can build Qt from source to put the result anywhere you want.

            If so - how does Ubuntu select correct copy ?

            At compile time:
            Ubuntu doesn't, you do.
            If you build manually with qmake then you select the Qt version by using the qmake binary bundled with that version.
            If you build manually with CMake then you select the Qt version by setting CMAKE_PREFIX_PATH environment variable before running cmake.
            If you use Qt Creator then your build kit defines which Qt copy is used to build the application. Qt Creator ensures the correct environment to build with the select Qt library.

            At run time:
            The UNIX-like operating system will load the first Qt library matching the executable's requirements that it finds in the LD_LIBRARY_PATH or default system library locations. When you package your application along with the matching Qt dynamic libraries you typically use the LD_LIBRARY_PATH to make sure these are the first libraries found.

            A 1 Reply Last reply
            5
            • C ChrisW67

              @AnneRanch said in Install QT on hard drive ?:

              Can I install another copy of QT outside of the OS folders?

              Yes. The Qt Installer will let you put versions(s) of Qt anywhere you like, or you can build Qt from source to put the result anywhere you want.

              If so - how does Ubuntu select correct copy ?

              At compile time:
              Ubuntu doesn't, you do.
              If you build manually with qmake then you select the Qt version by using the qmake binary bundled with that version.
              If you build manually with CMake then you select the Qt version by setting CMAKE_PREFIX_PATH environment variable before running cmake.
              If you use Qt Creator then your build kit defines which Qt copy is used to build the application. Qt Creator ensures the correct environment to build with the select Qt library.

              At run time:
              The UNIX-like operating system will load the first Qt library matching the executable's requirements that it finds in the LD_LIBRARY_PATH or default system library locations. When you package your application along with the matching Qt dynamic libraries you typically use the LD_LIBRARY_PATH to make sure these are the first libraries found.

              A Offline
              A Offline
              Anonymous_Banned275
              wrote on last edited by
              #6

              @ChrisW67 Thank you very much for spending your time for such great replay. It is much appreciated

              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