pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: cannot build lang/qt6-qtdeclarative after latest update



On Monday, April 29th, 2024 at 11:21 AM, Adam <adam%netbsd.org@localhost> wrote:

> > [ 62%] Linking CXX shared library ../../lib/libQt6QuickTest.so
> > cd /usr/pkgsrc/lang/qt6-qtdeclarative/work/qtdeclarative-everywhere-src-6.7.0/src/qmltest && /usr/pkg/bin/cmake -E cmake_link_script CMakeFiles/QuickTest.dir/link.txt --verbose=1
> > /usr/pkgsrc/lang/qt6-qtdeclarative/work/qtdeclarative-everywhere-src-6.7.0/tools/svgtoqml/main.cpp:9:10: fatal error: private/qsvgtinydocument_p.h: No such file or directory
> > 9 | #include <private/qsvgtinydocument_p.h>
> > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > compilation terminated.
> > gmake[2]: *** [tools/svgtoqml/CMakeFiles/svgtoqml.dir/build.make:96: tools/svgtoqml/CMakeFiles/svgtoqml.dir/main.cpp.o] Error 1
> > gmake[2]: Leaving directory '/usr/pkgsrc/lang/qt6-qtdeclarative/work/qtdeclarative-everywhere-src-6.7.0'
> > gmake[1]: *** [CMakeFiles/Makefile2:31546: tools/svgtoqml/CMakeFiles/svgtoqml.dir/all] Error 2
> > gmake[1]: *** Waiting for unfinished jobs....
> > 
> > So, it seems it now needs 'qsvgtinydocument_p' header.
> > This is included in 'graphics/qt6-qtsvg', which I have installed but, it's not found.
> > 
> > I've added an 'include ... qt6-qtsvg/buildlink3.mk' line to 'qt6-qtdeclarative' Makefile and restarted the build. Let's see if this helps.

Adding the 'include' fixes the build. Obviously, PLIST needed some fixing but, it's now installed and qttools is building.

> I can replicate the problem: qt6-qtdeclarative fails to build when qt6-qtsvg is also installed. If you uninstall qt6-qtsvg, the build succeeds.
> 
> qt6-qtdeclarative mentions qtsvg as an optional dependency in dependencies.yaml (required: false).
> 
> Now we need a work-around for this. :/

Personally, I need qtsvg, so the solution is simple. But, I don't know what others think.
Weird that this only happened now. I always build Qt stuff in the same order, i.e. qtbase -> qtsvg -> qttools and never had an issue before.

Thanks!


Home | Main Index | Thread Index | Old Index