Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 21:45:42 -0500
From:      Bob Bomar <bulldog@fxp.org>
To:        Redmond Militante <r-militante@northwestern.edu>
Cc:        questions@freebsd.org
Subject:   Re: trolltech qt questions
Message-ID:  <20030313024542.GA30550@peitho.fxp.org>
In-Reply-To: <20030313022056.GA369@darkpossum>
References:  <20030313022056.GA369@darkpossum>

next in thread | previous in thread | raw e-mail | index | archive | help

--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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030313024542.GA30550>