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]Qt5 Android Plugin on Mac OS X 10.8
Forum Updated to NodeBB v4.3 + New Features

[solved]Qt5 Android Plugin on Mac OS X 10.8

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 1 Posters 2.0k 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.
  • L Offline
    L Offline
    langi667
    wrote on last edited by
    #1

    Hi,

    did anyone made was able to compile the Qt Android Plugin for a Mac OS X host? I followed the build instructions on "http://qt-project.org/wiki/Qt5ForAndroid":http://qt-project.org/wiki/Qt5ForAndroid

    but I always get compiler errors.I used this line to configure the build:

    @./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/apple/QtSDK/necessitas_b01/android-ndk -android-sdk /Users/apple/QtSDK/necessitas_b01/android-sdk -android-ndk-host darwin-x86 -android-toolchain-version 4.6 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples@

    Can anyone help ? Thank you so much

    1 Reply Last reply
    0
    • L Offline
      L Offline
      langi667
      wrote on last edited by
      #2

      This is the error I get:

      @/platforms/android-14/arch-arm/usr/include -o .obj/debug-shared/qlocale_tools.o tools/qlocale_tools.cpp
      tools/qlocale_tools.cpp: In function 'char* qdtoa(double, int, int, int*, int*, char**, char**)':
      tools/qlocale_tools.cpp:2246:5: error: 'fenv_t' was not declared in this scope
      tools/qlocale_tools.cpp:2246:12: error: expected ';' before 'envp'
      tools/qlocale_tools.cpp:2247:19: error: 'envp' was not declared in this scope
      tools/qlocale_tools.cpp:2247:23: error: 'feholdexcept' was not declared in this scope
      tools/qlocale_tools.cpp:2271:19: error: 'fesetenv' was not declared in this scope
      @

      1 Reply Last reply
      0
      • L Offline
        L Offline
        langi667
        wrote on last edited by
        #3

        Ok I got it. I updated my NDK and SDK and compliled it with the following options @./configure -developer-build -xplatform android-g++ -nomake tests -nomake examples -android-ndk /Users/apple/QtSDK/necessitas_b01/android-ndk -android-sdk /Users/apple/QtSDK/necessitas_b01/android-sdk -android-ndk-host darwin-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples -android-ndk-platform android-18@

        I got another error during compiling that android-11 API was not found (needed for the QtMultimedia plugin) I downloaded it and and everything compiled well.

        So now I have to test it if everything is working ;)

        1 Reply Last reply
        0
        • L Offline
          L Offline
          langi667
          wrote on last edited by
          #4

          Yes worked, and compile and run Android Apps written with Qt! It is still far from being usable (Missing WebKit or any Web-Engine, Deployment could be optimized ,debugging process crashes ... ). I would not use it (yet) for creating Android Apps, but it's super for targeting multiple platforms. Lets see what Qt 5.2 !

          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