rvaiya / warpd

A modal keyboard-driven virtual pointer
MIT License
2.85k stars 126 forks source link

"undefined reference to `wayland_init`" while running `make` on Fedora #272

Closed esfox closed 8 months ago

esfox commented 8 months ago

After installing all the dependencies (I believe) and setting the DISABLE_WAYLAND variable, when running make, I receive the following error:

mkdir bin
mkdir: cannot create directory ‘bin’: File exists
make: [mk/linux.mk:30: all] Error 1 (ignored)
cc  -o bin/warpd src/platform/linux/linux.o src/config.o src/daemon.o src/grid.o src/grid_drw.o src/hint.o src/histfile.o src/history.o src/input.o src/mode-loop.o src/mouse.o src/normal.o src/screen.o src/scroll.o src/warpd.o src/platform/linux/X/hint.o src/platform/linux/X/input.o src/platform/linux/X/mouse.o src/platform/linux/X/screen.o src/platform/linux/X/X.o -g -Wall -Wextra -pedantic -Wno-deprecated-declarations -Wno-unused-parameter -std=c99 -DVERSION='"v1.3.5 (built from: 01650ea)"' -D_DEFAULT_SOURCE -D_FORTIFY_SOURCE=2   -I/usr/include/freetype2/ -lXfixes -lXext -lXinerama -lXi -lXtst -lX11 -lXft -DWARPD_X=1
/usr/bin/ld: src/platform/linux/linux.o: in function `platform_run':
/home/ckftm/software/warpd/src/platform/linux/linux.c:29: undefined reference to `wayland_init'
collect2: error: ld returned 1 exit status
make: *** [mk/linux.mk:31: all] Error 1

What could be the issue? Have I missed a dependency?

I'm a heavy, heavy user of warpd in my desktop so I would like to be able to use it in my laptop as well so any help would be greatly appreciated.

esfox commented 8 months ago

Hm. I re-cloned the repo, and did make again and it seemed to be fine now. Sorry!