Results 1 to 1 of 1

Thread: Specific code and libraries for android x86

  1. #1
    Join Date
    Jan 2012
    Location
    Dortmund, Germany
    Posts
    159
    Thanks
    69
    Thanked 10 Times in 8 Posts
    Qt products
    Qt4
    Platforms
    Windows Android

    Question Specific code and libraries for android x86

    Hi,
    I have to supply platform-dependend 3rd-party libraries with my application.
    I already use this code for distinguishing between windows and android in general:

    In my .pro file:
    Qt Code:
    1. win32: {
    2. INCLUDEPATH += ../[folder of the app]/3rdparty/[path to win32 include]
    3. LIBS += -L../../[folder of the app]/3rdparty/[path to win32 lib] \
    4. -lxls
    5. }
    6. android: {
    7. INCLUDEPATH += ../[folder of the app]/3rdparty/[path to android include]
    8. LIBS += -L../../[folder of the app]/3rdparty/[path to android lib] \
    9. -lxls
    10. }
    To copy to clipboard, switch view to plain text mode 

    In my .cpp files I use this syntax:
    Qt Code:
    1. #ifdef Q_OS_ANDROID
    2. [do android-specific stuff]
    3. #else
    4. [do windows-specific stuff]
    5. #endif
    To copy to clipboard, switch view to plain text mode 

    Having installed Qt 5.3.0 beta I'd like to also target the emerging android x86. The toolchain is ready - how can I
    • set up the pro file to include the library for android x86? (Is there a list with usable OSes like "win32:" and "android:" as seen above?)
    • use platform-specific code for x86 architecture? (Is there a list with usable #ifdef targets?)


    Any help on one or both of of these questian is highly appreciated.

    Sebastian
    Last edited by sedi; 9th May 2014 at 19:04. Reason: complete a sentence ;-)

Similar Threads

  1. How do I add Java code to Qt Android apps via Qt Creator
    By scottwild in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 2nd October 2013, 00:09
  2. Specific widgets for mobile os (android)
    By thru in forum Qt for Embedded and Mobile
    Replies: 2
    Last Post: 4th September 2013, 13:50
  3. How to write Bit and OS specific C++ code?
    By wizards2020 in forum Newbie
    Replies: 4
    Last Post: 20th January 2012, 00:57
  4. Replies: 1
    Last Post: 25th February 2011, 14:18
  5. Replies: 5
    Last Post: 15th March 2006, 08:33

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.