testregression usage mini howto

Koos Vriezen koos.vriezen at xs4all.nl
Thu Feb 10 18:16:50 GMT 2005


On Thu, Feb 10, 2005 at 05:13:47PM +0100, Leo Savernik wrote:
> 1. From within kdelibs/khtml, issue

Exactly what I did, but:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -I../dcop -I../kdecore -I../kio/kssl -I../kjs -I../kimgio -I./java -I../dcop -I./misc -I./dom -I./xml -I./html -I./css -I../libltdl -I../kio/kssl -I../kio/kssl -I../kdeprint -I../interfaces -I../interfaces/kregexpeditor -I../kwallet/client -I../kutils -I.. -I../dcop -I../libltdl -I../kdefx -I../kdecore -I../kdecore -I../kdeui -I../kio -I../kio/kio -I../kio/kfile -I.. -I/opt/kde-cvs/qt/include -I/usr/X11R6/include -I/opt/kde-cvs/kde3/include   -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -O2 -march=pentium4 -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common -fno-exceptions -fno-check-new -fno-common  -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT
  -DQT_NO_TRANSLATION  -c -o testregression.all_cpp.o `test -
f 'testregression.all_cpp.cpp' || echo './'`testregression.all_cpp.cpp
In file included from /opt/kde-cvs/qt/include/private/qt_x11_p.h:66,
                 from /opt/kde-cvs/qt/include/private/qfontengine_p.h:282,
                 from test_regression_fontoverload.cpp:26,
                 from testregression.all_cpp.cpp:3:
/usr/X11R6/include/X11/Xlib.h:219: error: `Font' does not name a type
/usr/X11R6/include/X11/Xlib.h:280: error: `Window' does not name a type
/usr/X11R6/include/X11/Xlib.h:334: error: `Window' does not name a type
/usr/X11R6/include/X11/Xlib.h:353: error: ISO C++ forbids declaration of `Screen' with no type
/usr/X11R6/include/X11/Xlib.h:353: error: expected `;' before '*' token
/usr/X11R6/include/X11/Xlib.h:422: error: `Window' does not name a type
/usr/X11R6/include/X11/Xlib.h:559: error: ISO C++ forbids declaration of `Screen' with no type
................ lots more .............

made me wondor if this was the thing to do. Looking now at these errors is
likely be the enable-final I always use (adding fixx11h.h include at
test_regression_fontoverload.cpp:27 unfortunately doesn't help). Ok I'll
try it when compiling w/o enable-final one day.

Thanks for your info. This should really be documented somewhere, no (eg a
testregression.readme or so)?

Koos




More information about the kfm-devel mailing list