QTCreator 6.0 can't start
-
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?
-
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$
-
ok this sounds good, but I don't understand why the problem occurs on WSL on two separate computers, on the third computer with Debian as OS everything works fine? Are the engineers working on QT saving money on testing ? ;)