* [gentoo-user] qt3/4 confusion
@ 2006-06-22 13:27 krgn
2006-06-22 14:47 ` Alex Schuster
2006-06-22 17:25 ` Hemmann, Volker Armin
0 siblings, 2 replies; 4+ messages in thread
From: krgn @ 2006-06-22 13:27 UTC (permalink / raw
To: gentoo-users
hey,
I am trying to compile a program written in qt3 which apprently,
according to the author, fails because it being compiled using version 4
qmake. I checked and indeed qmake is from version 4, yet in my
environment, the QTDIR variable is pointing to /usr/qt/3. Now that both
confuses me and leaves me with the question on how to change the profile
completely to qt3 for this compiliation. Has anyone a hint for me?
thanks,
KArstn
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] qt3/4 confusion
2006-06-22 13:27 [gentoo-user] qt3/4 confusion krgn
@ 2006-06-22 14:47 ` Alex Schuster
2006-06-22 16:36 ` krgn
2006-06-22 17:25 ` Hemmann, Volker Armin
1 sibling, 1 reply; 4+ messages in thread
From: Alex Schuster @ 2006-06-22 14:47 UTC (permalink / raw
To: gentoo-user
Karstn writes:
> I am trying to compile a program written in qt3 which apprently,
> according to the author, fails because it being compiled using version 4
> qmake. I checked and indeed qmake is from version 4, yet in my
> environment, the QTDIR variable is pointing to /usr/qt/3. Now that both
> confuses me and leaves me with the question on how to change the profile
> completely to qt3 for this compiliation. Has anyone a hint for me?
I am using a little shell function to change between various Qt
versions (put it into ~/.bashrc if you like). I'm quite sure the
library line is not necessary, but it doesn't hurt either and I kept
it.
switchqt()
{
export QTDIR=$1
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
}
"switchqt /usr/qt/3" activates Qt 3 for this shell.
Alex
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] qt3/4 confusion
2006-06-22 14:47 ` Alex Schuster
@ 2006-06-22 16:36 ` krgn
0 siblings, 0 replies; 4+ messages in thread
From: krgn @ 2006-06-22 16:36 UTC (permalink / raw
To: gentoo-user
hey alex,
I used your instructions, and got a bit further yet there are still
issues that seem to be contradictory. First of all, a snippet from the/
./configure /process:
/
checking whether QTDIR environment variable is set... /usr/qt/3
checking for Qt library... qt-mt
checking for Qt library version >= 3.1.1... yes
checking for qmake... /usr/bin/qmake /but it looks in /usr/bin ??
that is certainly part of the problem, since the version there is from
qt4 (/qmake --version --> 4.1.3/)
so this part of the make process certainly make more sense in that light:
/g++ -c -pipe -O2 -mtune=i686 -pipe -D_REENTRANT -Wall -W -fPIC
-DQT_NO_DEBUG -D
QT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++
-I. -I/u
sr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.moc
-I.ui -
o initfio.o initfio.cpp
/
so it basically includes qt4, which must lead to failure. The qmake from
/usr/qt/3/bin returns to be, obviously, version 3. something is strange
there, any idea?
thanks,
Karsten
> Karstn writes:
>
>
>> I am trying to compile a program written in qt3 which apprently,
>> according to the author, fails because it being compiled using version 4
>> qmake. I checked and indeed qmake is from version 4, yet in my
>> environment, the QTDIR variable is pointing to /usr/qt/3. Now that both
>> confuses me and leaves me with the question on how to change the profile
>> completely to qt3 for this compiliation. Has anyone a hint for me?
>>
>
> I am using a little shell function to change between various Qt
> versions (put it into ~/.bashrc if you like). I'm quite sure the
> library line is not necessary, but it doesn't hurt either and I kept
> it.
>
> switchqt()
> {
> export QTDIR=$1
> export PATH=$QTDIR/bin:$PATH
> export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
> }
>
> "switchqt /usr/qt/3" activates Qt 3 for this shell.
>
> Alex
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] qt3/4 confusion
2006-06-22 13:27 [gentoo-user] qt3/4 confusion krgn
2006-06-22 14:47 ` Alex Schuster
@ 2006-06-22 17:25 ` Hemmann, Volker Armin
1 sibling, 0 replies; 4+ messages in thread
From: Hemmann, Volker Armin @ 2006-06-22 17:25 UTC (permalink / raw
To: gentoo-user
On Thursday 22 June 2006 15:27, krgn wrote:
> hey,
>
> I am trying to compile a program written in qt3 which apprently,
> according to the author, fails because it being compiled using version 4
> qmake. I checked and indeed qmake is from version 4, yet in my
> environment, the QTDIR variable is pointing to /usr/qt/3. Now that both
> confuses me and leaves me with the question on how to change the profile
> completely to qt3 for this compiliation. Has anyone a hint for me?
>
> thanks,
>
> KArstn
here is a quick and very dirty workaround. quickpackage qt4, unmerge qt4,
install your app, emerge qt4 with usepkg
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-22 17:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 13:27 [gentoo-user] qt3/4 confusion krgn
2006-06-22 14:47 ` Alex Schuster
2006-06-22 16:36 ` krgn
2006-06-22 17:25 ` Hemmann, Volker Armin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox