THIS REPOSITORY IS OBSOLETE
Use hid-tools instead.
Home Page: http://bentiss.github.io/hid-replay-docs/
License: GNU General Public License v2.0
THIS REPOSITORY IS OBSOLETE
Use hid-tools instead.
Please, provide a tag for the latest versions. Buildroot fails to download repository if I put master
there.
Would you like to add more error handling for return values from functions like the following?
The functions "exit" and "fclose" do not belong to the list of async-signal-safe functions.
I guess that a different program design will be needed for your function "signal_callback_handler".
./autogen.sh
./autogen.sh: line 9: autoreconf: command not found
Hey @bentiss, I've seen that you've recently posted a working driver for the SP3 device. I'm about to receive an SP4 and was wondering if you had any inputs/feedback regarding developing a driver for it (disclaimer, I'm a total noob in linux driver dev), but seeing that the code is relatively small (300loc), I'm wondering:
Thanks a lot!
./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal
autoreconf: configure.ac: tracing
autoreconf: configure.ac: creating directory config-aux
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:13: installing 'config-aux/compile'
configure.ac:12: installing 'config-aux/install-sh'
configure.ac:12: installing 'config-aux/missing'
Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am:9: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/Makefile.am: installing 'config-aux/depcomp'
autoreconf: Leaving directory `.'
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking linux/uhid.h usability... yes
checking linux/uhid.h presence... yes
checking for linux/uhid.h... yes
checking for xmlto... no
checking for asciidoc... no
configure: WARNING: xmlto or asciidoc not found - cannot create man pages without it
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master#
root@MICKA:project/hid/hid-replay-master# make
make all-recursive
make[1]: Entering directory 'project/hid/hid-replay-master'
Making all in src
make[2]: Entering directory 'project/hid/hid-replay-master/src'
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/ -g -O2 -MT hid-recorder.o -MD -MP -MF .deps/hid-recorder.Tpo -c -o hid-recorder.o hid-recorder.c
mv -f .deps/hid-recorder.Tpo .deps/hid-recorder.Po
gcc -g -O2 -o hid-recorder hid-recorder.o
gcc -DHAVE_CONFIG_H -I. -I.. -I../include/ -g -O2 -MT hid-replay.o -MD -MP -MF .deps/hid-replay.Tpo -c -o hid-replay.o hid-replay.c
hid-replay.c: In function 'hid_replay_incoming_event':
hid-replay.c:147:7: error: 'UHID_GET_REPORT' undeclared (first use in this function)
case UHID_GET_REPORT:
^
hid-replay.c:147:7: note: each undeclared identifier is reported only once for each function it appears in
hid-replay.c:148:18: error: 'UHID_GET_REPORT_REPLY' undeclared (first use in this function)
w_event.type = UHID_GET_REPORT_REPLY;
^
hid-replay.c:149:12: error: 'union <anonymous>' has no member named 'get_report_reply'
w_event.u.get_report_reply.id = r_event->u.get_report.id;
^
hid-replay.c:149:45: error: 'union <anonymous>' has no member named 'get_report'
w_event.u.get_report_reply.id = r_event->u.get_report.id;
^
hid-replay.c:150:12: error: 'union <anonymous>' has no member named 'get_report_reply'
w_event.u.get_report_reply.err = -EIO;
^
hid-replay.c:151:12: error: 'union <anonymous>' has no member named 'get_report_reply'
w_event.u.get_report_reply.size = 0;
^
hid-replay.c:154:7: error: 'UHID_SET_REPORT' undeclared (first use in this function)
case UHID_SET_REPORT:
^
hid-replay.c:155:18: error: 'UHID_SET_REPORT_REPLY' undeclared (first use in this function)
w_event.type = UHID_SET_REPORT_REPLY;
^
hid-replay.c:156:12: error: 'union <anonymous>' has no member named 'set_report_reply'
w_event.u.set_report_reply.id = r_event->u.get_report.id;
^
hid-replay.c:156:45: error: 'union <anonymous>' has no member named 'get_report'
w_event.u.set_report_reply.id = r_event->u.get_report.id;
^
hid-replay.c:157:12: error: 'union <anonymous>' has no member named 'set_report_reply'
w_event.u.set_report_reply.err = -EIO;
^
hid-replay.c:165:7: error: '__UHID_LEGACY_OUTPUT_EV' undeclared (first use in this function)
case __UHID_LEGACY_OUTPUT_EV:
^
hid-replay.c:166:7: error: '__UHID_LEGACY_INPUT' undeclared (first use in this function)
case __UHID_LEGACY_INPUT:
^
Makefile:387: recipe for target 'hid-replay.o' failed
make[2]: *** [hid-replay.o] Error 1
make[2]: Leaving directory 'project/hid/hid-replay-master/src'
Makefile:349: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory 'project/hid/hid-replay-master'
Makefile:289: recipe for target 'all' failed
make: *** [all] Error 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.