Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 7

Qt-interest Archive, March 2002
Bug in qt-x11-free-3.0.2, configure -static, gmake install


Message 1 in thread

When configuring with -static, the Makefile for src subdirectory ends up bad. 
The install section cannot copy the files because the paths are incorrectly 
created, results in something like

cp /home/mpercy/qt-x11-free-3.0.2/lib//home/mpercy/qt-x11-free-3.0.2/libqt.a 
/usr/local/qt-3.0.2/lib/home/mpercy/qt-x11-free-3.0.2/libqt.a

THe problem here is that the Makefile line is
$(COPY) $(TARGET) "/usr/local/qt-3.0.2/$(TARGET)"

But TARGET was defined as
TARGET = $(QTDIR)/lib/libqt.a

Comparing to the shared version, the code looks like

$(COPY) $(QTDIR)/lib/liqt.so "/usr/local/qt-3.0.2/$(TARGET)"

and

TARGET = liqt.so

The correction I make is to change TARGET definition and all references to 
$(TARGET) to $(QTDIR)/lib [or $(DESTDIR)] as appropriate.

I tracked this down to some code, e.g., line 759 in 
qmake/generators/unixmake2.cpp which is giving the bogus TARGET definition. 
I'm sure other lines are involved in writing the various rules that reference 
$(TARGET).