Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, April 2007
How to say kdevelop to use "qmake-qt4"


Message 1 in thread

hello.. I am trying to use kdevelop to devel a qt4 program..
The problem is that, while on SuSe linux is fine, on Debian etch qt4 want 
specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)

How can I force kdevelop to use them?? I tryed on the program options->c++ 
specifics->qt  to use qt4 on /usr/share/qt4 but it seems this options has no 
results.. still using qmake-qt3 !!!

Any help ??

  thanks..
    Sylvaticus

--
 [ signature omitted ] 

Message 2 in thread

Hello

the qt version kdevelop uses depends on which version of qmake/qt the shell 
uses in which your kdevelop is started.

So convincing kdevelop to use qt4 is a question of convincing your shell using 
it.

Best regards

seb

On Friday 27 April 2007 15:50:40 Antonello Lobianco wrote:
> hello.. I am trying to use kdevelop to devel a qt4 program..
> The problem is that, while on SuSe linux is fine, on Debian etch qt4 want
> specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
>
> How can I force kdevelop to use them?? I tryed on the program options->c++
> specifics->qt  to use qt4 on /usr/share/qt4 but it seems this options has
> no results.. still using qmake-qt3 !!!
>
> Any help ??
>
>   thanks..
>     Sylvaticus
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/


--
 [ signature omitted ] 

Message 3 in thread

On 27.04.07 16:04:49, Sebastian Breuers wrote:
> Hello
> 
> the qt version kdevelop uses depends on which version of qmake/qt the shell 
> uses in which your kdevelop is started.
> 
> So convincing kdevelop to use qt4 is a question of convincing your shell using 
> it.

Thats not the whole truth, this is only correct for the outdated version
of KDevelop that ships with Debian Etch.

Andreas

-- 
 [ signature omitted ] 

Message 4 in thread

El Viernes 27 Abril 2007, Antonello Lobianco escribió:
> hello.. I am trying to use kdevelop to devel a qt4 program..
> The problem is that, while on SuSe linux is fine, on Debian etch qt4 want
> specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
>
> How can I force kdevelop to use them?? I tryed on the program options->c++
> specifics->qt  to use qt4 on /usr/share/qt4 but it seems this options has
> no results.. still using qmake-qt3 !!!

Which version of KDevelop are you using? KDevelop 3.4.x notes the difference 
if you set it correctly in Proyect -> Proyect Options -> C++ support -> Qt 
Options
If you are using an older version, update-alternatives is the way to go :-)

Regards, Lisandro.


-- 
 [ signature omitted ] 

Message 5 in thread

On 27.04.07 15:50:40, Antonello Lobianco wrote:
> hello.. I am trying to use kdevelop to devel a qt4 program..
> The problem is that, while on SuSe linux is fine, on Debian etch qt4 want 
> specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
> 
> How can I force kdevelop to use them?? I tryed on the program options->c++ 
> specifics->qt  to use qt4 on /usr/share/qt4 but it seems this options has no 
> results.. still using qmake-qt3 !!!
> 
> Any help ??

Remove the KDevelop version that you installed via APT and fetch the
source code from the KDE svn
(svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kdevelop), then follow
the build instructions found on
http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html

And build KDevelop yourself. There's no way to convince the Etch version
to use qmake-qt4, you could change the symlink /usr/bin/qmake to point
to qt4 instead of qt3 and do the same thing with designer, however I
really suggest to use the 3.4 version from SVN, the Qt4 support is far
better and it doesn't screw up your .pro files.

Andreas

-- 
 [ signature omitted ] 

Message 6 in thread

El Viernes 27 Abril 2007, Andreas Pakulat escribió:
> On 27.04.07 15:50:40, Antonello Lobianco wrote:
> > hello.. I am trying to use kdevelop to devel a qt4 program..
> > The problem is that, while on SuSe linux is fine, on Debian etch qt4 want
> > specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
> >
> > How can I force kdevelop to use them?? I tryed on the program
> > options->c++ specifics->qt  to use qt4 on /usr/share/qt4 but it seems
> > this options has no results.. still using qmake-qt3 !!!
> >
> > Any help ??
>
> Remove the KDevelop version that you installed via APT and fetch the
> source code from the KDE svn
> (svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kdevelop), then follow
> the build instructions found on
> http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html
>
> And build KDevelop yourself. There's no way to convince the Etch version
> to use qmake-qt4, you could change the symlink /usr/bin/qmake to point
> to qt4 instead of qt3 and do the same thing with designer, however I
> really suggest to use the 3.4 version from SVN, the Qt4 support is far
> better and it doesn't screw up your .pro files.

Much better than Sid's version too?


-- 
 [ signature omitted ] 

Message 7 in thread

On 27.04.07 11:51:39, Lisandro Damián Nicanor Pérez Meyer wrote:
> El Viernes 27 Abril 2007, Andreas Pakulat escribió:
> > On 27.04.07 15:50:40, Antonello Lobianco wrote:
> > > hello.. I am trying to use kdevelop to devel a qt4 program..
> > > The problem is that, while on SuSe linux is fine, on Debian etch qt4 want
> > > specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
> > >
> > > How can I force kdevelop to use them?? I tryed on the program
> > > options->c++ specifics->qt  to use qt4 on /usr/share/qt4 but it seems
> > > this options has no results.. still using qmake-qt3 !!!
> > >
> > > Any help ??
> >
> > Remove the KDevelop version that you installed via APT and fetch the
> > source code from the KDE svn
> > (svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kdevelop), then follow
> > the build instructions found on
> > http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html
> >
> > And build KDevelop yourself. There's no way to convince the Etch version
> > to use qmake-qt4, you could change the symlink /usr/bin/qmake to point
> > to qt4 instead of qt3 and do the same thing with designer, however I
> > really suggest to use the 3.4 version from SVN, the Qt4 support is far
> > better and it doesn't screw up your .pro files.
> 
> Much better than Sid's version too?

For QMake and Qt4 there are a few bugfixes especially in the .pro
parser. Also seeing stuff from a .qmake.cache variable and having proper
defaults for the debug/release and QT options only works there.

OTOH, KDE 3.5.7 is due at the end of May (22nd), so unless you have
problems you may as well wait. I guess Sid will pick up KDE
3.5.7/KDevelop3.4.1 in early June.

Andreas

-- 
 [ signature omitted ] 

Message 8 in thread

El Viernes 27 Abril 2007, Andreas Pakulat escribió:
> On 27.04.07 11:51:39, Lisandro Damián Nicanor Pérez Meyer wrote:
> > El Viernes 27 Abril 2007, Andreas Pakulat escribió:
> > > On 27.04.07 15:50:40, Antonello Lobianco wrote:
> > > > hello.. I am trying to use kdevelop to devel a qt4 program..
> > > > The problem is that, while on SuSe linux is fine, on Debian etch qt4
> > > > want specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
> > > >
> > > > How can I force kdevelop to use them?? I tryed on the program
> > > > options->c++ specifics->qt  to use qt4 on /usr/share/qt4 but it seems
> > > > this options has no results.. still using qmake-qt3 !!!
> > > >
> > > > Any help ??
> > >
> > > Remove the KDevelop version that you installed via APT and fetch the
> > > source code from the KDE svn
> > > (svn://anonsvn.kde.org/home/kde/branches/KDE/3.5/kdevelop), then follow
> > > the build instructions found on
> > > http://www.kdevelop.org/index.html?filename=3.4/branches_compiling.html
> > >
> > > And build KDevelop yourself. There's no way to convince the Etch
> > > version to use qmake-qt4, you could change the symlink /usr/bin/qmake
> > > to point to qt4 instead of qt3 and do the same thing with designer,
> > > however I really suggest to use the 3.4 version from SVN, the Qt4
> > > support is far better and it doesn't screw up your .pro files.
> >
> > Much better than Sid's version too?
>
> For QMake and Qt4 there are a few bugfixes especially in the .pro
> parser. Also seeing stuff from a .qmake.cache variable and having proper
> defaults for the debug/release and QT options only works there.
>
> OTOH, KDE 3.5.7 is due at the end of May (22nd), so unless you have
> problems you may as well wait. I guess Sid will pick up KDE
> 3.5.7/KDevelop3.4.1 in early June.

Good to read this. I did had some problems with the .pro parser, indeed, but 
solved them using... indentation :-)

Thanks for the info, Lisandro.

-- 
 [ signature omitted ] 

Message 9 in thread

> hello.. I am trying to use kdevelop to devel a qt4 program..
> The problem is that, while on SuSe linux is fine, on Debian etch qt4 want
> specific "xxx-qt4" programs (e.g. moc-qt4, qmake-qt4 ...)
>
> How can I force kdevelop to use them?? I tryed on the program options->c++
> specifics->qt  to use qt4 on /usr/share/qt4 but it seems this options has no
> results.. still using qmake-qt3 !!!

Actually, I am not familiar with KDevelop, but in debian (and other
debian-based distros, like ubuntu and such) there is command
"update-alternatives" which will let you pick which binary will be
invoked in case there are more with same name (like qmake from qt3 and
qmake form qt4)

So, as root do:

update-alternatives --config qmake
update-alternatives --config uic
update-alternatives --config designer
update-alternatives --config assistant
update-alternatives --config qtconfig
update-alternatives --config moc
update-alternatives --config lupdate
update-alternatives --config lrelease
update-alternatives --config linguist

Pick the qt4 version each time .... should solve the problem :)

Martin Petricek

--
 [ signature omitted ]