Installing and configuring QT Creator 5.6 ... some issues



  • Hi to all!

    I have installed QT 5.6 from the official QT site, I have selected to install support to Android, after installation, I clicked on Tools->Options and a window appeared and noticed that Android SDK and NDK were missing, So I clicked on the download button and downloaded both SDK and NDK, after that, I extracted the zip and tar files and relocate the directories to a permanent place, then I entered on SDK directory and searched for the command "android" to install the APIs, then I ran the command ./android and a window appeared telling me to select what APIs to install, I have selected API 23 and 16 (cause are the versions of android smartphones I have, I intend to start programming for android devices...), after that, I opended Qt Creator 5.6 Tools->Options and added the SDK and NDK directory path... after that, I noticed the following:

    http://i.imgur.com/zibTZXF.png
    http://i.imgur.com/cfN2u59.png
    http://i.imgur.com/dPdr9m7.png
    http://i.imgur.com/bnO27pl.png
    http://i.imgur.com/qiGbx6M.png
    http://i.imgur.com/mf8uA6Y.png
    http://i.imgur.com/mfTn2P0.png

    There are 3 issues:

    1 - I have installed Cmake by typing "sudo apt-get install cmake" and noticed that Qt Creator has detected cmake in "/usr/bin/cmake", but now I am having problems with the KITS, there are those red and yellows signs advising that the debuggers haven't been found!!! I have installed the last Android NDK (android-ndk-r11c) from the official Site. Here a screenshot: http://i.imgur.com/zibTZXF.png

    2- On General tab, every time I open Qt Creator, it shows:

    /bin/sh: 1: /mnt/MyFiles/usr/local/android-ndk-r11c/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: not found
    /bin/sh: 1: /mnt/MyFiles/usr/local/android-ndk-r11c/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found

    I have checked the toolchains directory and found only these folders:

    aarch64-linux-android-4.9
    arm-linux-androideabi-4.9
    llvm
    mips64el-linux-android-4.9
    mipsel-linux-android-4.9
    x86_64-4.9
    x86-4.9

    it seems that the arm-linux-androideabi-4.8 and x86-4.8 are missing... How can I add those to make stop the advisings?

    3 - After adding SDK and NDK, it appeared: "Qt versions for 3 architectures are missing...", I plan to develop software for Desktop and Android devices, should I install more Qt Versions for those 3 missing architectures?

    on Tools->Options and Qt Versions tab, appears that I have installed the following qt versions:

    androidarmv7
    android_x86
    gcc_64bit

    Is it enough to compile software for Desktop and Android Devices?

    Thanks in advance!


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    1. Which debuggers ? The one for x86 or Android ? If the former, you have to install gdb if the later it's related to 2
    2. 4.8 has been removed from r11 so one thing you can try is to modify the compiler used in the kit and point it to 4.9
    3. No you don't need to unless you want to target them specifically. In that case, you'll likely have to build Qt yourself (e.g. for mips).

    Yes, it's enough. The Qt package for Android also install the desktop version.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.