Qt5 platform configurations: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Convert ExpressionEngine section headers)
(Formatting & links)
Line 1: Line 1:
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}


= List of Qt5 configuration parameters for different platforms with references =
= List of Qt5 configuration parameters for different platforms with references =
Line 8: Line 7:
== Blackberry 10 ==
== Blackberry 10 ==


<code>./configure -prefix $QTDIR_PREFIX -xplatform blackberry-armle-v7-qcc -opengl es2 -nomake docs -nomake examples -nomake demos -nomake tests -opensource -confirm-license -release -no-neon [-no-c+''11]<code>
<code>./configure -prefix $QTDIR_PREFIX -xplatform blackberry-armle-v7-qcc -opengl es2 -nomake docs -nomake examples -nomake demos -nomake tests  
-opensource -confirm-license -release -no-neon [-no-c+''11]</code>




Line 14: Line 14:


== iOS ==
== iOS ==
</code>./configure -prefix $QTDIR_PREFIX -xplatform unsupported/macx-ios-clang -nomake examples -nomake tests -release [-sdk iphonesimulator]</code>
<code>./configure -prefix $QTDIR_PREFIX -xplatform unsupported/macx-ios-clang -nomake examples -nomake tests -release [-sdk iphonesimulator]</code>


[http://blog.qt.io/blog/2013/03/05/qt-for-ios-preview/ Qt for iOS Preview]
[http://blog.qt.io/blog/2013/03/05/qt-for-ios-preview/ Qt for iOS Preview]


== Android ==
== Android ==
<code>./configure -prefix $QTDIR_PREFIX -xplatform android-g''+ -nomake tests -nomake examples -android-ndk <path/to/ndk> -android-sdk <path/to/sdk> -android-ndk-host <e.g. linux-x86_64> -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples<code>
<code>./configure -prefix $QTDIR_PREFIX -xplatform android-g''+ -nomake tests -nomake examples -android-ndk <path/to/ndk> -android-sdk <path/to/sdk>  
-android-ndk-host <e.g. linux-x86_64> -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples</code>


[http://wiki.qt.io/Qt5ForAndroidBuilding Building Qt 5 for Android]
[http://wiki.qt.io/Qt5ForAndroidBuilding Building Qt 5 for Android]
Line 25: Line 26:
== RaspberryPi ==
== RaspberryPi ==


</code>./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release -make libs -prefix $QTDIR_PREFIX</code>
<code>./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -
sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release  
-make libs -prefix $QTDIR_PREFIX</code>


[http://wiki.qt.io/RaspberryPi_Beginners_guide Beginner’s guide to cross-compile Qt5 on RaspberryPi]
[[RaspberryPi Beginners Guide | Beginner’s guide to cross-compile Qt5 on RaspberryPi]]

Revision as of 09:43, 9 April 2015

List of Qt5 configuration parameters for different platforms with references

This page aggregates configuration parameters of Qt5 for different platforms in one place. If you need more information for specific platform, please check the reference link. Before calling the configuration, setup $QTDIR_PREFIX variable, which should point to directory where the Qt should be installed to.

Feel free to add other platforms.

Blackberry 10

./configure -prefix $QTDIR_PREFIX -xplatform blackberry-armle-v7-qcc -opengl es2 -nomake docs -nomake examples -nomake demos -nomake tests 
-opensource -confirm-license -release -no-neon [-no-c+''11]


Building Qt5 for Blackberry

iOS

./configure -prefix $QTDIR_PREFIX -xplatform unsupported/macx-ios-clang -nomake examples -nomake tests -release [-sdk iphonesimulator]

Qt for iOS Preview

Android

./configure -prefix $QTDIR_PREFIX -xplatform android-g''+ -nomake tests -nomake examples -android-ndk <path/to/ndk> -android-sdk <path/to/sdk> 
-android-ndk-host <e.g. linux-x86_64> -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples

Building Qt 5 for Android

RaspberryPi

./configure -opengl es2 -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=~/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf- -
sysroot /mnt/rasp-pi-rootfs -opensource -confirm-license -optimized-qmake -reduce-relocations -reduce-exports -release 
-make libs -prefix $QTDIR_PREFIX

Beginner’s guide to cross-compile Qt5 on RaspberryPi