Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Ubuntu 11.04] Building 4.8 TechPreview fails [solved]

[Ubuntu 11.04] Building 4.8 TechPreview fails [solved]

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    manuelsch
    wrote on last edited by
    #1

    I downloaded the Qt 4.8 Tech Preview and configured it (only using @--prefix=/home/myhome/lib/@ flag) and ran @make@
    But the compilation fails:
    @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
    text/qrawfont_ft.cpp:63:1: error: expected class-name before '{' token
    text/qrawfont_ft.cpp: In constructor 'QFontEngineFTRawFont::QFontEngineFTRawFont(const QFontDef&)':
    text/qrawfont_ft.cpp:67:11: error: class 'QFontEngineFTRawFont' does not have any field named 'QFontEngineX11FT'
    text/qrawfont_ft.cpp: In member function 'void QFontEngineFTRawFont::updateFamilyNameAndStyle()':
    text/qrawfont_ft.cpp:76:9: error: 'fontDef' was not declared in this scope
    text/qrawfont_ft.cpp:76:45: error: 'freetype' was not declared in this scope
    text/qrawfont_ft.cpp: In member function 'bool QFontEngineFTRawFont::initFromData(const QByteArray&)':
    text/qrawfont_ft.cpp:87:9: error: 'FaceId' was not declared in this scope
    text/qrawfont_ft.cpp:87:16: error: expected ';' before 'faceId'
    text/qrawfont_ft.cpp:88:9: error: 'faceId' was not declared in this scope
    text/qrawfont_ft.cpp:91:35: error: 'Format_None' was not declared in this scope
    text/qrawfont_ft.cpp:91:56: error: 'init' was not declared in this scope
    text/qrawfont_ft.cpp: In member function 'void QRawFontPrivate::platformLoadFromData(const QByteArray&, int, QFont::HintingPreference)':
    text/qrawfont_ft.cpp:119:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
    text/qrawfont_ft.cpp:122:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
    text/qrawfont_ft.cpp:125:13: error: 'class QFontEngineFTRawFont' has no member named 'setDefaultHintStyle'
    text/qrawfont_ft.cpp:132:18: error: cannot convert 'QFontEngineFTRawFont*' to 'QFontEngine*' in assignment
    text/qrawfont_ft.cpp: In member function 'bool QFontEngineFTRawFont::initFromData(const QByteArray&)':
    text/qrawfont_ft.cpp:92:5: warning: control reaches end of non-void function
    make[1]: *** [.obj/release-shared/qrawfont_ft.o] Error 1
    make[1]: Leaving directory `/tmp/qt-everywhere-opensource-src-4.8.0-tp/src/gui'
    make: *** [sub-gui-make_default-ordered] Error 2
    @

    The error seems to be here:
    @QT_BEGIN_NAMESPACE

    class QFontEngineFTRawFont

    #if defined(Q_WS_X11)
    : public QFontEngineX11FT
    #else
    : public QFontEngineFT
    #endif

    { // <<<--- line 63
    public:
    QFontEngineFTRawFont(const QFontDef &fontDef)
    #if defined(Q_WS_X11)
    : QFontEngineX11FT(fontDef)
    #else
    : QFontEngineFT(fontDef)
    #endif
    {
    }
    @

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

    (my GCC version is @gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2@)

    1 Reply Last reply
    0
    • M Offline
      M Offline
      manuelsch
      wrote on last edited by
      #2

      Opened a "bug report":http://bugreports.qt.nokia.com/browse/QTBUG-19716

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mgran
        wrote on last edited by
        #3

        Thanks manuelsch :)

        Project Manager - Qt Development Frameworks

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Commented at bug report and will dublicate here.

          bq. 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

          1 Reply Last reply
          0
          • M Offline
            M Offline
            manuelsch
            wrote on last edited by
            #5

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

            Bug report is closed now.

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved