I configured Qt 4.2.2 like this:

./configure -static -release -no-qt3support -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libjpeg

then:

make sub-src

then (as root):

cp -r qt_src/bin /usr/local/Trolltech/Qt-4.2.2/bin
cp -r qt_src/include /usr/local/Trolltech/Qt-4.2.2/include
cp -r qt_src/lib /usr/local/Trolltech/Qt-4.2.2/lib
cp -r qt_src/mkspecs /usr/local/Trolltech/Qt-4.2.2/mkspecs
cp -r qt_src/src /usr/local/Trolltech/Qt-4.2.2/src
cp -r qt_src/doc /usr/local/Trolltech/Qt-4.2.2/doc

in my ~/.profile I added:

export PATH="$PATH:/usr/local/Trolltech/Qt-4.2.2/bin"

Everything went well so far, except...

When I try to compile even the most simple/basic progam,
I get this error message:

teuniz@linux:~/c/nk2edf-0.42beta-src> make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/local/Trolltech/Qt-4.2.2/mkspecs/linux-g++ -I. -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtCore -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include/QtGui -I/usr/local/Trolltech/Qt-4.2.2/include -I. -Imoc -I. -o objects/main.o main.cpp
In file included from /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qglobal.h:1,
from /usr/local/Trolltech/Qt-4.2.2/src/corelib/global/qnamespace.h:27,
from /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qnamespace.h:1,
from /usr/local/Trolltech/Qt-4.2.2/src/corelib/kernel/qobjectdefs.h:27,
from /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qobjectdefs.h:1,
from /usr/local/Trolltech/Qt-4.2.2/src/corelib/kernel/qobject.h:29,
from /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qobject.h:1,
from /usr/local/Trolltech/Qt-4.2.2/src/corelib/kernel/qcoreapplication.h:27,
from /usr/local/Trolltech/Qt-4.2.2/include/QtCore/qcoreapplication.h:1,
from /usr/local/Trolltech/Qt-4.2.2/src/gui/kernel/qapplication.h:27,
from /usr/local/Trolltech/Qt-4.2.2/include/QtGui/qapplication.h:1,
from /usr/local/Trolltech/Qt-4.2.2/include/QtGui/QApplication:1,
from main.cpp:3:
/usr/local/Trolltech/Qt-4.2.2/src/corelib/global/qglobal.h:38:28: QtCore/qconfig.h: No such file or directory
/usr/local/Trolltech/Qt-4.2.2/src/corelib/global/qglobal.h:1075:6: #error "Qt not configured correctly, please run configure"
/usr/local/Trolltech/Qt-4.2.2/src/corelib/global/qglobal.h:1861:6: #error "Qt not configured correctly, please run configure"

I checked the dir /usr/local/Trolltech/Qt-4.2.2/src/corelib/global/ and the file qconfig.h is present!

When I do the same install and configuration on a box with SuSE 10.0 or OpenSUSE 10.2 everything works well (using the same sourcecode).

I hope somebody can solve this mysterie...

Tnx in advance,

Teuniz