Package Details: keynav 0.20110708.0-2

Git Clone URL: https://aur.archlinux.org/keynav.git (read-only)
Package Base: keynav
Description: Ingenious and fast way to move the mouse pointer on the screen with keystrokes.
Upstream URL: http://www.semicomplete.com/projects/keynav/
Licenses: BSD
Submitter: cambid
Maintainer: keenerd
Last Packager: keenerd
Votes: 27
Popularity: 0.000013
First Submitted: 2008-05-08 22:13
Last Updated: 2015-06-13 04:25

Latest Comments

drislands commented on 2015-08-18 19:31

I have indeed been able to compile and run, and successfully use, the program. Here is a pastebin of a patch file I created to correct the issue.

http://pastebin.com/fiVZ5wPf

If you pass that through [patch] in [/YOUR/PATH/HERE/keynav/src/keynav-0.20110708.0/], you can ten run [make] to compile [keynav]. You can then copy the finished program to your [/usr/local/bin/] or wherever you like and it should work just fine.

drislands commented on 2015-08-12 18:34

I may have been able to correct the issue -- it seems like the keynav package is using deprecated function names from the xdotool package. For example, xdo_mouselocation is now _xdo_get-mouse_location. I went through keynav.c and xdo.h and compared function names, correcting the ones in keynav.c until it compiled without errors. I have yet to test the software, which I am going to do shortly. I'll report back on functionality.

drislands commented on 2015-08-12 17:47

TL;DR: many xdo functions are warning "implicit declaration" prior to building, then erroring out during the build, claiming inability to find many of the xdo functions' definitions at all. I searched /usr/include/xdo.h myself and found none of the functions keynav is looking for.

makepkg fails presently. Seems to be an issue with xdotool package.

==> Starting build()...
sh version.sh --header > keynav_version.h
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -D_FORTIFY_SOURCE=2 -c -o keynav.o keynav.c
keynav.c: In function 'parse_mods':
keynav.c:293:29: warning: implicit declaration of function 'xdo_symbol_map' [-Wimplicit-function-declaration]
const char **symbol_map = xdo_symbol_map();
^
keynav.c:293:29: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
keynav.c: In function 'addbinding':
keynav.c:368:9: warning: implicit declaration of function 'asprintf' [-Wimplicit-function-declaration]
asprintf(&newrecordingpath, "%s/%s", getenv("HOME"), path + 2);
^
keynav.c: In function 'cmd_start':
keynav.c:860:5: warning: implicit declaration of function 'xdo_window_setclass' [-Wimplicit-function-declaration]
xdo_window_setclass(xdo, zone, "keynav", "keynav");
^
keynav.c: In function 'cmd_cursorzoom':
keynav.c:1023:3: warning: implicit declaration of function 'xdo_mouselocation' [-Wimplicit-function-declaration]
xdo_mouselocation(xdo, &xloc, &yloc, NULL);
^
keynav.c: In function 'cmd_windowzoom':
keynav.c:1038:3: warning: implicit declaration of function 'xdo_window_get_active' [-Wimplicit-function-declaration]
xdo_window_get_active(xdo, &curwin);
^
keynav.c: In function 'cmd_warp':
keynav.c:1067:3: warning: implicit declaration of function 'xdo_mousemove' [-Wimplicit-function-declaration]
xdo_mousemove(xdo, x, y, viewports[wininfo.curviewport].screen_num);
^
keynav.c:1068:3: warning: implicit declaration of function 'xdo_mouse_wait_for_move_to' [-Wimplicit-function-declaration]
xdo_mouse_wait_for_move_to(xdo, x, y);
^
keynav.c: In function 'cmd_click':
keynav.c:1081:5: warning: implicit declaration of function 'xdo_click' [-Wimplicit-function-declaration]
xdo_click(xdo, CURRENTWINDOW, button);
^
keynav.c: In function 'cmd_drag':
keynav.c:1119:5: warning: implicit declaration of function 'xdo_mouseup' [-Wimplicit-function-declaration]
xdo_mouseup(xdo, CURRENTWINDOW, button);
^
keynav.c:1123:5: warning: implicit declaration of function 'xdo_keysequence_down' [-Wimplicit-function-declaration]
xdo_keysequence_down(xdo, 0, drag_modkeys, 12000);
^
keynav.c:1124:5: warning: implicit declaration of function 'xdo_mousedown' [-Wimplicit-function-declaration]
xdo_mousedown(xdo, CURRENTWINDOW, button);
^
keynav.c:1128:5: warning: implicit declaration of function 'xdo_mousemove_relative' [-Wimplicit-function-declaration]
xdo_mousemove_relative(xdo, 1, 0);
^
keynav.c:1131:5: warning: implicit declaration of function 'xdo_keysequence_up' [-Wimplicit-function-declaration]
xdo_keysequence_up(xdo, 0, drag_modkeys, 12000);
^
keynav.c: In function 'handle_gridnav':
keynav.c:1497:3: warning: 'XKeycodeToKeysym' is deprecated [-Wdeprecated-declarations]
KeySym sym = XKeycodeToKeysym(dpy, e->keycode, index);
^
In file included from keynav.c:17:0:
/usr/include/X11/Xlib.h:1687:15: note: declared here
extern KeySym XKeycodeToKeysym(
^
keynav.c: In function 'main':
keynav.c:1905:5: warning: ignoring return value of 'daemon', declared with attribute warn_unused_result [-Wunused-result]
daemon(0, 0);
^
cc keynav.o -o keynav -Wl,-O1,--sort-common,--as-needed,-z,relro -lcairo -lXinerama -lglib-2.0 -lXext -lX11 -lXtst -lglib-2.0 -lxdo; \

keynav.o: In function `cmd_cursorzoom':
keynav.c:(.text+0x243): undefined reference to `xdo_mouselocation'
keynav.o: In function `cmd_windowzoom':
keynav.c:(.text+0x2f2): undefined reference to `xdo_window_get_active'
keynav.o: In function `parse_mods':
keynav.c:(.text+0x87c): undefined reference to `xdo_symbol_map'
keynav.o: In function `cmd_start':
keynav.c:(.text+0x1f38): undefined reference to `xdo_window_setclass'
keynav.o: In function `cmd_warp.part.10':
keynav.c:(.text+0x284f): undefined reference to `xdo_mousemove'
keynav.c:(.text+0x2861): undefined reference to `xdo_mouse_wait_for_move_to'
keynav.o: In function `cmd_drag':
keynav.c:(.text+0x2950): undefined reference to `xdo_keysequence_down'
keynav.c:(.text+0x2964): undefined reference to `xdo_mousedown'
keynav.c:(.text+0x2979): undefined reference to `xdo_mousemove_relative'
keynav.c:(.text+0x298e): undefined reference to `xdo_mousemove_relative'
keynav.c:(.text+0x29b9): undefined reference to `xdo_keysequence_up'
keynav.c:(.text+0x2a26): undefined reference to `xdo_mouseup'
keynav.o: In function `cmd_click.part.0':
keynav.c:(.text+0x686): undefined reference to `xdo_click'
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'keynav' failed
make: *** [keynav] Error 1
==> ERROR: A failure occurred in build().
Aborting...

bb010g commented on 2014-07-02 18:03

makepkg fails because source=('http://semicomplete.googlecode.com/files/${pkgname}-${pkgver}.tar.gz') is single quoted:

==> Making package: keynav 0.20110708.0-2 (Wed Jul 2 11:00:43 PDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading ${pkgname}-${pkgver}.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21124 100 21124 0 0 175k 0 --:--:-- --:--:-- --:--:-- 176k
mv: cannot stat ‘/var/cache/pacman/pkg/keynav31030/keynav/${pkgname}-${pkgver}.tar.gz.part’: No such file or directory
==> Validating source files with md5sums...
${pkgname}-${pkgver}.tar.gz ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!

bb010g commented on 2014-07-02 18:01

makepkg fails:

==> Making package: keynav 0.20110708.0-2 (Wed Jul 2 11:00:43 PDT 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading ${pkgname}-${pkgver}.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 21124 100 21124 0 0 175k 0 --:--:-- --:--:-- --:--:-- 176k
mv: cannot stat ‘/var/cache/pacman/pkg/keynav31030/keynav/${pkgname}-${pkgver}.tar.gz.part’: No such file or directory
==> Validating source files with md5sums...
${pkgname}-${pkgver}.tar.gz ... NOT FOUND
==> ERROR: One or more files did not pass the validity check!

Anonymous comment on 2012-05-24 16:50

It would be helpful if the keynavrc file from the tarball was installed rather than ignored, presumably belonging in /usr/share/doc

pio commented on 2012-02-26 13:38

Failed to compile.

Newest version is:

pkgver=0.20110708.0
source=(http://semicomplete.googlecode.com/files/${pkgname}-${pkgver}.tar.gz)
md5sums=('d1b273d72b15fc9c28270c28f644e7c6')