QTCreator 6.0 can't start
-
What does
ldd /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin/./../lib/Qt/lib/libQt6Core.so.6
say? -
that
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ldd /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin/./../lib/Qt/lib/libQt6Core.so.6 linux-vdso.so.1 (0x00007fffd7a3c000) libicui18n.so.56 => /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib/libicui18n.so.56 (0x00007f990d7a0000) libicuuc.so.56 => /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib/libicuuc.so.56 (0x00007f990d3e0000) libicudata.so.56 => /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib/libicudata.so.56 (0x00007f990b9f0000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f990b9e0000) libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f990b8b0000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f990b890000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f990b85d000) libgthread-2.0.so.0 => /lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007f990b850000) librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f990b840000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f990b650000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f990b501000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f990b4e0000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f990b2d0000) /lib64/ld-linux-x86-64.so.2 (0x00007f990e27e000) libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f990b250000) cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
-
Please make sure there is no invalid symlink named
libQt6Core.so.6
somewhere in your LD_LIBRARY_PATH. -
in my case it's look like:
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ./qtcreator.sh print LD_LIBRARY_PATH inside qtcreator.sh /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/qtcreator:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib print env after export LD_LIBRARY_PATH LESSOPEN=| /usr/bin/lesspipe %s USER=cyniu SHLVL=1 LD_LIBRARY_PATH=/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/qtcreator:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/lib HOME=/home/cyniu OLDPWD=/home/cyniu WSL_DISTRO_NAME=Ubuntu-20.04 LOGNAME=cyniu NAME=cyniu-PC _=./qtcreator.sh TERM=xterm-256color PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Users/cyniu/DOCUME~1/MobaXterm/slash/bin:/mnt/c/WINDOWS/:/mnt/c/WINDOWS/system32/:/mnt/c/Program Files/AdoptOpenJDK/jdk-8.0.282.8-hotspot/bin:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Program Files (x86)/VMware/VMware Player/bin/:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/Program Files/PuTTY/:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files (x86)/HP/Common/HPDestPlgIn/:/mnt/c/Users/cyniu/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files (x86)/HP/Common/HPDestPlgIn/:/mnt/c/Users/cyniu/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/WINDOWS/sysnative/:/snap/bin DISPLAY=127.0.0.1:0.0 LANG=C.UTF-8 LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36: SHELL=/bin/bash LESSCLOSE=/usr/bin/lesspipe %s %s PWD=/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin XDG_DATA_DIRS=/usr/local/share:/usr/share:/var/lib/snapd/desktop HOSTTYPE=x86_64 WSLENV= ./qtcreator: error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
as you can see I just added some printouts inside the qtcreathor.sh script
I think it looks good, right?
-
@Christian-Ehrlicher said in QTCreator 6.0 can't start:
libQt6Core.so.6
locate libQt6Core.so.6 to check if there are duplicate libQt6Core
-
@JoeCFD said in QTCreator 6.0 can't start:
locate libQt6Core.so.6 to check if there are duplicate libQt6Core
I don't understand,
what am I supposed to do?
@cyniu88 locate is a command.
locate libQt6Core.so.6You may need to reinstall qt creator. Link with relative path is broken. If you reinstall it and it has the same problem, it might be a Qt build problem. I will try it out at home to see I have the same problem.
-
locate libQt6Core.so.6
return nothing
I reinstalled QT many times, still the result is the same.
I took another PC (Windows 10 WSL Ubuntu 20) but qtcreator does not start for the same reason :(on PC with DEBIAN qtcreatro 6.0 worsk well
-
@JoeCFD said in QTCreator 6.0 can't start:
locate libQt6Core.so.6 to check if there are duplicate libQt6Core
I don't understand,
what am I supposed to do?
-
@Christian-Ehrlicher said in QTCreator 6.0 can't start:
find / -name libQt6Core.so.6
...will be ghostly silent ;-) I think the OP should try
find / -name libQt6Core.so.6 -ls ## or `-print` instead of `-ls` in the unlikely case your Linux doesn't accept it
-
locate libQt6Core.so.6
return nothing
I reinstalled QT many times, still the result is the same.
I took another PC (Windows 10 WSL Ubuntu 20) but qtcreator does not start for the same reason :(on PC with DEBIAN qtcreatro 6.0 worsk well
@cyniu88
There has been an on-going topic, unresolved so far, at https://forum.qt.io/topic/132524/cannot-get-any-query-output-from-executable-opt-qt-6-2-2-gcc_64-bin-qmake. It is to do with Qt Creator reporting unable to findlibQt6Core.so.6
under Qt6. I have a feeling that topic and this are somehow the same issue? Maybe @Christian-Ehrlicher has a view?I was confused there, and still am in this topic here, as to where exactly
libQt6Core.so.6 => not found
comes from. There are two possible ways get message"error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
Either it actually cannot find a
libQt6Core.so.6
file, or it can find the file but fails to load because of missing/incorrect dependencies. The error message then reports that case as "no such file" on thelibQt6Core.so.6
it was trying to load.Use
ldd
on existinglibQt6Core.so.6
file(s) to determine whether they are loadable. Bear that in mind if you think the file should not be reporting "not found". -
@cyniu88
There has been an on-going topic, unresolved so far, at https://forum.qt.io/topic/132524/cannot-get-any-query-output-from-executable-opt-qt-6-2-2-gcc_64-bin-qmake. It is to do with Qt Creator reporting unable to findlibQt6Core.so.6
under Qt6. I have a feeling that topic and this are somehow the same issue? Maybe @Christian-Ehrlicher has a view?I was confused there, and still am in this topic here, as to where exactly
libQt6Core.so.6 => not found
comes from. There are two possible ways get message"error while loading shared libraries: libQt6Core.so.6: cannot open shared object file: No such file or directory
Either it actually cannot find a
libQt6Core.so.6
file, or it can find the file but fails to load because of missing/incorrect dependencies. The error message then reports that case as "no such file" on thelibQt6Core.so.6
it was trying to load.Use
ldd
on existinglibQt6Core.so.6
file(s) to determine whether they are loadable. Bear that in mind if you think the file should not be reporting "not found". -
@JonB said in QTCreator 6.0 can't start:
Use ldd on existing libQt6Core.so.6 file(s) to determine whether they are loadable. Bear that in mind if you think the file should not be reporting "not found".
I do this a few posts above
-
here is output
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -l /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/bin total 84 -rwxrwxrwx 1 root root 77 Dec 1 17:52 qt.conf -rwxrwxrwx 1 root root 83600 Dec 1 17:52 qtdiag cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
I am not sure what you mean, but qtcreator binary file is located in
Tools/QtCreator/bin
not in
Tools/QtCreator/lib/Qt/bin
-
here is output
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -l /mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/lib/Qt/bin total 84 -rwxrwxrwx 1 root root 77 Dec 1 17:52 qt.conf -rwxrwxrwx 1 root root 83600 Dec 1 17:52 qtdiag cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
I am not sure what you mean, but qtcreator binary file is located in
Tools/QtCreator/bin
not in
Tools/QtCreator/lib/Qt/bin
-
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -lah total 1.4M drwxrwxrwx 1 root root 4.0K Dec 8 19:21 . drwxrwxrwx 1 root root 4.0K Dec 7 23:10 .. -rwxrwxrwx 1 root root 66 Dec 8 18:07 find.txt -rwxrwxrwx 1 root root 388K Dec 1 17:51 qbs -rwxrwxrwx 1 root root 44K Dec 1 17:51 qbs-config -rwxrwxrwx 1 root root 53K Dec 1 17:51 qbs-config-ui -rwxrwxrwx 1 root root 52K Dec 1 17:51 qbs-create-project -rwxrwxrwx 1 root root 60K Dec 1 17:51 qbs-setup-android -rwxrwxrwx 1 root root 218K Dec 1 17:51 qbs-setup-qt -rwxrwxrwx 1 root root 403K Dec 1 17:51 qbs-setup-toolchains -rwxrwxrwx 1 root root 84 Dec 1 17:52 qt.conf -rwxrwxrwx 1 root root 110K Dec 1 17:51 qtcreator -rwxrwxrwx 1 root root 1.4K Dec 8 09:02 qtcreator.sh cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
-
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -lah total 1.4M drwxrwxrwx 1 root root 4.0K Dec 8 19:21 . drwxrwxrwx 1 root root 4.0K Dec 7 23:10 .. -rwxrwxrwx 1 root root 66 Dec 8 18:07 find.txt -rwxrwxrwx 1 root root 388K Dec 1 17:51 qbs -rwxrwxrwx 1 root root 44K Dec 1 17:51 qbs-config -rwxrwxrwx 1 root root 53K Dec 1 17:51 qbs-config-ui -rwxrwxrwx 1 root root 52K Dec 1 17:51 qbs-create-project -rwxrwxrwx 1 root root 60K Dec 1 17:51 qbs-setup-android -rwxrwxrwx 1 root root 218K Dec 1 17:51 qbs-setup-qt -rwxrwxrwx 1 root root 403K Dec 1 17:51 qbs-setup-toolchains -rwxrwxrwx 1 root root 84 Dec 1 17:52 qt.conf -rwxrwxrwx 1 root root 110K Dec 1 17:51 qtcreator -rwxrwxrwx 1 root root 1.4K Dec 8 09:02 qtcreator.sh cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
-
cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$ ls -lah total 1.4M drwxrwxrwx 1 root root 4.0K Dec 8 19:21 . drwxrwxrwx 1 root root 4.0K Dec 7 23:10 .. -rwxrwxrwx 1 root root 66 Dec 8 18:07 find.txt -rwxrwxrwx 1 root root 388K Dec 1 17:51 qbs -rwxrwxrwx 1 root root 44K Dec 1 17:51 qbs-config -rwxrwxrwx 1 root root 53K Dec 1 17:51 qbs-config-ui -rwxrwxrwx 1 root root 52K Dec 1 17:51 qbs-create-project -rwxrwxrwx 1 root root 60K Dec 1 17:51 qbs-setup-android -rwxrwxrwx 1 root root 218K Dec 1 17:51 qbs-setup-qt -rwxrwxrwx 1 root root 403K Dec 1 17:51 qbs-setup-toolchains -rwxrwxrwx 1 root root 84 Dec 1 17:52 qt.conf -rwxrwxrwx 1 root root 110K Dec 1 17:51 qtcreator -rwxrwxrwx 1 root root 1.4K Dec 8 09:02 qtcreator.sh cyniu@cyniu-PC:/mnt/f/LINUX-UBUNTU/QT/Tools/QtCreator/bin$
@cyniu88
If this were my problem, which it is not, and I wanted to investigate....Like you, I believe you have shown an acceptable
libQt6Core.so.6
does exist in the same location as other libraries it reports as finding successfully. Please triple-check this assumption on your system.I am guessing the
libQt6Core.so.6 => not found
line actually means "cannot be loaded successfully", which I believe is what can be reported.So, I would run
ldd
on all those other dependencies ofqtcreator
. Like, is it possible thatldd libQt6Gui.so.6
would reveal a different dependent version of another library required bylibQt6Core.so.6
? I don't know whetherldd qtcreator
's output would tell you that in one go. (Maybe https://sourceforge.net/projects/recursive-ldd/ is useful here?) Test it for a couple of select ones if it's a lot of work, or get creative piping all the output throughsort -u
or similar :)Also, do have a look at that https://forum.qt.io/topic/132524/cannot-get-any-query-output-from-executable-opt-qt-6-2-2-gcc_64-bin-qmake I referred you too. Aren't you two the same problem?