[Qt-interest] Problem compiling latest Qt4.5 (git repo)

Abdelrazak Younes younes.abdel at gmail.com
Mon Jan 12 18:03:59 CET 2009


Hello,

Don't know if this known problem but, when I configure with:

./configure -prefix . -fast -no-qt3support -no-phonon -no-phonon-backend 
-no-gtkstyle -no-webkit -graphicssystem raster

I can't compile latest git:

g++ -c -include .pch/release-shared/QtGui -m64 -pipe -g -pthread 
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -O2 
-fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT 
-fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE 
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT 
-DQT_RASTER_IMAGEENGINE -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE 
-DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC 
-DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP 
-DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE 
-DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -D_LARGEFILE64_SOURCE 
-D_LARGEFILE_SOURCE -I../../mkspecs/linux-g++-64 -I. 
-I../../include/QtCore -I../../include -I../../include/QtGui 
-I.rcc/release-shared -I../3rdparty/xorg -I/usr/include/freetype2 
-I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared 
-I/usr/X11R6/include -I.uic/release-shared -o 
.obj/release-shared/qwidget_x11.o kernel/qwidget_x11.cpp
kernel/qwidget_x11.cpp: In function ‘void 
qt_x11_getX11InfoForWindow(QX11Info*, const XWindowAttributes&)’:
kernel/qwidget_x11.cpp:2891: error: invalid initialization of reference 
of type ‘const XWindowAttributes&’ from expression of type 
‘QX11WindowAttributes’
kernel/qwidget_x11.cpp:2887: error: in passing argument 2 of ‘void 
qt_x11_getX11InfoForWindow(QX11Info*, const XWindowAttributes&)’
../../include/QtGui/qx11info_x11.h: In function ‘void 
qt_x11_getX11InfoForWindow(QX11Info*, const QX11WindowAttributes&)’:
../../include/QtGui/qx11info_x11.h:95: error: ‘QX11InfoData* 
QX11Info::getX11Data(bool) const’ is protected
kernel/qwidget_x11.cpp:2896: error: within this context
../../include/QtGui/qx11info_x11.h:94: error: ‘void 
QX11Info::setX11Data(const QX11InfoData*)’ is protected
kernel/qwidget_x11.cpp:2915: error: within this context
make[1]: *** [.obj/release-shared/qwidget_x11.o] Error 1
make[1]: Leaving directory `/home/younes/devel/qt/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2

I configured with the following command:





More information about the Qt-interest-old mailing list