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 install qt version?(for Linux)
Forum Updated to NodeBB v4.3 + New Features

How to install qt version?(for Linux)

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
14 Posts 4 Posters 3.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.
  • mrjjM mrjj

    Hi and welcome to the forums.

    What platform is this on ?

    (looks like your are on linux)
    Did you also install gcc etc ?
    sudo apt-get install build-essential (ubuntu)
    or similar for your platform.

    Normally the kits are auto made.

    But if it can't find the toolchain files,
    there is no kits.

    K Offline
    K Offline
    kisa
    wrote on last edited by
    #3

    @mrjj Hello. Thank you for answering my question. But I already have gcc and build-essential the latest version installed. I checked everything again ... Maybe something else needs to be installed?

    mrjjM 1 Reply Last reply
    0
    • K kisa

      @mrjj Hello. Thank you for answering my question. But I already have gcc and build-essential the latest version installed. I checked everything again ... Maybe something else needs to be installed?

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

      @kisa
      Hi normally not. if you have the tool chain then it normally get kits.
      if you open shell and type qmake does it run?

      K 1 Reply Last reply
      0
      • mrjjM mrjj

        @kisa
        Hi normally not. if you have the tool chain then it normally get kits.
        if you open shell and type qmake does it run?

        K Offline
        K Offline
        kisa
        wrote on last edited by kisa
        #5

        @mrjj Yes. started and it appeared:

        QMake has two modes, one mode for generating project files based on
        some heuristics, and the other for generating makefiles. Normally you
        shouldn't need to specify a mode, as makefile generation is the default
        mode for qmake, but you may use this to test qmake on an existing project

        Mode:
        -project Put qmake into project file generation mode
        In this mode qmake interprets files as files to
        be built,
        defaults to *; *; *; *.ts; *.xlf; *.qrc
        Note: The created .pro file probably will
        need to be edited. For example add the QT variable to
        specify what modules are required.
        -makefile Put qmake into makefile generation mode (default)
        In this mode qmake interprets files as project files to
        be processed, if skipped qmake will try to find a project
        file in your current working directory

        Warnings Options:
        -Wnone Turn off all warnings; specific ones may be re-enabled by
        later -W options
        -Wall Turn on all warnings
        -Wparser Turn on parser warnings
        -Wlogic Turn on logic warnings (on by default)
        -Wdeprecated Turn on deprecation warnings (on by default)

        Options:

        • You can place any variable assignment in options and it will be *
        • processed as if it was in [files]. These assignments will be *
        • processed before [files] by default. *
          -o file Write output to file
          -d Increase debug level
          -t templ Overrides TEMPLATE as templ
          -tp prefix Overrides TEMPLATE so that prefix is prefixed into the value
          -help This help
          -v Version information
          -early All subsequent variable assignments will be
          parsed right before default_pre.prf
          -before All subsequent variable assignments will be
          parsed right before [files] (the default)
          -after All subsequent variable assignments will be
          parsed after [files]
          -late All subsequent variable assignments will be
          parsed right after default_post.prf
          -norecursive Don't do a recursive search
          -recursive Do a recursive search
          -set <prop> <value> Set persistent property
          -unset <prop> Unset persistent property
          -query <prop> Query persistent property. Show all if <prop> is empty.
          -qtconf file Use file instead of looking for qt.conf
          -cache file Use file as cache [makefile mode only]
          -spec spec Use spec as QMAKESPEC [makefile mode only]
          -nocache Don't use a cache file [makefile mode only]
          -nodepend Don't generate dependencies [makefile mode only]
          -nomoc Don't generate moc targets [makefile mode only]
          -nopwd Don't look for files in pwd [project mode only]


        I installed qt5 again. I got it in versions but they require installing qmlscene. I installed it, but still they demand to install it and to create a new project I still can not.

        4.png

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

          Hi
          So it works now for a default GUI project?

          • but they require installing qmlscene. I installed it, but still they demand to - install it and to create a new project I still can not.

          Hi. who wants qmlscene ?
          qmlscene is external program so not really sure what you mean.
          Do you have some project you download that uses QML and you try to compile
          it and it ask for qmlscene ?

          This is how my kit look like on linux
          alt text

          K 1 Reply Last reply
          0
          • mrjjM mrjj

            Hi
            So it works now for a default GUI project?

            • but they require installing qmlscene. I installed it, but still they demand to - install it and to create a new project I still can not.

            Hi. who wants qmlscene ?
            qmlscene is external program so not really sure what you mean.
            Do you have some project you download that uses QML and you try to compile
            it and it ask for qmlscene ?

            This is how my kit look like on linux
            alt text

            K Offline
            K Offline
            kisa
            wrote on last edited by
            #7

            @mrjj I can not create a single project. Everywhere some kind of kits are required which I do not have. I don’t understand where to get them.
            5.png

            I have a mistake 6.png , so I decided that I need to install qmlscene 7.png

            I don't know if i need qmlscene or not. I just want all the work and I could create projects...

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

              Ok
              Its a bit hard for me to see what you got due to the language of the screenshots.

              In any case, it must be due to the location of qmake / gcc etc.

              You must manually point the kit to qmake, the gcc and debugger where they are located in your system.
              https://doc.qt.io/qtcreator/creator-tool-chains.html
              https://doc.qt.io/qtcreator/creator-targets.html

              What linux is that btw ?

              ps. you can ignore qmlscene is not needed for anything compiler related.

              K 1 Reply Last reply
              0
              • mrjjM mrjj

                Ok
                Its a bit hard for me to see what you got due to the language of the screenshots.

                In any case, it must be due to the location of qmake / gcc etc.

                You must manually point the kit to qmake, the gcc and debugger where they are located in your system.
                https://doc.qt.io/qtcreator/creator-tool-chains.html
                https://doc.qt.io/qtcreator/creator-targets.html

                What linux is that btw ?

                ps. you can ignore qmlscene is not needed for anything compiler related.

                K Offline
                K Offline
                kisa
                wrote on last edited by
                #9

                @mrjj oh sorry..
                qmake, comppilera and debuggers automatically detected already.
                77.png
                88.png
                99.png
                I tried to create a new kit, but I do not have CMake and did not understand where to get it
                100.png

                it is not detected automatically
                101.png

                I use Debian, but I tried installing qt in Windows 8 and there was the same problem

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

                  Hi
                  Hmm
                  it really looks ok now.
                  So if you generate a new default GUI app. it still cannot compile?

                  • installing qt in Windows 8 and there was the same problem

                  Unless you choose a MinGW Qt, you must install visual studio manually.

                  K 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    Hi
                    Hmm
                    it really looks ok now.
                    So if you generate a new default GUI app. it still cannot compile?

                    • installing qt in Windows 8 and there was the same problem

                    Unless you choose a MinGW Qt, you must install visual studio manually.

                    K Offline
                    K Offline
                    kisa
                    wrote on last edited by
                    #11

                    @mrjj I can’t even create a project. Any project. On the way to the creation of the project, it is required to introduce some kit. I can not continue to create a project without kit. 45656.png
                    777.png

                    On windows I already have a visual studio.
                    I’ve been trying to solve this problem for several days now. Please tell me, is this generally solved or am I suffering in vain?

                    mrjjM jsulmJ O 3 Replies Last reply
                    0
                    • K kisa

                      @mrjj I can’t even create a project. Any project. On the way to the creation of the project, it is required to introduce some kit. I can not continue to create a project without kit. 45656.png
                      777.png

                      On windows I already have a visual studio.
                      I’ve been trying to solve this problem for several days now. Please tell me, is this generally solved or am I suffering in vain?

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

                      @kisa
                      Hi
                      Ok,
                      Its generally fixed by manually filling out the kits/compiler as described in those 2 docs i linked.

                      I dont understand why you cannot select the Default Desktop kit that is shown.
                      It seems valid as no yellow mark.

                      On windows its rarely an issue i have seen if using the correct visual studio Qt.

                      If using mingw Qt on Windows it should just works out of the box as all is included.

                      You do expand the Qt branch in installer and only installed the needed Qt versions ?

                      1 Reply Last reply
                      0
                      • K kisa

                        @mrjj I can’t even create a project. Any project. On the way to the creation of the project, it is required to introduce some kit. I can not continue to create a project without kit. 45656.png
                        777.png

                        On windows I already have a visual studio.
                        I’ve been trying to solve this problem for several days now. Please tell me, is this generally solved or am I suffering in vain?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        @kisa How did you install Qt? /usr/lib/qt5 is most probably Qt from your distribution. Did you use Qt online installer?

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        0
                        • K kisa

                          @mrjj I can’t even create a project. Any project. On the way to the creation of the project, it is required to introduce some kit. I can not continue to create a project without kit. 45656.png
                          777.png

                          On windows I already have a visual studio.
                          I’ve been trying to solve this problem for several days now. Please tell me, is this generally solved or am I suffering in vain?

                          O Offline
                          O Offline
                          Ontty
                          wrote on last edited by
                          #14

                          @kisa
                          Hi, I hope you've managed to solve you priblem, but for everyone else looking I wanted to add my solution.
                          I had similar problem on Debian 12. In my case I had to manually add path to qmake file in "Qt Versions" tab, and then I choose my new added version in "Qt version" field, while in settings on your Desktop(default) kit.
                          And that's pretty much it, i was able to select this kit while configurating and build my project

                          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