← Back to team overview

ubuntu-phone team mailing list archive

Re: Cross-compiling QML extensions, using CMake

 

On Wed, Sep 11, 2013 at 8:22 AM, Dmitrijs Ledkovs <xnox@xxxxxxxxxx> wrote:

> 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.
>

I'm going to piggyback on this and mention that I got this going for most
of the applications as well (dialer-app et.al.) which are cmake based using
your previous instructions but adapted to cmake. So thanks

Cheers
Sergio

Follow ups

References