Partage
  • Partager sur Facebook
  • Partager sur Twitter

Installation de module Qt PDF sous windows 10

avec Qt5.12.3\mingw73_32

Sujet résolu
    25 mai 2019 à 10:36:01

    Bonjour à tous,

    J'ai essayé d'installer le module Qt PDF sous Windows 10 avec le compilateur de Mingw du Framework Qt en suivant ce tuto  https://github.com/qt-labs/qtpdf. Sous linux tous se passe merveilleusement bien alors que sous Windows, après 30 min de compilation, je rencontre le problème ci-dessous

    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:16:5: error: typedef 'FuncType_DWriteCreateFactory' is initialized (use decltype instead)
         __in DWRITE_FACTORY_TYPE,
         ^~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:16:5: error: '__in' was not declared in this scope
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:16:5: note: suggested alternative: '__min'
         __in DWRITE_FACTORY_TYPE,
         ^~~~
         __min
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:17:5: error: '__in' was not declared in this scope
         __in REFIID,
         ^~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:17:5: note: suggested alternative: '__min'
         __in REFIID,
         ^~~~
         __min
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:18:5: error: '__out' was not declared in this scope
         __out IUnknown**);
         ^~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:18:5: note: suggested alternative: '__inout'
         __out IUnknown**);
         ^~~~~
         __inout
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:119:42: error: '__in' has not been declared
                                              __in DWRITE_GLYPH_RUN const* glyphRun,
                                              ^~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:119:64: error: expected ',' or '...' before 'const'
                                              __in DWRITE_GLYPH_RUN const* glyphRun,
                                                                    ^~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp: In member function 'FX_BOOL CDWriteExt::DwRendingString(void*, CFX_ClipRgn*, FX_RECT&, CFX_Matrix*, void*, FX_FLOAT, FX_ARGB, int, short unsigned int*, FX_FLOAT, FX_FLOAT, void*, FX_FLOAT*)':
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:266:76: error: no matching function for call to 'CDwGdiTextRenderer::DrawGlyphRun(FX_RECT&, CFX_ClipRgn*&, DWRITE_MATRIX*, FX_FLOAT&, FX_FLOAT&, DWRITE_MEASURING_MODE, DWRITE_GLYPH_RUN*, COLORREF)'
           RGB(FXARGB_R(text_color), FXARGB_G(text_color), FXARGB_B(text_color)));
                                                                                ^
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:113:29: note: candidate: HRESULT CDwGdiTextRenderer::DrawGlyphRun(const FX_RECT&, CFX_ClipRgn*, const DWRITE_MATRIX*, FLOAT, FLOAT, DWRITE_MEASURING_MODE, int)
       HRESULT STDMETHODCALLTYPE DrawGlyphRun(const FX_RECT& text_bbox,
                                 ^~~~~~~~~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:113:29: note:   candidate expects 7 arguments, 8 provided
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp: At global scope:
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:418:5: error: '__in' has not been declared
         __in DWRITE_GLYPH_RUN const* glyphRun,
         ^~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:418:27: error: expected ',' or '...' before 'const'
         __in DWRITE_GLYPH_RUN const* glyphRun,
                               ^~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp: In member function 'HRESULT CDwGdiTextRenderer::DrawGlyphRun(const FX_RECT&, CFX_ClipRgn*, const DWRITE_MATRIX*, FLOAT, FLOAT, DWRITE_MEASURING_MODE, int)':
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:439:52: error: 'glyphRun' was not declared in this scope
                                         measuringMode, glyphRun, pRenderingParams_,
                                                        ^~~~~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:439:52: note: suggested alternative: 'OleRun'
                                         measuringMode, glyphRun, pRenderingParams_,
                                                        ^~~~~~~~
                                                        OleRun
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:440:37: error: 'textColor' was not declared in this scope
                                         textColor);
                                         ^~~~~~~~~
    ..\3rdparty\pdfium\core\fxge\win32\fx_win32_dwrite.cpp:440:37: note: suggested alternative: 'SetTextColor'
                                         textColor);
                                         ^~~~~~~~~
                                         SetTextColor
    make[3]: *** [.obj/release/fx_win32_dwrite.o] Erreur 1
    make[3]: quittant le répertoire « C:/Qt/Qt5.12.3/5.12.3/mingw73_64/qtpdf/src/lib »
    make[2]: *** [release-all] Erreur 2
    make[2]: quittant le répertoire « C:/Qt/Qt5.12.3/5.12.3/mingw73_64/qtpdf/src/lib »
    make[1]: *** [sub-lib-make_first] Erreur 2
    make[1]: quittant le répertoire « C:/Qt/Qt5.12.3/5.12.3/mingw73_64/qtpdf/src »
    make: *** [sub-src-make_first] Erreur 2
    


    Quelqu'un pourra t-il me dépanner? Merci d'avance pour votre aide !

    -
    Edité par jean2019 25 mai 2019 à 10:37:48

    • Partager sur Facebook
    • Partager sur Twitter

    Installation de module Qt PDF sous windows 10

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown