[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QT installation and compiling



Hi, Bob,

> 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.


Very helpful!  It is interesting that using the RedHat rpm which I got
from the qt site (www.troll.no), my directory is in a different place.
Did you relocate the directories to make more sense to you?
I got two warnings when I reloaded version qt-2.0.1:
/sbin/ldconfig: warning: can't open /opt/kde/lib(No such file or dir.),
skipping
AND
/sbin/ldconfig: warning: can't open /usr/lib/qt-1.44/lib (No such file or
directory), skipping
which are strange since I had been running the kde window manager and why
should there be a qt-1.44 directory expected in this version?

Sorry I missed last night's meeting - just too much on my plate (can you
believe that from a retiree?).  I especially wanted to hear Bruce's
local
networking talk.  Hope he puts something on the site on the topic.

	Thanks,   Ralph