QTCreator 6.0 can't start
-
@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.) -
@hskoglund said in QTCreator 6.0 can't start:
WSL Ubuntu
is it gcc/g++ issue? What is gcc version on WSL Ubuntu? Qt 6 needs C++17.
-
@hskoglund said in QTCreator 6.0 can't start:
WSL Ubuntu
is it gcc/g++ issue? What is gcc version on WSL Ubuntu? Qt 6 needs C++17.
@JoeCFD Found the solution by googling, this post contains an "atomic bomb", an ELF stripping/cleaning command:
strip --remove-section=.note.ABI-tag libQt6Core.so.6.2.2
To get Qt Creator 6.0.0 to work on Ubuntu WSL, use this stripping command:
strip --remove-section=.note.ABI-tag ~/Qt/Tools/QtCreator/lib/Qt/lib/libQt6Core.so.6.2.1
and then to be able to build and run a Qt6 program, apply the same patch on the core dll for Qt 6.2.2 itself:
strip --remove-section=.note.ABI-tag ~/Qt/6.2.2/gcc_64/lib/libQt6Core.so.6.2.2