[libhid-discuss] Cross-compiling libhid for the ARM

Charles Lepple clepple at ghz.cc
Tue Jan 27 01:53:15 UTC 2009


On Jan 26, 2009, at 11:00 AM, Sarah Mount wrote:

> Hi guys,
>
> I'm trying to cross-compile libhid for the Angstrom Open Embedded
> platform using bitbake / ipkg. I'm (still!) using the apt-sources
> version of libhid (libhid-0.2.15+20060325) patched with the changeset
> here: http://boxster.ghz.cc/projects/libhid/changeset/355
>
> I've got some newbie questions about doing this. Firstly, I've had a
> number of autoconf errors when running configure of the form:
>
> "line 2693: 15+20060325-2 - 1) unstable; urgency=low: syntax error in
> expression (error token is ") unstable; urgency=low")"
>
> Line 2693 of the configure file looks like this:
>
> MD_MAJOR_VERSION=`echo "libhid (0.2.15+20060325-2.1) unstable;
> urgency=low.0.0" | cut -d. -f1`

I'd hard-code that to "MD_MAJOR_VERSION=2". That was an ill-fated  
attempt to use the Debian changelog to drive the shared library  
versions, which IMHO is not the way to do things.

> Also, I'm rather confused by where shared libraries are kept. I can't
> find the file _hid.so.0.0.0 anywhere other than
> libhid-0.2.15+20060325/debian/libhid0/usr/lib/ where it is compiled as
> an Intel binary. As far as I can tell running ./configure && make on
> the source does not create a new .so file. Is this correct?

It might be in src/.libs. It really depends on the way your cross- 
compilation environment works. Something may be forcing it to not  
build shared objects.




More information about the libhid-discuss mailing list