[gentoo-user] qt3/4 confusion

2006-06-22 Thread krgn

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



Re: [gentoo-user] qt3/4 confusion

2006-06-22 Thread Alex Schuster
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



Re: [gentoo-user] qt3/4 confusion

2006-06-22 Thread krgn

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



Re: [gentoo-user] qt3/4 confusion

2006-06-22 Thread Hemmann, Volker Armin
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