I am using Debian Linux and I want to configure Qt for Android application.
I downloaded Qt from the Qt site and configured JDK, SDK and NDK and gave the path of SDK and NDK path to Qt option, then I restarted Qt creator. But in Debuggers option Qt says:
/home/user/Qtrequirement/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb not exist.
I searched in Google and I found out another NDK at Qt official that has a gdb file but not have every file for NDK. Qt says this is not top level NDK folder.
I googled everything and installed every dependency package that Qt uses.
Can anyone give me any solution that makes apk file and run in any Android device?
FYI any other application that does not use Android will run successfully, but I can not make an apk file using Qt.
Does anyone know the answer for this problem for Debian Linux?
Related
I am an absolute beginner. I want to install Qt for android development.
I followed the instructions for installing Qt as specified on Qt's website. I installed android manager and set up SDK, NDK, ant and JDK. After this I specified there locations in Qt but Qt is not detecting any kits at all. Why? Is there something that i am missing?
It might help to know that I an running Qt on ubuntu 16.04.3 and my Qt's version is Qt Creator (community) open source free
If I manually add a kit what should I do about sysroot and other empty fields.
What do i do about the empty fields
I have the similar problem. Problem was with NDK version.
The newest NDK version doesn't contains executable gcc compilers (it use clang compiler). I must use NDK version 15.
I had to configure manually as well for embedded linux.. To configure manually, in case you did all the configuration to a new qt, i just gotta select your compiler and change the qt version to the one you configured for the cross compiler. All the other option, let by default. Make sure your cross compiler command is set in your PATH.
This qt version is the path to your qmake.
I have just installed Qt 5.9.1 and want to make an app for Android (I'm using Windows 10).
I have installed the SDK, NDK and ant and specified the paths in the configuration. But Qt gives the following warning:
Qt versions for 6 architectures are missing. To add the Qt versions,
select Options > Build & Run > Qt Versions
When I go to Qt Versions I can only see Qt 5.9.1 MinGW 32bit.
I've googled this and a solution to a similar issue was to download the Android version of Qt from the Qt download page:
But that Android version is only 5.6. I'm gonna use Qt Quick Controls 2, which is not available until version 5.7, according to this:
Qt Quick Controls 2 provides a set of controls that can be used to
build complete interfaces in Qt Quick. The module was introduced in Qt
5.7.
Does anyone know what is causing this? Is there some other way I can get the files needed to build for Android and keep Qt version 5.9?
Using a Qt Quick Application (project name: SimpleUI), I ran this example using the Desktop kit correctly.
Then went for testing the app using both Android for armeabi-v7a (GCC 4.9, Qt 5.9.0 for Android armv7) and Android for x86 (GCC 4.9, Qt 5.9.0 for Android x86) kits in both Debug and Release modes. I don't have an Android device and used emulators for both non-Desktop kits, although they didn't show the output of the app!
Now my folder looks like this, and I searched the .apk file to test it somewhere else and searched the folders by *.apk keyword but I couldn't find such a file!
I searched the web and was asked about my API levels. My SDK looks like below:
I don't use Ant but Gradle instead of that.
Using the SimpleUI project I went through its path and found details for both architectures.
Here is for the Arm and this one for the x86.
What is the problem please?
Qt Creator IDE ver: 4.3.0
Qt ver: 5.9
www.qt.io/download-open-source/
Under offline installers for windows, I have already downloaded and used Qt 5.5 for win32 (MinGW). I want to start developing android apps.
So can I just install some extras or do I have to download the 1GB Qt 5.5 for Android too?
Thanks.
It's not necessary.
Open your Qt Maintenance Tool and expand the version Qt 5.5. You will see some checkboxes where you can select the Android compilers or packages and update your Qt framework.
After that, remember that you need to configure Qt Creator in order to have the necessary Android kits which will be used in your projects.
How can i include the android code developed on linux platform into the eclipse on windows platform so that i can debug and start the emulator which will emulate same as target behaviour.
To be further precise this android code is having application as well as JNI and c/c++ code
Just copy the whole project folder to windows, and import the project into Eclipse. Then create a emulator which is as same as the one on Linux platform. After that, You can run or debug your app on the emulator without any problem.