Open j-silver opened 1 year ago
On Fedora 38, nvim-ui fails to build with the following error:
[1/8] Compiling C++ object src/nvim-ui.p/GSettingsDlg.cpp.o FAILED: src/nvim-ui.p/GSettingsDlg.cpp.o ccache c++ -Isrc/nvim-ui.p -Isrc -I../src -Isubprojects/msgpack-c/CMake_build/include -I../subprojects/msgpack-c/__CMake_build/include -I../subprojects/msgpack-c/include -I/usr/include -Isubprojects/msgpack-c/CMake_build -I../subprojects/msgpack-c/__CMake_build -Isubprojects/msgpack-c -I../subprojects/msgpack-c -I../src/gtkpp/gir2cpp -I../src/gtkpp/cpp-generated -Ires -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -fpch-preprocess -include all-gtk.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++20 -O3 '-DGETTEXT_PACKAGE="nvim-ui"' '-DVERSION="0.1.0"' '-DPREFIX="/usr"' '-DDATA_DIR="share"' -mfpmath=sse -msse -msse2 -pthread -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DGIR_INLINE -MD -MQ src/nvim-ui.p/GSettingsDlg.cpp.o -MF src/nvim-ui.p/GSettingsDlg.cpp.o.d -o src/nvim-ui.p/GSettingsDlg.cpp.o -c ../src/GSettingsDlg.cpp ../src/GSettingsDlg.cpp:8:10: fatal error: Gtk/Dialog.hpp: No such file or directory 8 | #include <Gtk/Dialog.hpp> | ^~~~ compilation terminated.
[more similar messages]
ninja: build stopped: subcommand failed.
I've omitted further error messages complaining about missing <Gtk/FontChooserDialog.hpp> and <Gtk/StyleContext.hpp>.
<Gtk/FontChooserDialog.hpp>
<Gtk/StyleContext.hpp>
I turns out that all these classes are deprecated as of GTK 4.10
On Fedora 38, nvim-ui fails to build with the following error:
[1/8] Compiling C++ object src/nvim-ui.p/GSettingsDlg.cpp.o FAILED: src/nvim-ui.p/GSettingsDlg.cpp.o ccache c++ -Isrc/nvim-ui.p -Isrc -I../src -Isubprojects/msgpack-c/CMake_build/include -I../subprojects/msgpack-c/__CMake_build/include -I../subprojects/msgpack-c/include -I/usr/include -Isubprojects/msgpack-c/CMake_build -I../subprojects/msgpack-c/__CMake_build -Isubprojects/msgpack-c -I../subprojects/msgpack-c -I../src/gtkpp/gir2cpp -I../src/gtkpp/cpp-generated -Ires -I/usr/include/gtk-4.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/libxml2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/graphene-1.0 -I/usr/lib64/graphene-1.0/include -I/usr/include/gio-unix-2.0 -fdiagnostics-color=always -fpch-preprocess -include all-gtk.hpp -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=c++20 -O3 '-DGETTEXT_PACKAGE="nvim-ui"' '-DVERSION="0.1.0"' '-DPREFIX="/usr"' '-DDATA_DIR="share"' -mfpmath=sse -msse -msse2 -pthread -DSPDLOG_SHARED_LIB -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DGIR_INLINE -MD -MQ src/nvim-ui.p/GSettingsDlg.cpp.o -MF src/nvim-ui.p/GSettingsDlg.cpp.o.d -o src/nvim-ui.p/GSettingsDlg.cpp.o -c ../src/GSettingsDlg.cpp ../src/GSettingsDlg.cpp:8:10: fatal error: Gtk/Dialog.hpp: No such file or directory 8 | #include <Gtk/Dialog.hpp> | ^
~~~compilation terminated.[more similar messages]
ninja: build stopped: subcommand failed.
I've omitted further error messages complaining about missing
<Gtk/FontChooserDialog.hpp>
and<Gtk/StyleContext.hpp>
.I turns out that all these classes are deprecated as of GTK 4.10