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

Ubuntu 22.04.5 fails to build: undefined references to various adw_ functions #64

Open
MMachado05 opened this issue Dec 17, 2024 · 4 comments

Comments

@MMachado05
Copy link

Here's the compile error:

[1/1] Linking target showmethekey-gtk/showmethekey-gtk
FAILED: showmethekey-gtk/showmethekey-gtk 
cc  -o showmethekey-gtk/showmethekey-gtk showmethekey-gtk/showmethekey-gtk.p/meson-generated_.._smtk-resources.c.o showmethekey-gtk/showmethekey-gtk.p/meson-generated_.._smtk-enum-types.c.o showmethekey-gtk/showmethekey-gtk.p/main.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-app.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-app-win.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-keys-win.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-keys-area.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-keys-emitter.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-keys-mapper.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-keymap-list.c.o showmethekey-gtk/showmethekey-gtk.p/smtk-event.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,--start-group /usr/lib/x86_64-linux-gnu/libgtk-4.so /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /usr/lib/x86_64-linux-gnu/libpango-1.0.so /usr/lib/x86_64-linux-gnu/libharfbuzz.so /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /usr/lib/x86_64-linux-gnu/libcairo-gobject.so /usr/lib/x86_64-linux-gnu/libcairo.so /usr/lib/x86_64-linux-gnu/libgraphene-1.0.so /usr/lib/x86_64-linux-gnu/libgio-2.0.so /usr/lib/x86_64-linux-gnu/libgobject-2.0.so /usr/lib/x86_64-linux-gnu/libglib-2.0.so /usr/lib/x86_64-linux-gnu/libadwaita-1.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libjson-glib-1.0.so /usr/lib/x86_64-linux-gnu/libxkbcommon.so /usr/lib/x86_64-linux-gnu/libxkbregistry.so -Wl,--end-group
/usr/bin/ld: showmethekey-gtk/showmethekey-gtk.p/smtk-app-win.c.o: in function `smtk_app_win_show_usage_dialog':
/home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:633: undefined reference to `adw_message_dialog_new'
/usr/bin/ld: /home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:683: undefined reference to `ADW_MESSAGE_DIALOG'
/usr/bin/ld: /home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:683: undefined reference to `adw_message_dialog_set_body_use_markup'
/usr/bin/ld: /home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:685: undefined reference to `ADW_MESSAGE_DIALOG'
/usr/bin/ld: /home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:685: undefined reference to `adw_message_dialog_add_response'
/usr/bin/ld: showmethekey-gtk/showmethekey-gtk.p/smtk-app-win.c.o: in function `smtk_app_win_show_about_dialog':
/home/marcialalfonso/Programs/showmethekey/build/../showmethekey-gtk/smtk-app-win.c:729: undefined reference to `adw_show_about_window'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
INFO: autodetecting backend as ninja
INFO: calculating backend command to run: /usr/bin/ninja

It appears to be that the linker is unable to locate the adw_ functions referenced in various files. Originally, it would show me logs with warnings and suggested changes (those changes largely being to switch the adw_ functions with gtk_ functions), and I tried making those changes to see if that'd do anything, but that just gave me a different error. I've made sure that all dependencies are satisfied, and I got all packages straight from my repos; including libadwaita.

@AlynxZhou
Copy link
Owner

Which version are you building? Could you try with latest commit?

@MMachado05
Copy link
Author

@AlynxZhou I'm building with the 1.17.0 commit, the latest one. That's where the error appears.

@AlynxZhou
Copy link
Owner

What's you libadwaita version?

@MMachado05
Copy link
Author

Seems to be 1.1.7, that's what's available in Ubuntu 22.05's repos.

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

2 participants