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. Problem in setting up QT on Linux Ubuntu (wsl2)
Forum Updated to NodeBB v4.3 + New Features

Problem in setting up QT on Linux Ubuntu (wsl2)

Scheduled Pinned Locked Moved Unsolved General and Desktop
18 Posts 5 Posters 6.3k 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
    Axel Spoerl
    Moderators
    wrote on 21 Sept 2022, 06:16 last edited by
    #2

    Which Qt version have you installed and how?
    Which executable is crashing? Please post the stack
    trace here.

    Software Engineer
    The Qt Company, Oslo

    1 Reply Last reply
    0
    • G GargDivanshu
      20 Sept 2022, 22:00

      hey, I am new to QT.
      working on windows 10 X 64

      I was installing QT on my system, coz I wanted to contribute to an organization who was making a desktop Application.

      Here is the link for the IMG showing what the error is.

      Pls help me out.
      PS:- Sorry I believe my ques was not framed well. I am working on WSL2 Ubuntu 20.04 LTS. QT version i was trying to install was 5.7, earlier i tried V 4 series,but every time it was giving issues in installation

      J Online
      J Online
      JonB
      wrote on 21 Sept 2022, 07:20 last edited by
      #3

      @GargDivanshu

      Problem in setting up QT on Linux Ubuntu

      working on windows 10 X 64

      How does this work?

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ChrisW67
        wrote on 21 Sept 2022, 07:28 last edited by
        #4

        OP is setting up Qt inside a Windows Subsystem for Linux (Ubuntu) on Windows.
        The installer seems to be Qt 5.7

        J 1 Reply Last reply 21 Sept 2022, 07:39
        1
        • C ChrisW67
          21 Sept 2022, 07:28

          OP is setting up Qt inside a Windows Subsystem for Linux (Ubuntu) on Windows.
          The installer seems to be Qt 5.7

          J Online
          J Online
          JonB
          wrote on 21 Sept 2022, 07:39 last edited by
          #5

          @ChrisW67 said in Problem in setting up QT on Linux Ubuntu:

          OP is setting up Qt inside a Windows Subsystem for Linux (Ubuntu) on Windows.

          Ohhhh, would be nice if they mentioned this!

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ChrisW67
            wrote on 21 Sept 2022, 08:35 last edited by
            #6

            It seems to be possible at least in some environments under Windows 111 according to this thread. Little detail on the required sacrifices to the Windows deities.

            J 1 Reply Last reply 21 Sept 2022, 08:40
            0
            • C ChrisW67
              21 Sept 2022, 08:35

              It seems to be possible at least in some environments under Windows 111 according to this thread. Little detail on the required sacrifices to the Windows deities.

              J Online
              J Online
              JonB
              wrote on 21 Sept 2022, 08:40 last edited by
              #7

              @ChrisW67 said in Problem in setting up QT on Linux Ubuntu:

              under Windows 111

              A future version of Windows in 100 years time? ;-)

              I would ask @GargDivanshu what version of Ubuntu he is installing and whether it wouldn't be easiest if he accepted the version of Qt issued with that Ubuntu rather than building one? But we don't know what Ubuntu or where he got/chose Qt 5.7 from....

              G C 2 Replies Last reply 21 Sept 2022, 15:53
              0
              • J JonB
                21 Sept 2022, 08:40

                @ChrisW67 said in Problem in setting up QT on Linux Ubuntu:

                under Windows 111

                A future version of Windows in 100 years time? ;-)

                I would ask @GargDivanshu what version of Ubuntu he is installing and whether it wouldn't be easiest if he accepted the version of Qt issued with that Ubuntu rather than building one? But we don't know what Ubuntu or where he got/chose Qt 5.7 from....

                G Offline
                G Offline
                GargDivanshu
                wrote on 21 Sept 2022, 15:53 last edited by
                #8

                @JonB I never knew that we get a version of QT issued with our Ubuntu, How do i check it? and will it solve my issue as i am on Windows 10, WSL 2, Ubuntu 20.04, and not entirely on Linux system.

                J 1 Reply Last reply 21 Sept 2022, 16:19
                0
                • G GargDivanshu
                  21 Sept 2022, 15:53

                  @JonB I never knew that we get a version of QT issued with our Ubuntu, How do i check it? and will it solve my issue as i am on Windows 10, WSL 2, Ubuntu 20.04, and not entirely on Linux system.

                  J Online
                  J Online
                  JonB
                  wrote on 21 Sept 2022, 16:19 last edited by JonB
                  #9

                  @GargDivanshu said in Problem in setting up QT on Linux Ubuntu (wsl2):

                  Ubuntu 20.04

                  That has Qt 5.12.x, I think, it's what I have. It's fine, and a lot easier than building for yourself, till you need a future version :)

                  You fetch the packages with apt-get. Go into a terminal, do a sudo -s or type sudo in front of each command.

                  • Do a apt-get update first.
                  • You may need apt-get install build-essential for compilers etc.
                  • The base package is apt-get install qt5-default. I think that's all you need.
                  • The Creator IDE is apt-get install qtcreator.

                  If you're ever not sure, type apt-get install qt and press Tab key twice to show all possible completions for available packages :) Don't you think Linux command-line like this is great, who needs a windowing system? ;-)

                  G 2 Replies Last reply 22 Sept 2022, 10:42
                  2
                  • J JonB
                    21 Sept 2022, 16:19

                    @GargDivanshu said in Problem in setting up QT on Linux Ubuntu (wsl2):

                    Ubuntu 20.04

                    That has Qt 5.12.x, I think, it's what I have. It's fine, and a lot easier than building for yourself, till you need a future version :)

                    You fetch the packages with apt-get. Go into a terminal, do a sudo -s or type sudo in front of each command.

                    • Do a apt-get update first.
                    • You may need apt-get install build-essential for compilers etc.
                    • The base package is apt-get install qt5-default. I think that's all you need.
                    • The Creator IDE is apt-get install qtcreator.

                    If you're ever not sure, type apt-get install qt and press Tab key twice to show all possible completions for available packages :) Don't you think Linux command-line like this is great, who needs a windowing system? ;-)

                    G Offline
                    G Offline
                    GargDivanshu
                    wrote on 22 Sept 2022, 10:42 last edited by
                    #10

                    @JonB Thank you very much I was able to move forward.

                    1 Reply Last reply
                    0
                    • J JonB
                      21 Sept 2022, 16:19

                      @GargDivanshu said in Problem in setting up QT on Linux Ubuntu (wsl2):

                      Ubuntu 20.04

                      That has Qt 5.12.x, I think, it's what I have. It's fine, and a lot easier than building for yourself, till you need a future version :)

                      You fetch the packages with apt-get. Go into a terminal, do a sudo -s or type sudo in front of each command.

                      • Do a apt-get update first.
                      • You may need apt-get install build-essential for compilers etc.
                      • The base package is apt-get install qt5-default. I think that's all you need.
                      • The Creator IDE is apt-get install qtcreator.

                      If you're ever not sure, type apt-get install qt and press Tab key twice to show all possible completions for available packages :) Don't you think Linux command-line like this is great, who needs a windowing system? ;-)

                      G Offline
                      G Offline
                      GargDivanshu
                      wrote on 22 Sept 2022, 18:24 last edited by
                      #11

                      @JonB well though i was able to download 5.12 but my application can't work on this versi0on and requires 5.15. If you don't mind can you help me out ?

                      J 1 Reply Last reply 22 Sept 2022, 18:41
                      0
                      • G GargDivanshu
                        22 Sept 2022, 18:24

                        @JonB well though i was able to download 5.12 but my application can't work on this versi0on and requires 5.15. If you don't mind can you help me out ?

                        J Online
                        J Online
                        JonB
                        wrote on 22 Sept 2022, 18:41 last edited by
                        #12

                        @GargDivanshu
                        If you can upgrade to Ubuntu 22.04 that seems to come with Qt 5.15, for you to verify? Else I imagine you will need to build Qt 5.15 yourself.

                        J 1 Reply Last reply 22 Sept 2022, 18:46
                        0
                        • J JonB
                          22 Sept 2022, 18:41

                          @GargDivanshu
                          If you can upgrade to Ubuntu 22.04 that seems to come with Qt 5.15, for you to verify? Else I imagine you will need to build Qt 5.15 yourself.

                          J Offline
                          J Offline
                          JoeCFD
                          wrote on 22 Sept 2022, 18:46 last edited by JoeCFD
                          #13

                          @JonB Ubuntu upgrade is not needed. I have 5.15.2 on Ubuntu 18.04. You can install a few Qt versions on the same machine. Not sure why he made two threads.
                          https://forum.qt.io/topic/139499/upgrading-from-qt-5-12-8-to-5-15/6

                          J 1 Reply Last reply 22 Sept 2022, 19:04
                          0
                          • J JoeCFD
                            22 Sept 2022, 18:46

                            @JonB Ubuntu upgrade is not needed. I have 5.15.2 on Ubuntu 18.04. You can install a few Qt versions on the same machine. Not sure why he made two threads.
                            https://forum.qt.io/topic/139499/upgrading-from-qt-5-12-8-to-5-15/6

                            J Online
                            J Online
                            JonB
                            wrote on 22 Sept 2022, 19:04 last edited by JonB
                            #14

                            @JoeCFD
                            Oh right, I only know about using the apt-supplied version which comes with Ubuntu releases. I thought if you wanted anything else you had to build from source. Plus I like using apt :)

                            J 1 Reply Last reply 22 Sept 2022, 20:14
                            0
                            • J JonB
                              22 Sept 2022, 19:04

                              @JoeCFD
                              Oh right, I only know about using the apt-supplied version which comes with Ubuntu releases. I thought if you wanted anything else you had to build from source. Plus I like using apt :)

                              J Offline
                              J Offline
                              JoeCFD
                              wrote on 22 Sept 2022, 20:14 last edited by
                              #15

                              @JonB Not always the case. Some Ubuntu GUI apps may be built and linked to the installed Qt. Therefore, it may be better to install the new ones under /opt/ while upgrade may make these apps unstable.

                              J 1 Reply Last reply 22 Sept 2022, 21:18
                              0
                              • J JoeCFD
                                22 Sept 2022, 20:14

                                @JonB Not always the case. Some Ubuntu GUI apps may be built and linked to the installed Qt. Therefore, it may be better to install the new ones under /opt/ while upgrade may make these apps unstable.

                                J Online
                                J Online
                                JonB
                                wrote on 22 Sept 2022, 21:18 last edited by
                                #16

                                @JoeCFD wrote:

                                download qt-unified-linux-x64-online.run from

                                https://download.qt.io/official_releases/online_installers/

                                and install QT 5.15.2 into /opt/Qt

                                Does the download include binaries already built for Ubuntu, like the Qt version you get from Ubuntu repo, or is it just sources you need to compile yourself?

                                J 1 Reply Last reply 22 Sept 2022, 23:11
                                0
                                • J JonB
                                  21 Sept 2022, 08:40

                                  @ChrisW67 said in Problem in setting up QT on Linux Ubuntu:

                                  under Windows 111

                                  A future version of Windows in 100 years time? ;-)

                                  I would ask @GargDivanshu what version of Ubuntu he is installing and whether it wouldn't be easiest if he accepted the version of Qt issued with that Ubuntu rather than building one? But we don't know what Ubuntu or where he got/chose Qt 5.7 from....

                                  C Offline
                                  C Offline
                                  ChrisW67
                                  wrote on 22 Sept 2022, 22:07 last edited by
                                  #17

                                  @JonB No, just typing with my usual flair (and elbows) :)

                                  1 Reply Last reply
                                  0
                                  • J JonB
                                    22 Sept 2022, 21:18

                                    @JoeCFD wrote:

                                    download qt-unified-linux-x64-online.run from

                                    https://download.qt.io/official_releases/online_installers/

                                    and install QT 5.15.2 into /opt/Qt

                                    Does the download include binaries already built for Ubuntu, like the Qt version you get from Ubuntu repo, or is it just sources you need to compile yourself?

                                    J Offline
                                    J Offline
                                    JoeCFD
                                    wrote on 22 Sept 2022, 23:11 last edited by
                                    #18

                                    @JonB the same: binaries, headers and libs.

                                    1 Reply Last reply
                                    0

                                    11/18

                                    22 Sept 2022, 18:24

                                    • Login

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