New how-to on BeagleBoard hidapi USB host application

BeagleBoarders,

I've posted a how-to on cross-compiling a hidapi (USB generic HID) host application for the BeagleBoard:

www.lvr.com/hidapi.htm

Comments, critiques, suggestions, etc. welcome.

Jan

Dear Jan,

thank you for the information.

I've posted a how-to on cross-compiling a hidapi (USB generic HID)
host application for the BeagleBoard:

www.lvr.com/hidapi.htm

Comments, critiques, suggestions, etc. welcome.

Looking at the HIDAPI files there is a `Makefile` [1]. So you should try
to use that, should not you?

Looking at `Makefile` I noticed some things and attaching patches for it
and I am putting Alan the upstream author into CC.

Please apply these patches to the Git repository using `git am 0001*`
and so on.

These patches are neither build nor run tested. It would be great if you
could do that.

Additionally it would be great if you could try to create a BitBake
recipe for inclusion into OpenEmbedded [2]. Then cross compilation would
be even simpler. Although a install rule and a pkg-config pc file would
need to be created I think.

Thanks,

Paul

[1] https://github.com/signal11/hidapi/blob/master/linux/Makefile
[2] http://www.openembedded.org/

0001-linux-.gitignore-Add-.-which-are-temporary-files-fro.patch (635 Bytes)

0002-linux-Makefile-Use-CXX-instead-of-g.patch (677 Bytes)

0003-linux-Makefile-Do-not-override-predefined-CC-or-CXX.patch (681 Bytes)

0004-linux-Makefile-Add-LDFLAGS-to-the-linker-calls.patch (816 Bytes)

0005-linux-Makefile-Add-support-for-cross-compilation.patch (1.69 KB)

0006-linux-Makefile-Add-spaces-and-lines-for-better-reada.patch (1.07 KB)

Looking at `Makefile` I noticed some things and attaching patches for it
and I am putting Alan the upstream author into CC.

Please apply these patches to the Git repository using `git am 0001*`
and so on.

These patches are neither build nor run tested. It would be great if you
could do that.

Thanks!

I applied and pushed all except 0001. On every system I've used, the *~
backup files have never showed in a git diff or git status. What are you
doing that makes having *~ necessary in .gitignore?

Additionally it would be great if you could try to create a BitBake
recipe for inclusion into OpenEmbedded [2]. Then cross compilation would
be even simpler. Although a install rule and a pkg-config pc file would
need to be created I think.

Right now there's not really an install. HIDAPI is so small that it is
designed to just be dropped into your application. There is a patch
which will build it into a shared library, and maybe that is the best
solution long term. It doesn't seem to match the simplicity of just
dropping it in though.

Alan.