pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Qt6 needs patch?
On Tue, 27 Jun 2023 at 20:04:49 -0500, Jason Bacon wrote:
>I'll look into this when I get a change, assuming someone else doesn't
>know the solution. Seems NetBSD 9.3 has no C++ <filesystem> header, so
>
>#include <QFileDialog>
>
>generates the following error:
>
>In file included from
>/home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/include
/QtCore/qdir.h:8:0,
> from
>/home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/include
/QtWidgets/qfiledialog.h:8,
> from
>/home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/include
/QtWidgets/QFileDialog:1,
> from QShell.cpp:2:
>/home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/.buildlink/qt6/include
/QtCore/qfile.h:13:10:
>fatal error: filesystem: No such file or directory
> #include <filesystem>
> ^~~~~~~~~~~~
>compilation terminated.
>*** [QShell.o] Error code 1
>
>bmake: stopped in
>/home/bacon/Pkgsrc/pkgsrc/wip/qmediamanager/work/qmediamanager-
dcc06eb2bae989c24f17714948e39ce57f164dde
>1 error
Yes, the GCC in base for NetBSD 9.x doesn't offer some C++17 features
that are now expected by some projects, including <filesystem>. The
workaround/kludge is to force a newer version of GCC to be used from
pkgsrc, e.g., with GCC_REQD+= 8 or newer (not an ideal approach). This
has come up before with other packages, see for example:
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56604
Regards,
Dave
Home |
Main Index |
Thread Index |
Old Index