← Back to team overview

unity-dev team mailing list archive

Re: [Ayatana-dev] Unity-2D and Qt5

 

Hi Ugo,

On 1 December 2011 14:49, Ugo Riboni <ugo.riboni@xxxxxxxxxxxxx> wrote:
> Maybe try to build it inside a chroot, so you don't have these issues and
> also you are sure of what dependencies you're installing, and you don't mess
> up your everyday working environment.
>
> One relatively easy way to do that is via pbuilder:
> https://wiki.ubuntu.com/PbuilderHowto

I started configuring the pbuilder environment on my PC, then I
stopped because there is something I don't understand.

Even if I configure a chroot on my machine, when I'm inside the chroot
I need to rebuild and install Qt5 (and this is ok), but I also need to
install all the other Unity-2D deps to be able to build it and doing
"sudo apt-get build-dep unity-2d" I would install all the Qt4 libs,
having in this way the same Qt4/Qt5 mix I have on my system.

For this reason I don't think that a chroot environment could solve my problem.

I see two possible solutions:

1) a method to install all the Unity-2D deps excluding Qt 4.x, so I
could have a clean chroot environment with only Qt5.

2) use qmake instead of make. When you compile something with qmake,
the libraries used depend on the qmake you invoche. You can have many
Qt installations as you want. As long as you invoke a particular qmake
you will have your application built with that particular version.

I don't know how to do to use the solution n°1 and I don't remember
why you're using cmake instead of qmake (there's no .pro so I cannot
try by myself using qmake).

Thanks.

-- 
Andrea Grandi - Nokia Qt Ambassador
website: http://www.andreagrandi.it



Follow ups

References