← Back to team overview

ubuntu-phone team mailing list archive

Re: Qt5 with Qt 4.7 on Ubuntu 13.04. How to install it both without conflicts?

 

I'll try again at evening.


2013/7/30 Michael Zanetti <michael.zanetti@xxxxxxxxxxxxx>

> On Tuesday 30 July 2013 14:20:03 Николай Шатохин wrote:
> > Nope. Only Qt5
>
> Having a hard time believing that.
>
> $  apt-cache policy libqt4-dev
> libqt4-dev:
>   Installed: 4:4.8.4+dfsg-0ubuntu14
>   Candidate: 4:4.8.4+dfsg-0ubuntu14
>   Version table:
>  *** 4:4.8.4+dfsg-0ubuntu14 0
>         500 http://de.archive.ubuntu.com/ubuntu/ saucy/main amd64 Packages
>         100 /var/lib/dpkg/status
>
> This is saucy now, but I used to have it running on raring too.
>
> If those packages are not in your repos, it seem like your installation is
> messed up.
>
> >
> >
> > 2013/7/30 Michael Zanetti <michael.zanetti@xxxxxxxxxxxxx>
> >
> > > Shouldn't be an issue then. Does apt-cache search qt4 doesn't give any
> > > results
> > > for you?
> > >
> > > On Tuesday 30 July 2013 13:58:25 Николай Шатохин wrote:
> > > > Nope. I'm writing game to Ubuntu touch on Qt5 and Qt Quick 2.0. And I
> > >
> > > want
> > >
> > > > to port it to Caanoo handheld console that uses Qt4.7 and Qt Quick
> 1.0.
> > > >
> > > >
> > > > 2013/7/30 Michael Zanetti <michael.zanetti@xxxxxxxxxxxxx>
> > > >
> > > > > Wait... Do you want to run Qt4 on Ubuntu Touch? That won't work
> > > > > because
> > > > > Qt4
> > > > > requires X11 on linux based platforms which we don't have on the
> > > > > phone.
> > > > >
> > > > > On Tuesday 30 July 2013 13:35:53 you wrote:
> > > > > > I don't see any qt4 package in repo. Do I need add some
> > > > > > repositories?
> > > > > >
> > > > > > Do I need to create another project for Qt 4.7? Is it possible to
> > > > > > use
> > > > > > the
> > > > > > same projects with different QML files and parameters in .pro
> file?
> > > > > >
> > > > > >
> > > > > > 2013/7/30 Michael Zanetti <michael.zanetti@xxxxxxxxxxxxx>
> > > > > >
> > > > > > > On Tuesday 30 July 2013 13:06:28 Николай Шатохин wrote:
> > > > > > > > Hello.
> > > > > > > >
> > > > > > > > I'm using Qt5 and need Qt 4.7 now (for porting my game to
> > >
> > > handheld
> > >
> > > > > game
> > > > >
> > > > > > > > console). Is it possible to install it additionally on Ubuntu
> > >
> > > 13.04?
> > >
> > > > > > > Yes. Just install the qt4 packages. They shouldn't conflict.
> > > > > > >
> > > > > > > Also, make sure to install qtchooser. You can select the
> default
> > > > > > > Qt
> > > > > > > version by
> > > > > > > installing either qt4-default or qt5-default.
> > > > > > >
> > > > > > > You can switch Qt version on the fly by exporting
> QT_SELECT=qt4 or
> > > > > > > QT_SELECT=qt5 before running qmake/cmake. This will override
> the
> > > > >
> > > > > default
> > > > >
> > > > > > > version for this terminal.
> > > > > > >
> > > > > > > Hope this helps,
> > > > > > > Michael
>
>

References