Solved Qt Creator 4.8.0 doesn't launch in Ubuntu 18.04.
-
Yeah, looks pretty good.
What we can see is a crash while detecting the Android toolchains. Do you have tools for Android development installed?
-
@aha_1980
Yes, these are the paths:/home/user/Android/Sdk
/opt/android-studio/android-ndk-r10e
Looking at my
PATH
variable, I can't see any reference to the paths above, could these be an issue? -
@Oshio I honestly don't know, never done Android development.
Have you used them before with Creator (an older version e.g.)?
-
@aha_1980
I needed to create an Android app a while ago, when I was using Ubuntu 16.04 and everything works fine.I upgraded to Ubuntu 18.04 and everything have become a mess, I uninstalled the previous Qt, but when I used the online and offline installer, every Qt version that I attempted (more than 3) to install, freezes in the middle of the process. Then, I installed the default version at the repository, from this point, the kits for Android development were not available and at the configuration options for Android there was a warning that kit could not be created automatically. I searched for solutions for a while and when nothing solved my problem I tried the online installer once again, I was hopping that the new version 5.12.0 could run without any troubles, the installation finishes apparently successful without warnings or errors, but the Qt Creator doesn't launches.
This is the history on how I came here asking for help.
I'd like to solve this to not have the headache of downgrading my Ubuntu.
-
Since you have Qt 5.12, one thing you can do is to update to the latest NDK that uses clang.
-
Hi, also if you don't need the Android stuff right now, you could try disabling the Android plugin.
In Qt Creator it's in the Help menu, About Plugins. But since your Qt Creator doesn't start, instead you can try deleting (or renaming) the .dll itself: /opt/Qt/Tools/QtCreator/lib/qtcreator/plugins/libAndroid.so -
I found the solution for the primary issue.
I follow @SGaist's suggestion to update the NDK, first I searched how to uninstall the previous version of NDK, then I discover its path should be in system
Path
variable. As you can read in one of my previous comment there was no reference to NDK at myPATH
variable, maybe it got erased when I upgraded my Ubuntu or maybe I deleted without noticing, not sure.After this I performed the following steps, in order of appearance:
- Delete NDK older version;
- Update Android SDK, older version was 1 year old at least (I forgot to see the version before updating);
- Downloaded newest NDK stable version, r18b at the time this post is written;
- Added the NDK version r18b path to
PATH
variable. In my case I added it using the~/.bashrc
file and reloaded withsource ~/.bashrc
; - Launch the Qt Creator using desktop launcher;
Qt Creator opens!
I have one question before tagging this topic as solved.
Every Example Project that I try to build using one of the Android kits, gives the error:
/opt/Qt/5.12.0/android_armv7/include/QtCore/qglobal.h:45:12: fatal error: 'type_traits' file not found
Is this related or should I tag as solved and open another topic?
-
@Oshio I'd create a new topic for that to get more attention. Looks like a compiler issue...
-
Here is the link to the new topic regarding the build error.
Thanks for helping me guys!
-
There is now also QTCREATORBUG-21780. You can track and comment it to get more information about the problem.
Regards