Details
Description
Steps to reproduce:
- configure Qt with qtdoc, make sure plugins are enabled in qtbase
- checkout qtwebengine 2af8c8c0b35bd37ba8df591d928720d2b894e816
- cd ../build/qtwebengine && rm -rf *
- enable the following features (CLI or Qt Creator):
-DBUILD_qtwebengine:BOOL=ON
-DBUILD_qtwebengine:BOOL=ON
-DFEATURE_qtwebengine_build:BOOL=ON
-DFEATURE_qtwebengine_build:BOOL=ON
-DFEATURE_qtwebengine_core_build:BOOL=ON
-DFEATURE_qtwebengine_core_build:BOOL=ON
-DFEATURE_qtwebengine_quick_build:BOOL=ON
-DFEATURE_qtwebengine_quick_build:BOOL=ON
-DFEATURE_qtwebengine_widgets_build:BOOL=ON
-DFEATURE_qtwebengine_widgets_build:BOOL=ON
-DFEATURE_qtpdf_build:BOOL=ON
-DFEATURE_qtpdf_build:BOOL=ON
-DFEATURE_qtpdf_quick_build:BOOL=ON
-DFEATURE_qtpdf_quick_build:BOOL=ON
-DFEATURE_qtpdf_widgets_build:BOOL=ON
-DFEATURE_qtpdf_widgets_build:BOOL=ON
-DFEATURE_webengine_printing_and_pdf:BOOL=ON
-DFEATURE_webengine_printing_and_pdf:BOOL=ON - ninja documentviewer && ninja pdfviewer
Expected result
pdfviewer builds.
Actual result
CMake Error at /home/axel/QtGit/toplevel/dev/qtwebengine/cmake/Gn.cmake:80 (message): -- GN FAILED ERROR at //pdf/BUILD.gn:235:5: Assertion failed. assert(enable_plugins, "The PDF viewer relies on plugin infrastructure") ^----- The PDF viewer relies on plugin infrastructure See //chrome/BUILD.gn:1474:5: which caused the file to be included. "//pdf", ^------ 1 ninja: build stopped: subcommand failed.
- ll ../build/qtdoc/examples/demos/documentviewer/app
The output...libabstractviewer.so libjsonviewer.so libtxtviewer.so
...proves that plugins are enabled, so txtviewer and jsonviewer were built, while pdfviewer fails.
Attachments
Issue Links
- blocks
-
QTBUG-121780 [DocumentViewer] Application crashes on closing when opening any file after a model file
- Closed
-
QTBUG-121940 [DocumentViewer] The app crashes when clicking print button after opening several various files
- Closed
For Gerrit Dashboard: QTBUG-122137 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
543457,1 | Fix build without PDF | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: NEW | +2 | 0 |
539814,3 | Fix build without PDF | dev | qt/qtbase | Status: MERGED | +2 | 0 |
540419,3 | Fix enable_plugins gn parameter use | dev | qt/qtwebengine | Status: MERGED | +2 | 0 |
541427,2 | Fix enable_plugins gn parameter use | 6.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |
543028,2 | Fix build without PDF | 6.7 | qt/qtbase | Status: MERGED | +2 | 0 |
543234,2 | Fix enable_plugins gn parameter use | 6.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |
543353,2 | Fix build without PDF | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
553596,2 | Fix enable_plugins gn parameter use | 6.5 | qt/qtwebengine | Status: MERGED | +2 | 0 |
554947,2 | Fix enable_plugins gn parameter use | tqtc/lts-6.5 | qt/tqtc-qtwebengine | Status: MERGED | +2 | 0 |