← Back to team overview

ubuntu-phone team mailing list archive

Re: Cross-compile with CMake from SDK Apps to Unity8/Mir

 

On Fri, Dec 13, 2013 at 6:58 PM, Dimitri John Ledkov <xnox@xxxxxxxxxx> wrote:
> As of latest cmake upload into trusty, it is now trivial to
> cross-compile CMake based projects:
>
> One time setup:
> $ mk-sbuild --target armhf trusty
>
> Building a package:
> $ sbuild -A -d trusty --host armhf package*.dsc
>
> This succeeds for a wide variety of packages:
> * mir
> * unity8
> * ubuntu-system-settings
> * ubuntu-settings-components
> * unity-notifications
> * unity-scope-onlinemusic
> * uhub
> * uchardet
> * and many more...
>
> Since this is built into CMake, one can use cmake direct:
> dpkg-architecture -aarmhf cmake ../; make
>
> (given appropriate build-dependencies installed)
>
> With chroots managed by click: one can simply use "cmake ../; make" direct.
>
> This together with a working emulator completes native developer
> foundations story: cross-compile + test click in the emulator.
>

Awesome work, thanks for making it happen :)

> ps. if you are not using CMake, you should be switching to CMake =)

Seconded!!

Cheers,

  Thomas

>
> --
> Regards,
>
> Dimitri.
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp


References