View Full Version : qt prgram make error

18th May 2004, 10:51 AM
I just installed qt 3.2.1
and am trying to compile a simple hello program.

I get the following errors when I try to make the project
[curlious@localhost hello]$ make
g++ -o hello hello.o -Wl,-rpath,/usr/local/qt-x11-free-3.2.1/lib -L/usr/local/qt-x11-free-3.2.1/lib -L/usr/X11R6/lib -lqt -lXext -lX11 -lm
/usr/bin/ld: cannot find -lqt
collect2: ld returned 1 exit status
make: *** [hello] Error 1

I have set:[curlious@localhost hello]$ echo $LD_LIBRARY_PATH

The library appears to be in the dir[curlious@localhost lib]$ echo $PWD
[curlious@localhost lib]$ ls
libdesignercore.prl libqassistantclient.prl libqt.prl qt.pc
libeditor.prl libqnp.prl libqui.prl README

any clues
ps I am running the 64bit version of FEDORA

29th May 2004, 01:40 AM
I don't know anything about g++ for compiling.

I use the following three commands:

qmake -project
qmake foo.pro

qmake -project makes the project file
qmake foo.pro makes the Makefile
make makes the program

Hope this is of some help. I think it's neat.