[Solved]How to setup the environment for android on mac(Qt5.2 beta1)



  • mac OS X 10.8.5
    Qt5.2 beta1

    tried api 10
    tried to compile with armeabi-v7a, armeabi

    apps : calculator(QWidget sample)

    phone : GT-S6310

    !http://farm8.staticflickr.com/7396/11011143556_7d20a5dbee_o.png(setup)!

    error messages
    @
    Cannot read from input file: android-libbuild-calculator-Android_for_armeabi_GCC_4_8_Qt_5_2_0-Release.so-deployment-settings.json
    23:32:26: The process "/Users/yyyy/Qt5.2.0/android/5.2.0-beta1/android_armv5/bin/androiddeployqt" exited with code 2.
    Error while building/deploying project calculator (kit: Android for armeabi (GCC 4.8, Qt 5.2.0))
    When executing step 'Deploy to Android device'
    @

    build fine, but I can't deploy the app onto the device
    Anyone successful to deploy Qt5 app onto the phone through mac?


  • Moderators

    Maybe your phone is blocking software coming from sources other than Play Store? Make sure you enable developer mode in you phone settings. Does the simulator work?

    BTW. Qt 5.2 RC1 packages are already available (although it's still not "official"), you can try that.



  • Finally, it works
    Two mistakes I did

    1 : remove other Qt versions, else it may choose the wrong version of Qt
    2 : wrong jdk location, it should be

    !http://farm8.staticflickr.com/7314/11020225606_816717b4b8_o.png(jdk location)!

    Not too many data about deploying android apps on mac by Qt5.2 yet
    Hope that someday Qt would become one of the mainstream technique on android, ios development

    Thanks for your information, Qt5.2 RC1 are available

    ps : where is the apk generated?


Log in to reply
 

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