Gentoo Archives: gentoo-user

From: Kent Fredric <kentfredric@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] QT4 programming setup
Date: Sun, 08 Jul 2007 05:29:49
Message-Id: 8cd1ed20707072224g76114028nb857c9c7bbce13c7@mail.gmail.com
In Reply to: [gentoo-user] QT4 programming setup by James
1 On 7/8/07, James <wireless@×××××××××××.com> wrote:
2 > Hello,
3 >
4 > I have qt3 and qt4 installed (?):
5 >
6 > x11-libs/qt
7 > Installed versions: 3.3.8-r2 4.2.3-r1
8 >
9 > So I picked up what looks like an interesting book
10 > on C++ and QT4 part of the Bruce Perens Open Source series.
11 >
12 > Looking at the brief installation guide it tells you to check
13 > your QTDIR setting, so I use 'env | grep QTDIR' and get:
14 >
15 > QTDIR=/usr/qt/3
16 >
17 > When I go to /usr/qt I do not even see a dir for '4'?
18 > So I want to set up QT4 so I can follow along the book.
19 >
20 >
21 > But if I look at (moc uic assistant and designer) they look
22 > like version 4.2.3:
23 > moc -v
24 > Qt Meta Object Compiler version 59 (Qt 4.2.3)
25 > uic -v
26 > Qt User Interface Compiler version 4.2.3
27 >
28 >
29 > I did not find any wikis or such to guide one thru setting
30 > up QT4 form programming. Since I use kde as the desktop,
31 > I do not want to hose anything on the system.
32 >
33 > Suggestions for setting up QT4 to write some code, without
34 > hosing the system, are welcome.....
35 >
36 >
37 > James
38 >
39 > --
40 > gentoo-user@g.o mailing list
41 >
42 >
43
44
45 qt4 is in a different structure to qt3,
46
47 /usr/include/qt4/
48 instead of /usr/qt/3/include
49
50 /usr/bin/moc
51 instead of /usr/qt3/moc
52
53 /usr/share/qt4/
54 instead of /usr/qt/3/ ....
55
56 using eix ( app-portage/eix ):
57 eix ^qt$
58
59 [I] x11-libs/qt
60 Available versions:
61 (3) 3.3.4-r8 [[3.3.8-r2]]
62 (4) 4.2.3-r1 [[(~)4.3.0]] **9999[1] **20070423[1]
63
64 using qlist (app-portage/portage-utils)
65
66 qlist =x11-libs/qt-3.3.8-r2
67 qlist =x11-libs/qt-4.3.0
68
69 That should tell you what your looking for.
70
71
72 for the actual programming part, i do believe its all set up for you.
73
74 qmake -project
75 qmake
76 make
77
78 thats all i had to do to build my first QT app :)
79
80 --
81 Kent
82 ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
83 print "enNOSPicAMreil kdrtf@×××.com"[(2*x)..(2*x+1)]}'
84 --
85 gentoo-user@g.o mailing list

Replies

Subject Author
[gentoo-user] Re: QT4 programming setup James <wireless@×××××××××××.com>