QTCreator 6.0 can't start
-
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 ? ;)
-
@JoeCFD said in QTCreator 6.0 can't start:
Actually it is good enough for you to use 6.0 qt creator.
maybe yes, unfortunately qtcreator 6.0 ....
do you plan to install it at your PC and check if you have the same problem as me ?
Are You working for Qt Group? -
Hi, only Qt6 has problems in WSL Ubuntu, you can use the online Maintenance Tool in WSL to remove Qt6.21 and Qt6.2.2 and instead install Qt 5.15.2 or 5.12.12, they both work fine in WSL Ubuntu.
However since the latest release of Qt Creator (6.0.0) is based on Qt 6 it will not work on WSL Ubuntu. Instead you can you an older version of Qt Creator, for example 5.0.3:
https://download.qt.io/official_releases/qtcreator/5.0/5.0.3/
(almost at the end of the list)
this one is based on Qt5 so it will work fine :-) -
@cyniu88 said in QTCreator 6.0 can't start:
Is there any plan to support QT 6 on WSL Ubuntu ?
This is something to ask on Qt developers mailing list
-
Hi, note that no Qt6 program can run on WSL Ubuntu currently, for example if you build a vanilla widget Hello World app for Qt 6.2.2, it will not start on WSL Ubuntu, you have to build it using Qt 5.15.2 or Qt 5.12.12.
(I have the same problem on Windows 7, only Qt5-based programs will run.)