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: pgp00000.pgp
Description: PGP signature

Reply via email to