Airblader / xedgewarp

Effortlessly move your cursor across monitors of different resolutions and alignments
MIT License
39 stars 5 forks source link

Documentation Lacking #38

Closed mrmuskrat closed 7 years ago

mrmuskrat commented 7 years ago

Can you please document which packages are required to build xedgewarp?

Do we need development files for libX11, X11 Protocol headers or what?

$ make
rm -f xedgewarp obj/xedgewarp.o obj/pointer.o obj/extensions.o obj/randr.o obj/event.o obj/util.o obj/fake_outputs.o
rm -f man/*.1 man/*.xml
rm -f test/GLOB*
gcc -D'__VERSION="heads/master-0-g04ca182"' -Iinclude -std=gnu99 -Wall -Wundef -Wshadow -o obj/xedgewarp.o -c src/xedgewarp.c
In file included from include/all.h:4:0,
                 from src/xedgewarp.c:2:
include/externals.h:13:36: fatal error: X11/extensions/XInput2.h: No such file or directory
 #include <X11/extensions/XInput2.h>
                                    ^
compilation terminated.
Makefile:33: recipe for target 'obj/xedgewarp.o' failed
make: *** [obj/xedgewarp.o] Error 1
mrmuskrat commented 7 years ago

I'm on Fedora 25 and I had to install the following packages: libXi-devel, xcb-util-devel and asciidoc.

acrisci commented 7 years ago

For every header,

dnf whatprovides '*/X11/extensions/XInput2.h'
apt-file find 'X11/extensions/XInput2.h'
nmschulte commented 7 years ago

On Debian [Sid]: # aptitude install libx11-xcb-dev

mrmuskrat commented 7 years ago

The build requires a2x which is why I had to install the Fedora asciidoc package.