June 2, 2011

manuelsch manuelsch
Lab Rat
37 posts

[Ubuntu 11.04] Building 4.8 TechPreview fails [solved]

 

I downloaded the Qt 4.8 Tech Preview and configured it (only using

  1. --prefix=/home/myhome/lib/
flag) and ran
  1. make

But the compilation fails:
  1. g++ -c -include .pch/release-shared/QtGui -pipe -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 -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -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../../mkspecs/linux-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I../3rdparty/libpng -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I/usr/X11R6/include -I.uic/release-shared -o .obj/release-shared/qrawfont_ft.o text/qrawfont_ft.cpp
  2. text/qrawfont_ft.cpp:63:1: error: expected class-name before '{' token
  3. text/qrawfont_ft.cpp: In constructor 'QFontEngineFTRawFont::QFontEngineFTRawFont(const QFontDef&)':
  4. text/qrawfont_ft.cpp:67:11: error: class 'QFontEngineFTRawFont' does not have any field named 'QFontEngineX11FT'
  5. text/qrawfont_ft.cpp: In member function 'void QFontEngineFTRawFont::updateFamilyNameAndStyle()':
  6. text/qrawfont_ft.cpp:76:9: error: 'fontDef' was not declared in this scope
  7. text/qrawfont_ft.cpp:76:45: error: 'freetype' was not declared in this scope
  8. text/qrawfont_ft.cpp: In member function 'bool QFontEngineFTRawFont::initFromData(const QByteArray&)':
  9. text/qrawfont_ft.cpp:87:9: error: 'FaceId' was not declared in this scope
  10. text/qrawfont_ft.cpp:87:16: error: expected ';' before 'faceId'
  11. text/qrawfont_ft.cpp:88:9: error: 'faceId' was not declared in this scope
  12. text/qrawfont_ft.cpp:91:35: error: 'Format_None' was not declared in this scope
  13. text/qrawfont_ft.cpp:91:56: error: 'init' was not declared in this scope
  14. text/qrawfont_ft.cpp: In member function 'void QRawFontPrivate::platformLoadFromData(const QByteArray&, int, QFont::HintingPreference)':
  15. text/qrawfont_ft.cpp:119:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
  16. text/qrawfont_ft.cpp:122:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
  17. text/qrawfont_ft.cpp:125:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
  18. text/qrawfont_ft.cpp:132:18: error: cannot convert 'QFontEngineFTRawFont*' to 'QFontEngine*' in assignment
  19. text/qrawfont_ft.cpp: In member function 'bool QFontEngineFTRawFont::initFromData(const QByteArray&)':
  20. text/qrawfont_ft.cpp:92:5: warning: control reaches end of non-void function
  21. make[1]: *** [.obj/release-shared/qrawfont_ft.o] Error 1
  22. make[1]: Leaving directory `/tmp/qt-everywhere-opensource-src-4.8.0-tp/src/gui'
  23. make: *** [sub-gui-make_default-ordered] Error 2

The error seems to be here:

  1. QT_BEGIN_NAMESPACE
  2.  
  3. class QFontEngineFTRawFont
  4.  
  5. #if defined(Q_WS_X11)
  6.         : public QFontEngineX11FT
  7. #else
  8.         : public QFontEngineFT
  9. #endif
  10.  
  11. { // <<<--- line 63
  12. public:
  13.     QFontEngineFTRawFont(const QFontDef &fontDef)
  14. #if defined(Q_WS_X11)
  15.         : QFontEngineX11FT(fontDef)
  16. #else
  17.         : QFontEngineFT(fontDef)
  18. #endif
  19.     {
  20.     }

Does anybody know what the problem is? (QFontEngineFTRawFont seems to be a appropriate class-name to me)

(my GCC version is

  1. gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
)

4 replies

June 4, 2011

manuelsch manuelsch
Lab Rat
37 posts

Opened a bug report [bugreports.qt.nokia.com]

June 4, 2011

mariusg mariusg
Ant Farmer
1099 posts

Thanks manuelsch :)

 Signature 

Project Manager - Qt Development Frameworks

June 4, 2011

Denis Kormalev Denis Kormalev
Lab Rat
1654 posts

Commented at bug report and will dublicate here.

Had similar issue. Solved it with installing fontconfig library dev package and rerunning configure again (so it found my fontconfig lib)

At deb-based system it is libfontconfig1-dev package

June 5, 2011

manuelsch manuelsch
Lab Rat
37 posts

Ok, thanks.
I installed this package and it compiled.

Bug report is closed now.

 
  ‹‹ qconfig for win32      Opening an .exe file in Qt !!! ››

You must log in to post a reply. Not a member yet? Register here!