Hi, I'm getting used to making and using makefiles on my own with programming and I've run into a snag when following a QT tutorial, I wonder if anyone can help...
Here's the makefile:
Code:
INCL= -I$(QTDIR)/include -I$(KDEDIR)/include
CFLAGS= -pipe -O2 -fno-strength-reduce
LFLAGS= -L$(QTDIR)/lib -L$(KDEDIR)/lib -L/usr/X11R6/lib
LIBS= -lqt -lX11 -lXext
CC=g++
qtfortune: qtfortune.o
$(CC) $(LFLAGS) -o qtfortune qtfortune.o $(LIBS)
qtfortune.o: qtfortune.cpp
clean:
rm -f qtfortune
rm -f qtfortune.o
.SUFFIXES: .cpp
.cpp.o:
$(CC) -c $(CFLAGS) $(INCL) -o $@ $<
I get the following output (error):
/usr/bin/ld: cannot find -lqt
collect: ld returned 1 exit status
make: *** [qtfortune] Error 1
I checked ld.so.conf and it has the qt3 directory (/usr/lib/qt3/lib) already...
The text says something that the LIBS variable is a list of library names the program will need and gives the example that -lqt will be changed into libqt.so...
I've looked everywhere and I can't find libqt.so anywhere...the closest thing I can see is libqt-mt.so.3 or something in the lib directory...
Can anyone point me in the right direction?