Gentoo Archives: gentoo-user

From: krgn <k.gebbert@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] qt3/4 confusion
Date: Thu, 22 Jun 2006 16:55:05
Message-Id: 449AC720.70405@gmail.com
In Reply to: Re: [gentoo-user] qt3/4 confusion by Wonko@wonkology.org (Alex Schuster)
1 hey alex,
2
3 I used your instructions, and got a bit further yet there are still
4 issues that seem to be contradictory. First of all, a snippet from the/
5 ./configure /process:
6 /
7 checking whether QTDIR environment variable is set... /usr/qt/3
8 checking for Qt library... qt-mt
9 checking for Qt library version >= 3.1.1... yes
10 checking for qmake... /usr/bin/qmake /but it looks in /usr/bin ??
11
12 that is certainly part of the problem, since the version there is from
13 qt4 (/qmake --version --> 4.1.3/)
14 so this part of the make process certainly make more sense in that light:
15
16 /g++ -c -pipe -O2 -mtune=i686 -pipe -D_REENTRANT -Wall -W -fPIC
17 -DQT_NO_DEBUG -D
18 QT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++
19 -I. -I/u
20 sr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I.moc
21 -I.ui -
22 o initfio.o initfio.cpp
23 /
24 so it basically includes qt4, which must lead to failure. The qmake from
25 /usr/qt/3/bin returns to be, obviously, version 3. something is strange
26 there, any idea?
27
28 thanks,
29
30 Karsten
31 > Karstn writes:
32 >
33 >
34 >> I am trying to compile a program written in qt3 which apprently,
35 >> according to the author, fails because it being compiled using version 4
36 >> qmake. I checked and indeed qmake is from version 4, yet in my
37 >> environment, the QTDIR variable is pointing to /usr/qt/3. Now that both
38 >> confuses me and leaves me with the question on how to change the profile
39 >> completely to qt3 for this compiliation. Has anyone a hint for me?
40 >>
41 >
42 > I am using a little shell function to change between various Qt
43 > versions (put it into ~/.bashrc if you like). I'm quite sure the
44 > library line is not necessary, but it doesn't hurt either and I kept
45 > it.
46 >
47 > switchqt()
48 > {
49 > export QTDIR=$1
50 > export PATH=$QTDIR/bin:$PATH
51 > export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
52 > }
53 >
54 > "switchqt /usr/qt/3" activates Qt 3 for this shell.
55 >
56 > Alex
57 >
58
59 --
60 gentoo-user@g.o mailing list