Trolltech Home | Qt4-preview-feedback Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt4-preview-feedback Archive, April 2007
Problems compiling Qt4.3.0beta on Solaris 9 with SunStudio 11


Message 1 in thread

Trolls,

I'm on Solaris 9, using SunStudio 11, which is fully patched.

CC -V
CC: Sun C++ 5.8 Patch 121017-10 2007/02/21

Trying to compile Qt-4.3.0-beta with this compiler yields the following error
message while compiling src/gui/painting/qdrawhelper.cpp:

CC -c -I/code/dev-ms12/sunobjs/include -I/code/dev-ms12/sunobjs/include/mysql
-O2 -mt -KPIC -DQT_SHARED -DQT_EDITION=QT_EDITION_DESKTOP -DQT_BUILD_GUI_LIB
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
-DQT_RASTER_IMAGEENGINE -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB
-DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA
-DQT_NO_STYLE_WINDOWSXP -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/solaris-cc -I.
-I../../include/QtCore -I../../include/QtCore -I../../include
-I../../include/QtGui -I../3rdparty/freetype/src -I../3rdparty/freetype/include
-I../3rdparty/freetype/builds/unix -I.moc/release-shared
-I/usr/openwin/share/include -I.uic/release-shared -I../../include/QtCore
-I../../include/QtCore -I../../include -I../../include/QtGui
-I../3rdparty/freetype/src -I../3rdparty/freetype/include
-I../3rdparty/freetype/builds/unix -I.moc/release-shared
-I/usr/openwin/share/include -I.uic/release-shared -o
.obj/release-shared/qdrawhelper.o painting/qdrawhelper.cpp
"../../include/QtCore/../../src/corelib/thread/qatomic.h", line 109: Warning:
value hides QBasicAtomic::value.
"../../include/QtCore/../../src/corelib/thread/qatomic.h", line 112: Warning:
value hides QBasicAtomic::value.
"../../include/QtCore/../../src/corelib/thread/qatomic.h", line 115: Warning:
value hides QBasicAtomic::value.
"painting/qdrawhelper.cpp", line 4604: Error: Could not find a match for
qt_rectfill needed in qt_rectfill_template<unsigned>(QRasterBuffer*, int, int,
int, int, unsigned).
1 Error(s) and 3 Warning(s) detected.


Does anyone have any suggestions on how to solve/workaround this one?

To be honest, I'm at a loss as to why the compiler can't find qt_rectfill. 
I've preprocessed qdrawhelper.cpp and qt_fillrect() appears as a template in
the .i file above qt_fillrect_template.  I've tried separating the arguments
out to local variables, that didn't work.  I've tried force casting the
qt_colorConvert() argument, no love.

Darin Broady

To unsubscribe - send "unsubscribe" in the subject to qt4-preview-feedback-request@xxxxxxxxxxxxx