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

undefined reference to `xkb_utf32_to_keysym' #43

Open
allegfede opened this issue Oct 7, 2022 · 1 comment
Open

undefined reference to `xkb_utf32_to_keysym' #43

allegfede opened this issue Oct 7, 2022 · 1 comment

Comments

@allegfede
Copy link

trying building on ubuntu linux 20.04
git cloned main repo
i enter the folder then:

  1. medon build ok (i had to install libxkbcommon-dev)
  2. ninja -C build failed

ninja: Entering directory build' [6/7] Compiling C object 'wtype@exe/main.c.o'. ../main.c: In function ‘get_key_code_by_wchar’: ../main.c:178:21: warning: implicit declaration of function ‘xkb_utf32_to_keysym’ [-Wimplicit-function-declaration] 178 | xkb_keysym_t xkb = xkb_utf32_to_keysym(ch); | ^~~~~~~~~~~~~~~~~~~ [7/7] Linking target wtype. FAILED: wtype cc -o wtype 'wtype@exe/main.c.o' -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -Wl,--start-group protocol/libclient_protos.a /usr/lib/x86_64-linux-gnu/libwayland-client.so /usr/lib/x86_64-linux-gnu/libwayland-cursor.so -lrt /usr/lib/x86_64-linux-gnu/libxkbcommon.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/protocol' -Wl,-rpath-link,/home/v1p3r/src/wtype/build/protocol /usr/bin/ld: wtype@exe/main.c.o: in function get_key_code_by_wchar':
main.c:(.text+0x6fd): undefined reference to xkb_utf32_to_keysym' /usr/bin/ld: wtype@exe/main.c.o: in function main':
main.c:(.text.startup+0x265): undefined reference to `xkb_utf32_to_keysym'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

@larslue
Copy link

larslue commented Jan 15, 2023

I suppose your dependencies are too old, and don't define the xkb_utf32_to_keysym function.

For Ubuntu 20.04, I checked out this commit, which made the program compile successfully: 6280f6e

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