From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-66346-garchives=archives.gentoo.org@gentoo.org>)
	id 1I7PLB-0002Rj-62
	for garchives@archives.gentoo.org; Sun, 08 Jul 2007 05:29:49 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l685ScDn010566;
	Sun, 8 Jul 2007 05:28:38 GMT
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.177])
	by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l685OQgU005933
	for <gentoo-user@lists.gentoo.org>; Sun, 8 Jul 2007 05:24:26 GMT
Received: by py-out-1112.google.com with SMTP id d32so1436908pye
        for <gentoo-user@lists.gentoo.org>; Sat, 07 Jul 2007 22:24:25 -0700 (PDT)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=WozqtrIgrLQyPUJFqkLubIKlcWTz3Zhy7H22fV0ARRIocbE8/EF4eCv5nYF8ttIMn9O1hs/8r9c1CmfS3tJLp2D1kZQfrd0rItTBKq9yGx6SU9Itr6BB8x0Os0C5C96QrcHBbSaTlFzT14yrh/45WpRdS3vNpdPVVlM+Zl4Ymo8=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references;
        b=SYLkaiT0jMRQNZP9HtSde7ajV4N03AdVzRVEyANI3Xvdo0090HfXTLA8E6SnZUE8RON70jPmmC8ga+d7ziPHD7MNZ/i/UnEnTbDcdhB4YUIJVRLcVMphyHSj2DiuI9mXMvmbu0gyK/Z1yTBT7q1mlVrg70yCWJCERxUJwRY2imk=
Received: by 10.65.147.1 with SMTP id z1mr3070694qbn.1183872265482;
        Sat, 07 Jul 2007 22:24:25 -0700 (PDT)
Received: by 10.64.251.15 with HTTP; Sat, 7 Jul 2007 22:24:25 -0700 (PDT)
Message-ID: <8cd1ed20707072224g76114028nb857c9c7bbce13c7@mail.gmail.com>
Date: Sun, 8 Jul 2007 17:24:25 +1200
From: "Kent Fredric" <kentfredric@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] QT4 programming setup
In-Reply-To: <loom.20070708T062259-655@post.gmane.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <loom.20070708T062259-655@post.gmane.org>
X-Archives-Salt: c66f11e5-1914-4ffc-b8da-b04b276024d9
X-Archives-Hash: 06955624fd09e0f58293f884fc86d362

On 7/8/07, James <wireless@tampabay.rr.com> wrote:
> Hello,
>
> I have qt3 and qt4 installed (?):
>
> x11-libs/qt
> Installed versions:  3.3.8-r2  4.2.3-r1
>
> So I picked up what looks like an interesting book
> on C++ and QT4 part of the Bruce Perens Open Source series.
>
> Looking at the brief installation guide it tells you to check
> your QTDIR setting, so I use 'env | grep QTDIR' and get:
>
> QTDIR=/usr/qt/3
>
> When I go to /usr/qt I do not even see a dir for '4'?
> So I want to set up QT4 so I can follow along the book.
>
>
> But if I look at (moc uic assistant and designer) they look
> like version 4.2.3:
> moc -v
> Qt Meta Object Compiler version 59 (Qt 4.2.3)
> uic -v
> Qt User Interface Compiler version 4.2.3
>
>
> I did not find any wikis or such to guide one thru setting
> up QT4 form programming. Since I use kde as the desktop,
> I do not want to hose anything on the system.
>
> Suggestions for setting up QT4 to write some code, without
> hosing the system, are welcome.....
>
>
> James
>
> --
> gentoo-user@gentoo.org mailing list
>
>


qt4 is in a different structure to qt3,

/usr/include/qt4/
instead of /usr/qt/3/include

/usr/bin/moc
instead of /usr/qt3/moc

/usr/share/qt4/
instead of /usr/qt/3/ ....

using eix ( app-portage/eix ):
  eix ^qt$

[I] x11-libs/qt
     Available versions:
        (3)     3.3.4-r8 [[3.3.8-r2]]
        (4)     4.2.3-r1 [[(~)4.3.0]] **9999[1] **20070423[1]

using qlist (app-portage/portage-utils)

qlist =x11-libs/qt-3.3.8-r2
qlist =x11-libs/qt-4.3.0

That should tell you what your looking for.


for the actual programming part, i do believe its all set up for you.

qmake -project
qmake
make

thats all i had to do to build my first QT app :)

-- 
Kent
ruby -e '[1, 2, 4, 7, 0, 9, 5, 8, 3, 10, 11, 6, 12, 13].each{|x|
print "enNOSPicAMreil kdrtf@gma.com"[(2*x)..(2*x+1)]}'
-- 
gentoo-user@gentoo.org mailing list