Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 20:20:56 -0600
From:      Redmond Militante <r-militante@northwestern.edu>
To:        freebsd-questions@freebsd.org
Subject:   trolltech qt questions
Message-ID:  <20030313022056.GA369@darkpossum>

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

[-- Attachment #1 --]
hi

i'm trying to teach myself a little qt programming.  i'm on the first tutorial http://doc.trolltech.com/3.1/tutorial1-01.html

i created main.cpp in vi and saved it to a directory.  i type qmake -project and
 it generates a hello.pro file.  when i try to issue 'qmake', i get the error

QMAKESPEC has not been set, so configuration cannot be deduced.

upon reading the INSTALL instructions at ftp://ftp.trolltech.com/qt/source/INSTALL, i figured out that this was probably due to my path not being set correctly
trolltech's docs recommend you place

        QTDIR=/usr/local/qt
        PATH=$QTDIR/bin:$PATH
        MANPATH=$QTDIR/doc/man:$MANPATH
        LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH

        export QTDIR PATH MANPATH LD_LIBRARY_PATH

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 the qt 3.1.2 free version from tar archive downloaded off the trolltech website.  i had downloaded the tar file and was halfway through installing it manually 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.

has anyone done this before?  i'd like to continue with the tutorial but am not sure how to proceed

thanks again
 

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE+b+sHFNjun16SvHYRArzoAJ9gu2SmyznXdDTO1kOuy3cNORTw8QCgxf19
YEZ6UBJLVhelfMaeQrc2F6E=
=BI/7
-----END PGP SIGNATURE-----

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