Thread (1 message) 1 message, 1 author, 2014-02-24

Re: is it possible to temporarily not let user mode get hid input event

From: David Herrmann <hidden>
Date: 2014-02-24 12:37:46

Hi

On Mon, Feb 24, 2014 at 1:34 PM, loody [off-list ref] wrote:
quoted
Yes. For instance, you can run ./samples/uhid/uhid-example.c via ssh
to emulate a mouse. ssh keyboard input can then be used to generate
mouse-movement events.
There is one embarrassing question :-)
Would you please let me know how to cross-compile it ?
I try below commands but failed
#cd samples/uhid/
#make CROSS_COMPILE=arm-v7a8v4r2-linux-gnueabi-
make: *** No targets.  Stop.

Thanks for your kind help,
Don't use the Makefile. Use gcc directly:
  gcc -o uhid-example -Wall samples/uhid/uhid-example.c

It's just one source file, you should be able to compile it on the
device. No idea how your cross-compiler works, so cannot help you
there.

Thanks
David
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help