| Compiling qt under Solaris |
Problem:
qt compilation fails with messages similar to:
/usr/openwin/include/X11/Xlib.h: warning: ANSI C++ forbids declaration '[some X function]' with no type
Solution:
In $QTDIR/configs, edit the appropriate config file for your solaris
build (this was either selected for you automatically when you ran configure
or can be forced with the -platform and -shared/-static
configure options).
The available solaris configs in qt 2.2.3 are:
solaris-64-shared solaris-cc-shared solaris-64-shared-debug solaris-cc-shared-debug solaris-64-static solaris-cc-static solaris-64-static-debug solaris-cc-static-debug solaris-cc-gcc-shared solaris-g++-shared solaris-cc-gcc-shared-debug solaris-g++-shared-debug solaris-cc-gcc-static solaris-g++-static solaris-cc-gcc-static-debug solaris-g++-static-debug
Example:
SYSCONF_CXXFLAGS_X11 = -I/usr/openwin/include
SYSCONF_CXXFLAGS_X11 = -isystem/usr/openwin/include