Qt: create and install a module on a non-host platform

I am developing an application using a QML based module ( https://github.com/papyros/qml-material ) on OSX and would like to test the application on Android and IOS.

How do I configure the qmake file so that the module is properly installed for Android and iOS platforms (or, for that matter, any other non-host platform that I have on my Qt distribution) on my host system?

In this particular case, just copying the module folder, for example, Qt/5.4/android_armv7/qml

does not work as the module needs to set some QtQuick styles and other things elsewhere.

+3


source to share


1 answer


I understood that. Running platform specific qmake did not work because this project contained two subprojects, each with its own Makefile.

It is enough to (repeat) run qmake for the platform for each subproject and for the main project before launching sudo make install

.



So on the bottom line, make sure the Makefiles generated by qmake for the subprojects are updated for your target platform.

+1


source







All Articles