Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. [Solved]How to setup the environment for android on mac(Qt5.2 beta1)
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    stereomatching
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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.

      (Z(:^

      1 Reply Last reply
      0
      • S Offline
        S Offline
        stereomatching
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved