[PD] compiling hidio for Windows

Fede Camara Halac camarafede at gmail.com
Wed Feb 5 00:46:41 CET 2020


As I said before, I could make a binary with Christof's steps, but I dont know how to debug an external on windows. If you can give me some basic guidelines I can continue with that. 

In the meantime, we got joyosc working on Windows so that's looking good!

Best,

f


fdch.github.io

> On Feb 4, 2020, at 6:06 PM, Christof Ressi <info at christofressi.com> wrote:
> 
> ´╗┐You just have to replace it with #include <hidsdi.h>. I also compiled it with Msys2.
> 
> Christof
> 
>> On 04.02.2020 23:13, Martin Peach wrote:
>>> On Sun, Feb 2, 2020 at 1:46 PM ffdd cchh <camarafede at gmail.com> wrote:
>>> Ok, I did Christof's step c) and copied those dummy functions (and basically commented out anything but a debug_post() inside "hidio_devices()" and "hidio_elements()", and indeed got a binary. But, it's no use.
>>> 
>>> I try to get some data on why it crashes but it just says 'segmentation fault':
>>> 
>>> ```
>>> camarahalac.1 at ACD-NC054624 MINGW64 ~/Desktop
>>> $ /c/Users/camarahalac.1/Downloads/pd-0.50-2/bin/pd.exe -d 4 -stderr -open /c/Users/camarahalac.1/Downloads/pd-0.50-2/extra/hidio/hidio-help.pd
>>> Segmentation fault
>>> ```
>>> 
>> I tried this using Msys64 but get
>> hidio_windows.c:37:10: fatal error: ddk/hidsdi.h: No such file or directory
>>    37 | #include <ddk/hidsdi.h>
>> I can't find any package for mingw64 that has this file. There is a
>> hidapi, which uses hidapi.h..
>> https://github.com/libusb/hidapi
>> It uses functions like
>> hid_get_manufacturer_string
>> instead of
>> HidD_GetManufacturerString
>> so it could probably be used fir the windows build.
>> 
>> 
>> Martin
>> 
>> 
>> 
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list





More information about the Pd-list mailing list