[Android-development] Android with 5.4-beta

Robert Iakobashvili coroberti at gmail.com
Mon Oct 13 14:07:39 CEST 2014


On Mon, Oct 13, 2014 at 11:44 AM, Robert Iakobashvili
<coroberti at gmail.com> wrote:
> On Mon, Oct 13, 2014 at 10:02 AM, Eskil Abrahamsen Blomfeldt
> <eskil.abrahamsen-blomfeldt at theqtcompany.com> wrote:
>> On 10/12/2014 12:25 PM, Robert Iakobashvili wrote:
>>> Gentlemen,
>>> My application builds and runs works properly with 5.3.1.
>>>
>>> When trying qt-opensource-linux-x86-android-5.4.0-beta_2014-10-07_03-37-01-40.run
>>> the following error is seen at run:
>>>
>>> Starting /home/robert/dev/application/trunk/build-Application-Qt_5_4_beta_arm-Debug/libApplication.so...
>>> Failed to start program. Path or permissions wrong?
>>>
>>> This is a widget app with pro file has TARGET and TEMPLATE
>>> properly defined, so it's not clear why
>>> it is trying to run the shared library.
>>>
>>> android { # For Android
>>>
>>>      TARGET = Application
>>>      TEMPLATE = app
>>> }
>>>
>>> Please, indicate which logs or whatever
>>> is required for further investigation.
>>
>> Hi,
>>
>
> Eskil, nice hearing from you.
>
>> It sounds like it's not correctly detecting the kit as an Android kit to
>> me. When you look at the settings page for your project, does it have
>> the Android-specific deployment settings etc. under the "Run" tab?
>
> It's seen properly.
>  I'm using API-19 and can switch to another, can sign properly for Release
> and select Qt-deployment options.
>
>> When
>> launching the application, do you get the dialog box listing the
>> available devices?
>
> Yes, the selection comes and works properly.
>
>> What happens if you try running one of the examples in the package? Same
>> problem?
>
> I've checked that a widget example textedit is running properly
> unlike my application.
>
> Further troubleshooting:
>
> 1. With 5.3.1 from the same QtCreator from 5.4 package my project runs properly;
>
> 2. Changed AndroidManifest.xml - generated a standard one,
>     deleted build dir and full rebuild - it was not helpful;
>
>
> It's a raster project without opengl.
>
> QT += network
>
> greaterThan(QT_MAJOR_VERSION, 4)
> {
>     QT += widgets
> }
>
> General files listed
>
> android { # For Android
>
>     TARGET = Application
>     TEMPLATE = app
>
>     RESOURCES += \
>         some qrc files
>
>     equals(ANDROID_TARGET_ARCH, x86) {
>         message("Android - x86 libraries.")
>         ANDROID_EXTRA_LIBS = ../../android-openssl/x86/libcrypto.so
> ../../android-openssl/x86/libssl.so
>     }
>
>     equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
>         message("Android - ARMv7a libraries.")
>         ANDROID_EXTRA_LIBS = ../../android-openssl/arm7/libcrypto.so
> ../../android-openssl/arm7/libssl.so
>     }
>
>     # Android Platform-Dependent Files
>     HEADERS += \
>         some headers
>
>     SOURCES += \
>         some sources
>
>     ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
>
>     OTHER_FILES += \
>         android/AndroidManifest.xml \
>         some JAVA files
>         android/assets/EULA \
>         android/src/com/ghotit/realwriter/eula/SimpleEula.java  \
>         android/assets/asset-file-1 \
>         android/assets/asset-file-2
> }
>
>>
>> -- Eskil
>
> Your help is very much appreciated.
> Thanks,
>
> Robert

After deleting the auto-detected 5.4 kit
it was re-detected and the issue was resolved.

Something weird, but thank you for your help.

Regards,
Robert



More information about the Android-development mailing list