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. qtcreator under WSL ubuntu throws an error
Qt 6.11 is out! See what's new in the release blog

qtcreator under WSL ubuntu throws an error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
18 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.
  • iwrwrcI iwrwrc

    yes it's here. ive found it using apt-file

    libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
    libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12
    libqt5core5a: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8
    nsight-compute: /usr/lib/nsight-compute/host/linux-desktop-glibc_2_11_3-x64/libQt5Core.so.5
    nsight-systems: /usr/lib/nsight-systems/Host-x86_64/libQt5Core.so.5
    
    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #6

    @iwrwrc Looks good. Try

    ldd qtcreator
    

    What does it output?

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

    1 Reply Last reply
    0
    • iwrwrcI Offline
      iwrwrcI Offline
      iwrwrc
      wrote on last edited by
      #7

      @jsulm said in qtcreator under WSL ubuntu throws an error:

      ldd qtcreator

      ldd: ./qtcreator: No such file or directory
      
      jsulmJ 1 Reply Last reply
      0
      • iwrwrcI iwrwrc

        @jsulm said in qtcreator under WSL ubuntu throws an error:

        ldd qtcreator

        ldd: ./qtcreator: No such file or directory
        
        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #8

        @iwrwrc Provide whole path to qtcreator

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

        1 Reply Last reply
        1
        • iwrwrcI Offline
          iwrwrcI Offline
          iwrwrc
          wrote on last edited by
          #9

          done. output >

          linux-vdso.so.1 (0x00007fffd354f000)
                 libExtensionSystem.so.4 => /usr/bin/./../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4 (0x00007f22d6cd0000)
                 libUtils.so.4 => /usr/bin/./../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4 (0x00007f22d6a10000)
                 libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f22d6360000)
                 libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f22d5d70000)
                 libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f22d5ba0000)
                 libQt5Core.so.5 => not found
                 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f22d5b6d000)
                 libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f22d5980000)
                 libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f22d5960000)
                 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f22d5760000)
                 libQt5Core.so.5 => not found
                 libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f22d5270000)
                 libQt5Xml.so.5 => /lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f22d5220000)
                 libQt5Core.so.5 => not found
                 libQt5Core.so.5 => not found
                 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f22d50d1000)
                 libQt5Core.so.5 => not found
                 libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f22d5030000)
                 libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f22d4ff0000)
                 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f22d4fd0000)
                 libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f22d4ec0000)
                 libQt5Core.so.5 => not found
                 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f22d4eb0000)
                 /lib64/ld-linux-x86-64.so.2 (0x00007f22d6d49000)
                 libQt5Core.so.5 => not found
                 libQt5Core.so.5 => not found
                 libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f22d4de0000)
                 libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f22d4da0000)
                 libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f22d4c70000)
                 libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f22d4ba0000)
                 libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f22d4b70000)
                 libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f22d4a30000)
                 libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f22d49b0000)
                 libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f22d4980000)
                 libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f22d4960000)
                 libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f22d4950000)
                 libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f22d4930000)
          
          jsulmJ 1 Reply Last reply
          0
          • iwrwrcI iwrwrc

            done. output >

            linux-vdso.so.1 (0x00007fffd354f000)
                   libExtensionSystem.so.4 => /usr/bin/./../lib/x86_64-linux-gnu/qtcreator/libExtensionSystem.so.4 (0x00007f22d6cd0000)
                   libUtils.so.4 => /usr/bin/./../lib/x86_64-linux-gnu/qtcreator/libUtils.so.4 (0x00007f22d6a10000)
                   libQt5Widgets.so.5 => /lib/x86_64-linux-gnu/libQt5Widgets.so.5 (0x00007f22d6360000)
                   libQt5Gui.so.5 => /lib/x86_64-linux-gnu/libQt5Gui.so.5 (0x00007f22d5d70000)
                   libQt5Network.so.5 => /lib/x86_64-linux-gnu/libQt5Network.so.5 (0x00007f22d5ba0000)
                   libQt5Core.so.5 => not found
                   libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f22d5b6d000)
                   libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f22d5980000)
                   libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f22d5960000)
                   libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f22d5760000)
                   libQt5Core.so.5 => not found
                   libQt5Qml.so.5 => /lib/x86_64-linux-gnu/libQt5Qml.so.5 (0x00007f22d5270000)
                   libQt5Xml.so.5 => /lib/x86_64-linux-gnu/libQt5Xml.so.5 (0x00007f22d5220000)
                   libQt5Core.so.5 => not found
                   libQt5Core.so.5 => not found
                   libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f22d50d1000)
                   libQt5Core.so.5 => not found
                   libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f22d5030000)
                   libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f22d4ff0000)
                   libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f22d4fd0000)
                   libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f22d4ec0000)
                   libQt5Core.so.5 => not found
                   libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f22d4eb0000)
                   /lib64/ld-linux-x86-64.so.2 (0x00007f22d6d49000)
                   libQt5Core.so.5 => not found
                   libQt5Core.so.5 => not found
                   libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f22d4de0000)
                   libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f22d4da0000)
                   libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f22d4c70000)
                   libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f22d4ba0000)
                   libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f22d4b70000)
                   libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f22d4a30000)
                   libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f22d49b0000)
                   libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f22d4980000)
                   libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f22d4960000)
                   libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f22d4950000)
                   libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f22d4930000)
            
            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #10

            @iwrwrc Try to create a symbolic link /lib/x86_64-linux-gnu/libQt5Core.so.5 pointing to /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
            For some reason libQt5Core.so.5 is in /usr/lib/x86_64-linux-gnu and other Qt stuff in /lib/x86_64-linux-gnu

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

            1 Reply Last reply
            2
            • iwrwrcI Offline
              iwrwrcI Offline
              iwrwrc
              wrote on last edited by iwrwrc
              #11

              @iwrwrc said in qtcreator under WSL ubuntu throws an error:

              it starts pointing to itself

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

                Hi,

                How did you create the symbolic link exactly ?

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                1
                • iwrwrcI Offline
                  iwrwrcI Offline
                  iwrwrc
                  wrote on last edited by
                  #13

                  i did

                  ln -s /lib/x86_64-linux-gnu/libQt5Core.so.5  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                  

                  had an output saying file does not exist. so i forced it using

                  ls -sf /lib/x86_64-linux-gnu/libQt5Core.so.5  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                  

                  after this. every time i have a warning of too many levels of symbolic links.

                  My problem is now resolved using just this command

                  sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                  
                  jsulmJ 1 Reply Last reply
                  0
                  • iwrwrcI iwrwrc

                    i did

                    ln -s /lib/x86_64-linux-gnu/libQt5Core.so.5  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                    

                    had an output saying file does not exist. so i forced it using

                    ls -sf /lib/x86_64-linux-gnu/libQt5Core.so.5  /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                    

                    after this. every time i have a warning of too many levels of symbolic links.

                    My problem is now resolved using just this command

                    sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                    
                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #14

                    @iwrwrc It's (ln -s target link_name):

                    ln -s /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 /lib/x86_64-linux-gnu/libQt5Core.so.5
                    

                    See "man ln".

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

                    JonBJ 1 Reply Last reply
                    2
                    • jsulmJ jsulm

                      @iwrwrc It's (ln -s target link_name):

                      ln -s /usr/lib/x86_64-linux-gnu/libQt5Core.so.5 /lib/x86_64-linux-gnu/libQt5Core.so.5
                      

                      See "man ln".

                      JonBJ Online
                      JonBJ Online
                      JonB
                      wrote on last edited by JonB
                      #15

                      @jsulm said in qtcreator under WSL ubuntu throws an error:

                      See "man ln".

                      @iwrwrc
                      Please take the time to read the manual page on a command if you don't know how to use it or it gives an error you don't understand, rather than just continuing blindly....

                      My problem is now resolved using just this command

                      sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

                      Wot?? We don't execute some command to alter a supplied file in a system area because we have some issue...! Restore this file immediately!

                      iwrwrcI 1 Reply Last reply
                      0
                      • iwrwrcI Offline
                        iwrwrcI Offline
                        iwrwrc
                        wrote on last edited by
                        #16

                        Yes, thanks.I see that i confused between target and link name

                        1 Reply Last reply
                        0
                        • iwrwrcI Offline
                          iwrwrcI Offline
                          iwrwrc
                          wrote on last edited by
                          #17

                          Ok, i'll try restore the file. and see if i can resolve the issue

                          1 Reply Last reply
                          0
                          • JonBJ JonB

                            @jsulm said in qtcreator under WSL ubuntu throws an error:

                            See "man ln".

                            @iwrwrc
                            Please take the time to read the manual page on a command if you don't know how to use it or it gives an error you don't understand, rather than just continuing blindly....

                            My problem is now resolved using just this command

                            sudo strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5

                            Wot?? We don't execute some command to alter a supplied file in a system area because we have some issue...! Restore this file immediately!

                            iwrwrcI Offline
                            iwrwrcI Offline
                            iwrwrc
                            wrote on last edited by
                            #18

                            @JonB I have resotred it now.

                            and

                            ls -l /lib/x86_64-linux-gnu/libQt5Core.so.5
                            
                            lrwxrwxrwx 1 root root 41 Nov 25 11:15 /lib/x86_64-linux-gnu/libQt5Core.so.5 -> /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
                            
                            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