Can't Build Qt 5.1 Crosscompiling Android For Mac
These are build instructions for building Qt for Android on Linux or Mac OS X. For cross-compiling on Windows, this is currently. For general information about Qt 5 for Android, please visit the for that. • When using GCC toolchains on Windows (MinGW, Android NDK, etc.) take into account that there is a restrictions on a build path prefix length. • When using MSys shell you should not pass Unix-like paths in -prefix argument Building Qt 5 for Android These are the current build instructions to get to the point where you can deploy a Qt app to an Android device using Qt Creator. • First of all you need an Android SDK. • The SDK is bundled with Android Studio: • Open Android Studio and run the SDK Manager tool, which is found under (if you don't have the SDK Manager menu item in the Tools menu and the toolbar isn't visible, you can enable this from the View menu by checking Toolbar).
To try and keep matters simple, I downloaded qt-opensource-windows-x86-android-5.3.2.exe and installed that on my Windows 7 (64-bit) system. My belief is that this Qt install is the same version as the Qt on the Pi-2 and already contains the ARM7 library files required for cross-compiling. If there is an easy way to cross compile to win and mac – i would thinking about a rewrite of two of my little C++/Qt apps that i build in a WinVM and on my macbook separately (about once a year when i need to push a new release).
• For Qt 5.6 or earlier: Install API levels 10, 11, 16 and 18 (you may need to check the 'Obsolete' checkbox to see these in the SDK manager). Beginning with Qt 5.7, any API level >= 18 will work. • Android API level 11 is required to build QtMultimedia.
• Android API level 18 is required to build QtBluetooth (from Qt 5.5 onwards). • Android API level 10, 11 and 16 are required for QtBase.
• Note that this is only necessary for building Qt itself. You can build Qt applications against any API level you wish, As long as it is equal to or higher than 13. • You also need an Android NDK: • Important: If you are building Qt with the gcc toolchain, you will need the Android NDK r10e. This is because NDK r11, r12 and r15 are known to have issues with gcc. NDK r13 and r14 are also likely to have the same issues. R15 produces applications that fail with the error message 'This application failed to start because it could not find or load the Qt platform plugin 'android'. We recommend to use the android-clang toolchain for compiling, in which case the latest NDK release should be preferred.
• Install a 32 bit JDK whose version is at least 1.6. This can be found on Oracle's website. Alternatively, OpenJDK can be used on Linux. • If you're on a 64 bit Ubuntu/Debian, you may also need to install a 32 bit runtime environment: apt-get install libc6-i386 • Get Qt Creator 2.7.2 (or later): • Get Qt 5: git clone git://code.qt.io/qt/qt5.git qt5 cd qt5 perl init-repository • Optionally checkout target Qt version to use. Git checkout v5.9.3 git submodule update --recursive • Configure Environment Variables. • You need to set JAVA_HOME and add JAVA_HOME/bin to your PATH.
Cross Compiling With Gcc
On Linux, a good place to do this is at the end of ~/.profile: export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386 export PATH=$PATH:$JAVA_HOME/bin • Configure Qt and skip unsupported modules:./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk -android-sdk -android-ndk-host -android-toolchain-version -skip qttranslations -skip qtserialport -no-warnings-are-errors Note: the highest API level that the r10e NDK supports is 21, so it may be necessary to install that and then pass the following in addition to the arguments listed above. Android - ndk - platform android - 21 • Build.
What Is Cross Compiling
Run the make command to build the configured Qt parts. Make • Install. Run the make install command to install the built Qt parts. If you have not used the configure option --prefix the installation is done under the directory path /usr/local/Qt. Under Debian/Ubuntu you should prefix the make command with the sudo command. Make install • Start the Qt Creator you built earlier.
Samsung usb drivers free download - Samsung USB Driver for Mobile Phones, Samsung USB MODEM, Apple Samsung Printer Drivers, and many more programs. Best Video Software for the Mac How To Run. Best samsung usb driver free download for mac.
Cross Compiling For Arm From Ubuntu
• Go into Tools-> Options -> Android and set the right paths to the Android SDK and NDK, etc. For example: • Android SDK Location: /home/johnsmith/dev/android-sdk-linux • Android NDK Location: /home/johnsmith/dev/android-ndk-r18 • JDK Location: /usr/lib/jvm/java-6-openjdk-i386 • Add your newly built Qt version to Options -> Build & Run -> Qt Versions. • At this point you should be able to create a project and configure it for the Android kit. In order to test, go into the Run settings for your project. Under Deploy Configuration, check the Use Qt libraries from local device option.