I try to run the QT C++ usb debugger on an Android smartphone, altough there is a compilation error (on the screenshot #1). The downloaded version of QTCreator is 4.14.2 with Qt 6.0.3 MinGw 64-bit.
Ok, it's solved, you just need to delete the existing ".user" file from the project directory and choose your Android kit when you open up the project again.
Related
I compile for the first time "toutchinteraction.pro" from Qt for android examples.
I installed sdk manager from android studio, all my android setup are well configured except for openssls which is optional (I didn't install it).
When I open the example project from Qt creator, I have the following error: Project ERROR: Cannot run target compiler 'C:\Program Files (x86)\Android\android-sdk\ndk\21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++
Do you think that the white space inside the path makes this issue?
I can confirm you that it is the whitespace, I had the same issue, tried everything, and in the end installing the SDK and NDK in a path without whitespace solved the problem
I am having issues on deploying my android application to my phone. This error will pop up whenever i try to release my application (Error: Cannot find the androiddeploy Json file.). And i have checked my all my development kits and it seem that Qt had approved its settings. Thanks.
Cannot find the androiddeploy Json file.
Error while building/deploying project swipe (kit: Android for armeabi-v7a (Clang Qt 5.9.8 for Android ARMv7))
When executing step "Deploy to Android device"
I do not know if it helps, but I faced the exact same problem and I solved it by just unchecking the "Shadow build" checkbox under "Build settings" (ctrl+5). After that, everything worked.
Target device: Lenovo tabM10 FHD plus
Qt version: 5.15.2
Qt Creator version: 4.14.2
I am trying to run Android app in Qt-Creator .when i try to build it , it builds without any problems but when I hit run button , instead of asking where to run app it gives me this error :-
Cannot find the android build step.
Error while building/deploying project untitled (kit: Android for armeabi-v7a (GCC 4.9, Qt (android_armv7)))
When executing step "Deploy to Android device"
I am using Arch Linux . I had install Android SDK and NDK and OracleJDK 10.
I had connected my Karbon Titanium phone via USB to my laptop and enabled the USB DEBUGGING .
EDIT:-
Here are environment variables:-
% cat /etc/environment
#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#
JAVA_HOME=/usr/lib/jvm/default
JRE_HOME=/usr/lib/jvm/default-runtime
PATH=/home/jimbo/bin:/home/jimbo/.local/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/cordova/bin:/opt/AndroidSDK/tools/bin
RUSTUP_HOME=/opt/Rust
CARGO_HOME=/opt/Rust/.cargo
ANDROID_HOME=/opt/AndroidSDK
ANDROID_NDK_HOME=/opt/AndroidNDK
PKG_CONFIG_PATH=/bin/pkg-config
Also I am using NDK 10e:-
you have to use Qt version 5.9.0 with sdk 26.1.1 and ndk version 10.4.0.
earlier version than 5.9.0 of qt will not work with sdk 26.1.1.
so you just need to update your Qt version to 5.9.0.
At Last, Use This Combination:
Jdk version : 1.8.0
SDK version : 26.1.1
NDK version : 10.4.0
Qt version : 5.9.0
it works for me. hope it will work for you. :)
It works for me.
Just delete Qt creator settings files and restart it:
Where does QtCreator save its settings?
On Windows 10, 8, Vista and 7, the files are located in
:\Users\\AppData\Roaming\QtProject and
:\Users\\AppData\Local\QtProject.
On Windows XP, the files are located in :\Documents and
Settings\\Application Data\QtProject and :\Documents
and Settings\\Local Settings\Application Data\QtProject.
https://bugreports.qt.io/browse/QTCREATORBUG-20088
A problem was solved when I re-created the QtC settings from scratch.
So, something wrong in QtC code, related to the settings update,
because, as can see from my screenshoots, the QtC reported that all
Android configuration is OK, but the build step was not created.
I already have made a project with Qt and I wanted to build on Android.
It worked fine, but since I use another Workstation, I can't deploy my application.
I get the following log output :
17:50:53: Could not start process "mingw32-make" INSTALL_ROOT="D:\Projects\Qt\Comp\build-proj-Android_for_armeabi_v7a_GCC_4_7_Qt_5_4_1-Release\android-build" install
Error while building/deploying project Proj (kit: Android for armeabi-v7a (GCC 4.7, Qt 5.4.1))
When executing step "Copy application data"
I checked my kits. All seems good.
My SDK and NDK works well, everything seems to work with Xamarin for example.
Regards,
Had the same issue, solution was to add the mingw32-make to the PATH variable,
missed this originally as i had already added it as an override for the Make build step and thought that would be enough.
I am having a problem I can run ndk outside of eclipse but not from the workspace folder. I get an error of a missing file.
Android NDK: ERROR:jni/Android.mk:QCAR-prebuilt: LOCAL_SRC_FILES points to a missing file
Android NDK: Check that jni/../../../build/lib/armeabi/libQCAR.so exists or that its path is correct
/cygdrive/c/Users/ALEXDEV/android-ndk-r8b/build/core/prebuilt-library.mk:43: *** Android NDK: Aborting . Stop.
I am wondering if when I create the android project one of the files isnt copied. But when I run it inside eclipse
I get this error. I followed this tutorial
http://mobilepearls.com/labs/ndk-builder-in-eclipse/
The error I got when running ndk in eclipse was as follows
"C:\Users\ALEXDEV\android-ndk-r8b\ndk-build" (in directory "C:\Users\ALEXDEV\workspace\Image"): CreateProcess error=193, %1 is not a valid Win32 application
What do you suggest that I did wrong and what method do you propose will fix this problem.
I am using Eclipse Java EE IDE for Web Developers.
Version: Indigo Service Release 2
I am following this tutorial
http://tools.android.com/recent/usingthendkplugin
I am using this upload
Indigo - http://download.eclipse.org/releases/indigo
Instead of dowloading a package from the link I chose the option add but I used archieve.
Packages can be downloaded straight from eclipse. Here is the link that I used to download
the package http://www.eclipse.org/cdt/downloads.php
I then download this version of the ndk
I got the ndk examples working so the problem is solved.
With ndk r8b, you don't need cygwin at all. Set the build command as ndk-build.cmd
Note that your tutorial is outdated. The recent versions of ADT plugin allow you to simply click "add native support" to a Java project.