Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
4.8.x
-
None
-
Gentoo x86_64
-
5d1b4c79d2e3a58df0822c0eab64b1619b649b50
Description
I'm on 4.8 branch, commit f66f2d2a202b32a703e2719e7eb91ee4d681220c, but the same thing happens on the master branch.
I'm doing an out of source build, so I have
-- repos -- qt -- qt-build
From the qt-build directory, my configure command was:
../qt/configure --prefix=/home/luke/usr -shared -opensource -qt-sql-psql -reduce-relocations -fontconfig -gtkstyle -confirm-license
which gives this in the output:
... FontConfig support ..... yes ...
When I then run make, after a bunch of compilation output, this error occurs:
gmake[1]: Entering directory `/home/luke/repos/qt-build/src/gui' /home/luke/repos/qt-build/bin/uic /home/luke/repos/qt/src/gui/dialogs/qprintsettingsoutput.ui -o .uic/release-shared/ui_qprintsettingsoutput.h /home/luke/repos/qt-build/bin/uic /home/luke/repos/qt/src/gui/dialogs/qprintwidget.ui -o .uic/release-shared/ui_qprintwidget.h /home/luke/repos/qt-build/bin/uic /home/luke/repos/qt/src/gui/dialogs/qprintpropertieswidget.ui -o .uic/release-shared/ui_qprintpropertieswidget.h /home/luke/repos/qt-build/bin/uic /home/luke/repos/qt/src/gui/dialogs/qfiledialog.ui -o .uic/release-shared/ui_qfiledialog.h /home/luke/repos/qt-build/bin/uic /home/luke/repos/qt/src/gui/dialogs/qpagesetupwidget.ui -o .uic/release-shared/ui_qpagesetupwidget.h g++ -m64 -pipe -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/luke/repos/qt/mkspecs/linux-g++-64 -I/home/luke/repos/qt/src/gui -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I/home/luke/repos/qt/src/3rdparty/xorg -I/home/luke/repos/qt/src/gui/image -I/home/luke/repos/qt/src/3rdparty/libpng -I/usr/include/freetype2 -I/home/luke/repos/qt/src/3rdparty/harfbuzz/src -I/home/luke/repos/qt/src/gui/dialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -I. -x c++-header -c /home/luke/repos/qt/src/gui/kernel/qt_gui_pch.h -o .pch/release-shared/QtGui.gch/c++ g++ -c -Winline -mmmx -m64 -pipe -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -DQT_SHARED -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng15 -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -I/usr/include/freetype2 -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/luke/repos/qt/mkspecs/linux-g++-64 -I/home/luke/repos/qt/src/gui -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I/home/luke/repos/qt/src/3rdparty/xorg -I/home/luke/repos/qt/src/gui/image -I/home/luke/repos/qt/src/3rdparty/libpng -I/usr/include/freetype2 -I/home/luke/repos/qt/src/3rdparty/harfbuzz/src -I/home/luke/repos/qt/src/gui/dialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -I. /home/luke/repos/qt/src/gui/painting/qdrawhelper_mmx.cpp -o .obj/release-shared/qdrawhelper_mmx.o In file included from ../../include/QtGui/private/qfont_p.h:1:0, from ../../include/QtGui/private/../../../../qt/src/gui/text/qfontengineglyphcache_p.h:60, from ../../include/QtGui/private/qfontengineglyphcache_p.h:1, from ../../include/QtGui/private/../../../../qt/src/gui/painting/qtextureglyphcache_p.h:61, from ../../include/QtGui/private/qtextureglyphcache_p.h:1, from ../../include/QtGui/private/../../../../qt/src/gui/painting/qpaintengine_raster_p.h:64, from ../../include/QtGui/private/qpaintengine_raster_p.h:1, from ../../include/QtGui/private/../../../../qt/src/gui/painting/qdrawhelper_mmx_p.h:58, from ../../include/QtGui/private/qdrawhelper_mmx_p.h:1, from /home/luke/repos/qt/src/gui/painting/qdrawhelper_mmx.cpp:46: ../../include/QtGui/private/../../../../qt/src/gui/text/qfont_p.h: In constructor 'QFontDef::QFontDef()': ../../include/QtGui/private/../../../../qt/src/gui/text/qfont_p.h:75:48: error: 'PreferDefaultHinting' is not a member of 'QFont' gmake[1]: *** [.obj/release-shared/qdrawhelper_mmx.o] Error 1 gmake[1]: Leaving directory `/home/luke/repos/qt-build/src/gui' gmake: *** [sub-gui-make_default-ordered] Error 2
I'm not sure if this has anything to do with fontconfig, but I have: fontconfig/fontconfig.h, libfontconfig, freetype.h and libfreetype in the following locations:
/usr/include/fontconfig/fontconfig.h /usr/include/freetype2/freetype/freetype.h /usr/lib/libfontconfig.a /usr/lib/libfontconfig.la /usr/lib/libfontconfig.so -> libfontconfig.so.1.4.4* /usr/lib/libfontconfig.so.1 -> libfontconfig.so.1.4.4* /usr/lib/libfontconfig.so.1.4.4* /usr/lib/libfreetype.so -> libfreetype.so.6.8.0 /usr/lib/libfreetype.so.6 -> libfreetype.so.6.8.0 /usr/lib/libfreetype.so.6.8.0
qfont.h exists in my system qt installation in 2 places:
/usr/include/qt4/Qt/qfont.h
/usr/include/qt4/QtGui/qfon.h
Neither of these have the HintingPreference enum.
So it seems like my system include is taking precedence over the qt source include directories... how do I fix this?