Unsolved qtcreator under WSL ubuntu throws an error
-
@iwrwrc said in qtcreator under WSL ubuntu throws an error:
.. is there a way to troubleshoot the problem?
libQt5Core.so.5 shared library is not found.
You can search manually for it to see whether it is somewhere. -
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
-
-
@jsulm said in qtcreator under WSL ubuntu throws an error:
ldd qtcreator
ldd: ./qtcreator: No such file or directory
-
@iwrwrc Provide whole path to qtcreator
-
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)
-
@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 -
@iwrwrc said in qtcreator under WSL ubuntu throws an error:
it starts pointing to itself
-
Hi,
How did you create the symbolic link exactly ?
-
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
-
@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".
-
@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!
-
Yes, thanks.I see that i confused between target and link name
-
Ok, i'll try restore the file. and see if i can resolve the issue
-
@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