Re: [DIGImend-devel] tinkering with HUION tablet and the hidrd-convert tool to generate a HID repor
Brought to you by:
spb_nick
|
From: Vince H. <Vi...@Pl...> - 2014-12-14 18:52:31
|
[vince@desk2 Huion]$ ldd `which hidrd-convert`
linux-gate.so.1 => (0xb779f000)
libhidrd_util.so.0 => /usr/local/lib/libhidrd_util.so.0 (0xb7795000)
libhidrd_opt.so.0 => /usr/local/lib/libhidrd_opt.so.0 (0xb778f000)
libhidrd_strm.so.0 => /usr/local/lib/libhidrd_strm.so.0 (0xb778b000)
libhidrd_fmt.so.0 => /usr/local/lib/libhidrd_fmt.so.0 (0xb777b000)
libxml2.so.2 => /lib/libxml2.so.2 (0xb75f7000)
libz.so.1 => /lib/libz.so.1 (0x460fc000)
libm.so.6 => /lib/libm.so.6 (0x460b3000)
libdl.so.2 => /lib/libdl.so.2 (0x4608f000)
libhidrd_item.so.0 => /usr/local/lib/libhidrd_item.so.0 (0xb75ef000)
libhidrd_usage.so.0 => /usr/local/lib/libhidrd_usage.so.0 (0xb75df000)
libc.so.6 => /lib/libc.so.6 (0x45ecf000)
liblzma.so.5 => /lib/liblzma.so.5 (0x46134000)
/lib/ld-linux.so.2 (0x45eac000)
libpthread.so.0 => /lib/libpthread.so.0 (0x46096000)
[vince@desk2 Huion]$
On Sun, Dec 14, 2014 at 12:16 PM, Nikolai Kondrashov <sp...@gm...> wrote:
> On 12/14/2014 07:13 PM, Vince Herried wrote:
>>
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> xml
>> Unknown output format "xml".
>
>
> Alright, could you please show the output of "ldd `which hidrd-convert`"?
>
> Nick
>
> On 12/14/2014 07:13 PM, Vince Herried wrote:
>>
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> xml
>> Unknown output format "xml".
>>
>> Formats supported by hidrd-convert:
>>
>> natv [IO] - native format
>>
>> .
>> .
>> .
>> where
>> this works
>> [vince@desk2 Huion]$ cat HID-descriptor2.native | hidrd-convert -i hex -o
>> code
>>
>>
>> ---
>> Vince
>>
>>
>> On Sun, Dec 14, 2014 at 11:07 AM, Nikolai Kondrashov <sp...@gm...
>> <mailto:sp...@gm...>> wrote:
>>
>> Hi Vince,
>>
>> Please keep the maillist in CC so others can benefit from our
>> discussion.
>> Thank you.
>>
>> On 12/13/2014 10:55 PM, Vince Herried wrote:
>>
>> Hmmm that wasn't it. it was already installed.
>> I don't see any thing missing in the config.log
>> $ cat config.log
>>
>>
>> Please just attach files to messages directly (this time it might make
>> sense
>> to compress it). This way they will be preserved in the archive and it
>> will be
>> easier to access them. Unless you want to keep them secret, of course.
>> Thank
>> you.
>>
>> Yes, config.log looks OK.
>>
>> What was the exact hidrd-convert invocation that failed for you and
>> what was
>> the output?
>>
>> Nick
>>
>> On 12/13/2014 10:55 PM, Vince Herried wrote:
>>
>> Hmmm that wasn't it. it was already installed.
>> I don't see any thing missing in the config.log
>> $ cat config.log
>>
>>
>> config.log
>> <https://docs.google.com/file/__d/0BwgN___uWIl5AdVENmX3dvZllOV00/edit?__usp=drive_web
>> <https://docs.google.com/file/d/0BwgN_uWIl5AdVENmX3dvZllOV00/edit?usp=drive_web>>
>>
>>
>> On Sat, Dec 13, 2014 at 3:02 PM, Nikolai Kondrashov
>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm...
>> <mailto:sp...@gm...>>> wrote:
>>
>> On 12/13/2014 08:27 PM, Vince Herried wrote:
>>
>> I'm on Fedora F20
>>
>>
>> Then you need libxml2-devel package installed when
>> configuring and building
>> hidrd.
>>
>> Nick
>>
>>
>> On Sat, Dec 13, 2014 at 1:23 PM, Nikolai Kondrashov
>> <sp...@gm... <mailto:sp...@gm...> <mailto:sp...@gm...
>> <mailto:sp...@gm...>>> wrote:
>>
>> On 12/13/2014 08:15 PM, Vince Herried wrote:
>>
>>
>> the info file gives example of converting the hex
>> input into xml
>> I get invalid output format.
>> the output from your dump program is:
>> $ cat HID-descriptor2.native
>> 05 0D 09 02 A1 01 85 07 09 20 A1 00 09 42 09
>> 44
>> 09 45 09 3C 09 43 09 44 15 00 25 01 75 01 95
>> 06
>> 81 02 09 32 75 01 95 01 81 02 81 03 05 01 09
>> 30
>> 75 10 95 01 A4 55 0D 65 13 35 00 46 10 27 27
>> 40
>> 9C 00 00 81 02 09 31 46 6A 18 26 A8 61 81 02
>> B4
>> 05 0D 09 30 26 FF 07 46 FF 07 55 00 66 11 E1
>> 75
>> 10 81 02 C0 C0 05 01 09 02 A1 01 85 09 09 01
>> A1
>> 00 05 09 19 01 29 03 15 00 25 01 95 03 75 01
>> 81
>> 02 95 05 81 01 05 01 09 30 75 10 95 01 A4 35
>> 00
>> 46 00 08 26 00 08 81 02 09 31 46 00 08 26 00
>> 08
>> 81 02 B4 05 0D 09 30 26 FF 07 46 FF 07 75 10
>> 81
>> B2 C0 C0
>>
>> $ cat HID-descriptor2.native | hidrd-convert -i
>> hex -o spec
>> produces
>>
>> but attempt to use -o xml generates error
>>
>> appears the built in help says no xml output
>> available while the
>> info output example shows using -o xml
>>
>> Did I built it wrong?
>>
>>
>>
>> Yes, most likely libxml development package wasn't
>> installed. Check
>> "./configure" output. Also, if you use a Debian-based
>> distro, hidrd should
>> be
>> in the package repositories (although without "hex"
>> format support).
>>
>> Nick
>>
>>
>>
>
|