Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with GTK 4.10.4 due to deprecated classes Dialog, FontChooserDialog, StyleContext #55

Open
j-silver opened this issue Aug 6, 2023 · 0 comments

Comments

@j-silver
Copy link

j-silver commented Aug 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant