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. Qmake flag for different android CPU/ABI ?
Forum Updated to NodeBB v4.3 + New Features

Qmake flag for different android CPU/ABI ?

Scheduled Pinned Locked Moved Mobile and Embedded
2 Posts 2 Posters 1.5k 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.
  • M Offline
    M Offline
    mankonit
    wrote on last edited by
    #1

    Hello all

    I would like, in my .pro file, differentiate some variables depending on the Android CPU/ABI I am building for. I did not find how to do that in the qmake doc.

    For the moment, I made a manual flag that I have to switch each time I change the platform I am compiling for (see example below). But i'm sure there should be an automatic mechanism for that !!!
    @
    PLATFORM = armeabi-v7a #x86 / armeabi / armeabi-v7a
    LIBS +=
    $$ANDROID_OPENCV/libs/$$PLATFORM/libopencv_contrib.a
    ...
    @
    Thanks for your help
    MK

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

      Platform is saved in $$ANDROID_PLATFORM (see <Qt dir>/qtbase.mkspecs/android-g++/qmake.conf).

      (Z(:^

      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