← Back to team overview

ubuntu-phone team mailing list archive

Cross-compiling QML extensions, using CMake

 

I've written up a quick how-to cross-compiling qml extensions using CMake

https://wiki.ubuntu.com/Touch/CrossCompile

Apart from cmake choosing DEB_HOST moc, instead of DEB_BUILD moc, it
seems to work ok.

I've successfully compiled:
./lib/SystemSettings/libSystemSettings.so
./tests/libtest-plugin.so
./plugins/sound/libUbuntuSoundPanel.so
./plugins/example/libexample-plugin.so
./plugins/background/libUbuntuBackgroundPanel.so
./plugins/system-update/libUbuntuUpdatePanel.so
./plugins/security-privacy/diagnostics/libUbuntuDiagnostics.so
./plugins/security-privacy/libUbuntuSecurityPrivacyPanel.so

>From ubuntu-system-settings project using above method.

So if you are using qmake, you can switch to cmake by following this
Qml / Ubuntu Touch app:
https://code.launchpad.net/~jpakkane/ubuntu-system-settings/cmake

And gain, a relatively smooth cross-compilation support.

Regards,

Dmitrijs.


Follow ups