How to fix the "#include <filesystem>" error on 15.x / SLES15 SPX?
Hi all, next thing regarding tail-tray: It fails to build on 15.x (Leap and SLES15).
[ 53s] [ 18%] Building CXX object CMakeFiles/tail-tray.dir/tail-tray_autogen/mocs_compilation.cpp.o [ 56s] [ 25%] Building CXX object CMakeFiles/tail-tray.dir/src/main.cpp.o [ 58s] [ 31%] Building CXX object CMakeFiles/tail-tray.dir/src/MainWindow.cpp.o [ 58s] In file included from /usr/include/qt6/QtCore/qdir.h:8:0, [ 58s] from /usr/include/qt6/QtCore/QDir:1, [ 58s] from /home/abuild/rpmbuild/BUILD/tail-tray-0.2.2/src/MainWindow.cpp:1: [ 58s] /usr/include/qt6/QtCore/qfile.h:13:10: fatal error: filesystem: No such file or directory [ 58s] #include <filesystem> [ 58s] ^~~~~~~~~~~~ [ 58s] compilation terminated.
The few things I found on the net hinted at the gcc compiler. Richard and Alexandre also mentioned it in the SR (https://build.opensuse.org/request/show/1219105). But adding a BuildRequire for gcc14 and gcc14-c++ makes it unresolvable for Leap and still fails to build for SLES15 SPX. As this (also?) uses clang, do I need to specify a newer version of clang to get this going?
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_net...
Kind Regards, Johannes
On 30.10.24 12:16 Johannes Kastl wrote:
But adding a BuildRequire for gcc14 and gcc14-c++ makes it unresolvable for Leap and still fails to build for SLES15 SPX.
Solved, Richard had a look at the package and properly changed the compiler. Note to myself: Installing a newer compiler on 15.x does **not** change the default compiler automatically... :-) Kind Regards, Johannes
participants (1)
-
Johannes Kastl