When i finished ./configure
and edit src/gui/Makefile to remove -O2
then gmake ,at the end of output script,there have an error like this:
cd src/gui/ && gmake -f Makefile gmake[1]: Entering directory `/var/tmp/qt-x11-opensource-src-4.3.1/src/gui" gmake[1]: *** No rule to make target `.uic/release-shared/ui_qprintdialog.h", needed by `../../lib/libQtGui.so.4.3.1". Stop. gmake[1]: Leaving directory `/var/tmp/qt-x11-opensource-src-4.3.1/src/gui" gmake: *** [sub-gui-make_default-ordered] Error 2.


then i check the file src/gui/Makefile ,there have rules like next:

####### Build rules

all: Makefile ../../lib/libQtGui.prl ../../lib/libQtGui.la ../../lib/pkgconfig/QtGui.pc ../../lib/$(TARGET)

../../lib/$(TARGET): .uic/release-shared/ui_qprintdialog.h .uic/release-shared/ui_qprintpropertiesdialog.h .uic/release-shared/ui_qfiledialo
g.h $(OBJECTS) $(SUBLIBS) $(OBJCOMP)
@$(CHK_DIR_EXISTS) ../../lib/ || $(MKDIR) ../../lib/
-$(DEL_FILE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP)
-ln -s $(TARGET) $(TARGET0)
-ln -s $(TARGET) $(TARGET1)
-ln -s $(TARGET) $(TARGET2)
-$(DEL_FILE) ../../lib/$(TARGET)
-$(DEL_FILE) ../../lib/$(TARGET0)
-$(DEL_FILE) ../../lib/$(TARGET1)
-$(DEL_FILE) ../../lib/$(TARGET2)
-$(MOVE) $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) ../../lib/



staticlib: $(TARGETA)

$(TARGETA): .uic/release-shared/ui_qprintdialog.h .uic/release-shared/ui_qprintpropertiesdialog.h .uic/release-shared/ui_qfiledialog.h $(OBJ
ECTS) $(OBJCOMP)
-$(DEL_FILE) $(TARGETA)
$(AR) $(TARGETA) $(OBJECTS)

../../lib/libQtGui.prl:
@$(QMAKE) -prl -spec ../../mkspecs/solaris-cc -unix gui.pro
Makefile: gui.pro ../../.qmake.cache ../../mkspecs/solaris-cc/qmake.conf ../../mkspecs/common/unix.conf \
../../mkspecs/features/exclusive_builds.prf \
../../mkspecs/features/default_pre.prf \
:/ui_qprintdialog.h

I don't know why this error occurs.thanks for helping