← Back to team overview

ubuntu-phone team mailing list archive

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

 

On Tuesday 17 December 2013 21:04:34 Zoltán Balogh wrote:
> On 12/17/2013 01:23 AM, Dimitri John Ledkov wrote:
> > On 16 December 2013 18:14, Michael Zanetti
> > 
> > <michael.zanetti@xxxxxxxxxxxxx> wrote:
> >> On Monday 16 December 2013 15:28:23 Thomas Voß wrote:
> >>> I think the policy and guideline is pretty simple: For every new
> >>> project that Canonical is upstream for, we will default to CMake
> >>> (language/runtime-specific build systems aside). With that, all
> >>> developers benefit from cross-build support and best possible
> >>> integration with the overall system, thereby easing local testing on
> >>> devices and in the emulator.
> >> 
> >> What are the plans for integrating this into QtCreator? So far using the
> >> wizard to create a new Ubuntu application creates a qmake project. Also
> >> the
> >> rest of the cmake integration in QtCreator is not quite complete yet.
> >> 
> >> While I personally like cmake a lot and am happy to use it for projects
> >> where we're upstream, I'm not really sure how this would work for our
> >> app development offering yet.
> >> 
> >> Are we planning to improve QtCreator's cmake support or will we ship a
> >> QtCreator style arm chroot for compiling qmake projects in there?
> > 
> > click command-line tool has merged support for setting up, managing
> > and cross-compiling code in chroots.
> > 
> > I believe SDK team is working on integrating both CMake into the
> > default templates and integrating cross-compile in a click chroot +
> > install & launch click in the emulator for testing. And Zoltan already
> > had a PPA up with a preview of some of this work.
> 
> The cmake support with crossbuild feature is on its way. Most likely it
> will be a two staged delivery. As a first step I will make the cmake
> template of the QML plugins and add a hot-key (similar to the Ctrl-F12
> deployment) to build the project. The real deal will be to integrate it
> to the QtCreator's own project handling and process manager. That is not
> a trivial job if we do not want to duplicate the already existing cmake
> plugin or fork the QtC's project handling.

That sounds awesome. I know that this is really not something trivial but 
rather a really nasty and complex task. Hence my concerns in the other mail. 
But it seems you got it covered :)

> 
> The beta testing will be a bit easier as the Ubuntu Touch emulator
> integration to the QtCreator just landed on the SDK Release PPA
> (https://launchpad.net/~ubuntu-sdk-team/+archive/ppa) and soon will be
> pushed to Trusty.

I'd be happy to give it a shot.

Thanks,
Michael



References