The collected works of Rich

In case anyone wants to use the latest and greatest version of QT
here is what I had to do to get past the various errors.

Code:
./configure -prefix /usr/local/Trolltech/Qt-4.7.0 -debug -static -qt-gif -qt-libjpeg -qt-libpng -verbose -continue -platform irix-cc -qt-sql-mysql -qt-sql-tds -I/usr/local/mysql/include -L/usr/local/mysql/lib -I/usr/local/freetds-0.82/include -L/usr/local/freetds-0.82/src/dblib/.libs -no-sql-odbc -confirm-license -nomake examples -nomake demos -mysql_config /usr/local/mysql/bin/mysql_config -no-dbus -no-xsync -no-script -no-javascript-jit -no-libpng


You have to modify the following pro files to get around the error

Code:
C++ prelinker: error: instantiation loop


/src/corelib/corelib.pro
/src/gui/gui.pro
/src/opengl/opengl.pro

Add in this line which stops prelinker from running after
the lib *.a file is created.

Code:
QMAKE_CXXFLAGS      += -no_prelink -ptused



To get the designer to compile
you have to modify the following file

/tools/designer/src/components/lib/lib.pro

add the following to the
INCLUDEPATH +=
Code:
$$QT_SOURCE_TREE/tools/designer/translations/.moc/debug-static \


To get around the error

Code:
The source file "moc_qtpropertybrowser.cpp" is unavailable.
#include "moc_qtpropertybrowser.cpp"
^
1 catastrophic error detected in the compilation of "../propertyeditor/propertyeditor.cpp".



Also the following file has to tweaked.

/tools/designer/src/components/formeditor/brushmanagerproxy.h

Code:
//     Q_PRIVATE_SLOT(d_func(), void brushAdded(const QString &, const QBrush &))
//     Q_PRIVATE_SLOT(d_func(), void brushRemoved(const QString &name))
void brushAdded(const QString &, const QBrush &);
void brushRemoved(const QString &name);


I'll formalize the fixes and send them to Qt when I get a chance
but I wanted to post the fixes here because searching the Qt
bug list is a pain and usually fruitless.

The C++ prelinker: error: instantiation loop was solved by reading
the forms here.
viewtopic.php?f=11&t=11942&start=75

Rich
recondas wrote:
Nicely done - have you considered contributing your work to nekoware?


I have. It is the time and brain power issue.

By the time I finish what I'm being paid
to get done my brain is toast.

I just want to go home and look at my garden.
For qt-everywhere-opensource-src-4.7.0-beta1
you do not have to tweak the brushmanagerproxy.h

for
/tools/designer/src/components/lib/lib.pro
add the following to the
INCLUDEPATH +=
$$QT_SOURCE_TREE/tools/designer/src/lib/.moc/debug-static \

you still have to modify the
/src/corelib/corelib.pro
/src/gui/gui.pro
/src/opengl/opengl.pro

but can make it specific to irix-cc with
irix-cc:QMAKE_CXXFLAGS += -no_prelink -ptused

Yes I get paid to write and maintain code on a group of SGI Fuels and an Altix
Most of my work is done on and for Linux, Qt makes it easy get it running
on the SGIs and windows boxes.

This group is not hiring but our
Subsea Systems unit might be needing some help ;)
check out careers at
c-a-m.com
If you try to use -qt-zlib option compile will fail.

work around is to change the line in /src/3rdparty/zlib/zlib.h

#if defined(QT_VISIBILITY_AVAILABLE)
to
#if defined(QT_VISIBILITY_AVAILABLE) && !defined(__sgi)