Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-9006

OpenVG support does not compile with ShivaVG

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • (Inactive) OpenVG
    • None
    • Debian Etch on x86.
      ShivaVG 0.2.1
    • df77be2a58a36c756592465616beaaeed06d134b

    Description

      I installed ShivaVG 0.2.1 and configured Qt with -openvg. The configure reported

      OpenVG support ......... ShivaVG

      Compilation of Qt failed with these errors:

      qpaintengine_vg.cpp: In member function 'bool QVGPaintEngine::drawCachedGlyphs(int, const glyph_t*, const QFont&, QFontEngine*, const QPointF&)':
      qpaintengine_vg.cpp:3318: error: 'QVGFontCache' has not been declared
      qpaintengine_vg.cpp:3318: error: expected `;' before 'it'
      qpaintengine_vg.cpp:3319: error: 'QVGFontGlyphCache' was not declared in this scope
      qpaintengine_vg.cpp:3319: error: 'glyphCache' was not declared in this scope
      qpaintengine_vg.cpp:3320: error: 'it' was not declared in this scope
      qpaintengine_vg.cpp:3320: error: 'class QVGPaintEnginePrivate' has no member named 'fontCache'
      qpaintengine_vg.cpp:3323: error: expected type-specifier before 'QVGFontGlyphCache'
      qpaintengine_vg.cpp:3323: error: expected `;' before 'QVGFontGlyphCache'
      qpaintengine_vg.cpp:3326: error: type '<type error>' argument given to 'delete', expected pointer
      qpaintengine_vg.cpp:3330: error: 'class QVGPaintEnginePrivate' has no member named 'fontCache'
      qpaintengine_vg.cpp:3331: error: 'class QVGPaintEnginePrivate' has no member named 'fontEngineCleaner'
      qpaintengine_vg.cpp:3332: error: 'class QVGPaintEnginePrivate' has no member named 'fontEngineCleaner'
      qpaintengine_vg.cpp:3334: error: 'class QVGPaintEnginePrivate' has no member named 'fontEngineCleaner'
      qpaintengine_vg.cpp:3343: error: 'VG_MATRIX_GLYPH_USER_TO_SURFACE' was not declared in this scope
      qpaintengine_vg.cpp:3352: error: 'VG_GLYPH_ORIGIN' was not declared in this scope
      qpaintengine_vg.cpp:3366: error: 'vgDrawGlyphs' was not declared in this scope

      It seems that the type QVGFontCache is only conditionally defined if the expression"#if !defined(QVG_NO_DRAW_GLYPHS)" is true. Everywhere in the code where QVGFontCache is used,
      there is code conditional on QVG_NO_DRAW_GLYPHS except for the code where the errors occur. The code needs to handle the case where QVG_NO_DRAW_GLYPHS is defined.

      Qt 4.6.2 successfully built with ShivaVG support.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rweather Rhys Weatherley (closed Nokia identity) (Inactive)
              tranter Jeff Tranter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes