Build 6.8.1 from source. FAILED: src/gui/.qt/rcc/qrc_qpdf.cpp
-
I try to build Qt 6.8.1 from source on Windows 10 and I follow this page
No matter which version Qt I choose (6.3.0 or 6.5.2) I run into this problem:C:\Qt\681\built>..\configure ... C:\Qt\681\built>cmake --build . --parallel [759/1882] Running rcc for resource qpdf FAILED: src/gui/.qt/rcc/qrc_qpdf.cpp C:/Qt/681/built/src/gui/.qt/rcc/qrc_qpdf.cpp C:\Windows\system32\cmd.exe /C "cd /D C:\Qt\681\built\src\gui && C:\Qt\681\built\bin\rcc.exe --output C:/Qt/681/built/src/gui/.qt/rcc/qrc_qpdf.cpp --name qpdf C:/Qt/681/built/src/gui/.qt/rcc/qpdf.qrc --no-zstd" ninja: build stopped: subcommand failed.
I need qtgui and I can't simply -skip that, -skip qpdf didn't work also. I can't find any mention about this kind of problem. What's wrong with this qpdf?
Thank you! -
Hi,
How did you get sources ?
Which compiler are you using ?
What exact procedure did you apply ?
The gui module is not skippable. It's part of qtbase.
That qtpdf cannot be skipped is surprising on the other hand. -
I downloaded it from github in a release section as zip file. I'm using MSVC2019.
I tried that:vcvarsall.bat x86_amd64 mkdir built cd built ..\configure cmake --build . --parallel
I tried -skip qpdf option, but it told me something like "Command line option -skip is only effective in top-level builds". Even if I skip qpdf, I don't think the problem is related to this. I ran it again and got this:
c:\Qt\681\built>cmake --build . [694/1882] Running rcc for resource qpdf FAILED: src/gui/.qt/rcc/qrc_qpdf.cpp C:/Qt/681/built/src/gui/.qt/rcc/qrc_qpdf.cpp C:\Windows\system32\cmd.exe /C "cd /D C:\Qt\681\built\src\gui && C:\Qt\681\built\bin\rcc.exe --output C:/Qt/681/built/src/gui/.qt/rcc/qrc_qpdf.cpp --name qpdf C:/Qt/681/built/src/gui/.qt/rcc/qpdf.qrc --no-zstd" FAILED: src/gui/.qt/rcc/qrc_gui_shaders.cpp C:/Qt/681/built/src/gui/.qt/rcc/qrc_gui_shaders.cpp C:\Windows\system32\cmd.exe /C "cd /D C:\Qt\681\built\src\gui && C:\Qt\681\built\bin\rcc.exe --output C:/Qt/681/built/src/gui/.qt/rcc/qrc_gui_shaders.cpp --name gui_shaders C:/Qt/681/built/src/gui/.qt/rcc/gui_shaders.qrc --no-zstd" ninja: build stopped: subcommand failed.
-
What exactly did you download ? "Some zip file somewhere on GitHub" does not telle what you got.
Based on the error message you don't have the full sources. If you want them you better download them from the official archives.