[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: QT installation and compiling
Ralph Deal (deal@kazoo.edu) wrote:
>...I need to have QT working and an assignment of a path to QTDIR. ....
Here's what I do in makefiles:
# The location of MY QT installation.
QTDIR = /usr/local/qt
QTINCL = -I$(QTDIR)/include
QTCC = $(QTDIR)/bin/moc
QTLIBS = -L$(QTDIR)/lib -lqt
# My other includes....
INCL = -I../include -I/usr/include
Then, later....
CXXFLAGS = $(QTINCL) $(DEBUG) ...
$(CXX) -o $@ $(MAINOBJS) $(INCL) $(DEBUG) $(QTLIBS)
I think you get the idea from this. I try to write fairly general makefiles
and avoid a lot of fiddling (code once, compile anywhere :). You can do
things this way, or use the above as a guide to setting environment variables
intelligently.
Regards,
---> RGB <---