From owner-freebsd-questions Wed Mar 12 18:45:48 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51BA637B404 for ; Wed, 12 Mar 2003 18:45:45 -0800 (PST) Received: from peitho.fxp.org (peitho.fxp.org [209.26.95.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2E2E43FDD for ; Wed, 12 Mar 2003 18:45:43 -0800 (PST) (envelope-from bulldog@fxp.org) Received: by peitho.fxp.org (Postfix, from userid 1206) id 14EE3137AA; Wed, 12 Mar 2003 21:45:42 -0500 (EST) Date: Wed, 12 Mar 2003 21:45:42 -0500 From: Bob Bomar To: Redmond Militante Cc: questions@freebsd.org Subject: Re: trolltech qt questions Message-ID: <20030313024542.GA30550@peitho.fxp.org> References: <20030313022056.GA369@darkpossum> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20030313022056.GA369@darkpossum> User-Agent: Mutt/1.4i X-Mailer: socket() Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 12, 2003 at 08:20:56PM -0600, Redmond Militante wrote: > hi >=20 > i'm trying to teach myself a little qt programming. i'm on the first tut= orial http://doc.trolltech.com/3.1/tutorial1-01.html >=20 > i created main.cpp in vi and saved it to a directory. i type qmake -proj= ect and > it generates a hello.pro file. when i try to issue 'qmake', i get the e= rror >=20 > QMAKESPEC has not been set, so configuration cannot be deduced. >=20 > upon reading the INSTALL instructions at ftp://ftp.trolltech.com/qt/sourc= e/INSTALL, i figured out that this was probably due to my path not being se= t correctly > trolltech's docs recommend you place >=20 > QTDIR=3D/usr/local/qt > PATH=3D$QTDIR/bin:$PATH > MANPATH=3D$QTDIR/doc/man:$MANPATH > LD_LIBRARY_PATH=3D$QTDIR/lib:$LD_LIBRARY_PATH >=20 > export QTDIR PATH MANPATH LD_LIBRARY_PATH >=20 > in your .bash_profile - since i'm on freebsd, the directory /usr/local/qt= doesn't exist. i was confused about whether or not i needed to install th= e qt 3.1.2 free version from tar archive downloaded off the trolltech websi= te. i had downloaded the tar file and was halfway through installing it ma= nually when i was informed by someone on irc not to do this. > i have kde 3.1 installed, so i have qt 3.1.1.4. i was wondering what the= correct directory was to set as QTDIR in my path, so that i can use qmake = and finish the tutorial. i was informed that i could get my correct QTDIR = from /usr/ports/Mk/bsd.kde.mk, but i can't make out from that file what the= correct path to my QTDIR should be. >=20 > has anyone done this before? i'd like to continue with the tutorial but = am not sure how to proceed >=20 > thanks again > =20 You can set the QMAKESPEC to /usr/X11R6/share/qt/mkspecs/freebsd-g++ or you can do: qmake -spec /usr/X11R6/share/qt/mkspecs/freebsd-g++ hello.pro --=20 /----------------------------------------------------------------\ | Bob Bomar bulldog@fxp.org http://www.bomar.us/~bob | |=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D| | FreeBSD: The Power to Serve. http://www.freeBSD.org | \----------------------------------------------------------------/ --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+b/DW9Jm/aTrtdKoRAtlkAJ9hsD1znNj+fcWk4EZlMV9Hl3AU6ACgmqLE ysPIlFt5PuAlTJSIr8iw0lA= =D+M3 -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message