You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not test macOS Intel but I am sure there are people who can test it. Same for FreeBSD. Then I am probably not good at testing cython-hidapi and node-hid but again other people can test.
Hopefully someone can test macOS Intel and older macOS versions, old Windows XP/Vista/7 32bit/64bit versions. It will be good too that the users of the language bindings can test as well.
Then it will be helpful if Linux distro maintainers of hidapi can check out this new release as well.
The hope is to have the release in two weeks' time.
My Wish list of some people can help to carry out the test. hidtest, hidapitester or other test application can be used based on the devices the tester has.
But for the release we should be okay even if some of the configurations are not tested.
hidapi 0.12.0-rc1
Windows 7 64 bit (by JoergAtGithub using VS2019+Cmake)
Windows 7 32bit
Windows XP 32bit ??
Linux distro -- Debian
Linux distro -- Fedora
Linux distro -- Arch
Linux RISC-V ??
FreeBSD x86_64 -- FreeBSD clang 11.0.1+CMake, done by Xiaofan
Somehow it failed for the loopback of output report to input report, under Raspberry Pi 400 (Raspberry Pi OS 32bit). But I think hidapi is probably okay and it is rather a problem with the Raspberry Pi OS 32bit. My OS is not up to date so I will try again after updating the OS.
@Youw
The Darwin CMake build failed (for hidtest) under my Mac Mini M1 (Apple clang), either for the native build or the x86_64 build under Rosetta.
Same thing happened if I use "brew install hidapi --HEAD".
github action does not detect this since it does not build hidtest.
mcuee@mcuees-Mac-mini build % make
[ 25%] Building C object src/mac/CMakeFiles/hidapi_darwin.dir/hid.c.o
/Users/mcuee/build/hidapi/hidapi-hidapi-0.12.0-rc1/mac/hid.c:793:39: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'mach_port_t' (aka 'unsigned int') [-Wint-conversion]
return IOServiceGetMatchingService(NULL, IORegistryEntryIDMatching(entry_id));
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:419:14: note: passing argument to parameter 'mainPort' here
mach_port_t mainPort,
^
/Users/mcuee/build/hidapi/hidapi-hidapi-0.12.0-rc1/mac/hid.c:798:34: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'mach_port_t' (aka 'unsigned int') [-Wint-conversion]
return IORegistryEntryFromPath(NULL, path);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:964:15: note: passing argument to parameter 'mainPort' here
mach_port_t mainPort,
^
2 warnings generated.
[ 50%] Linking C shared library libhidapi.dylib
[ 50%] Built target hidapi_darwin
[ 75%] Building C object hidtest/CMakeFiles/hidtest.dir/test.c.o
/Users/mcuee/build/hidapi/hidapi-hidapi-0.12.0-rc1/hidtest/test.c:40:10: fatal error: 'hidapi_darwin.h' file not found
#include <hidapi_darwin.h>
^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [hidtest/CMakeFiles/hidtest.dir/test.c.o] Error 1
make[1]: *** [hidtest/CMakeFiles/hidtest.dir/all] Error 2
make: *** [all] Error 2
Auto-tools build is okay.
mcuee@mcuees-Mac-mini build_auto % make
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in mac
CC hid.lo
../../mac/hid.c:793:39: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'mach_port_t' (aka 'unsigned int') [-Wint-conversion]
return IOServiceGetMatchingService(NULL, IORegistryEntryIDMatching(entry_id));
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:419:14: note: passing argument to parameter 'mainPort' here
mach_port_t mainPort,
^
../../mac/hid.c:798:34: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'mach_port_t' (aka 'unsigned int') [-Wint-conversion]
return IORegistryEntryFromPath(NULL, path);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/13.1.6/include/stddef.h:89:16: note: expanded from macro 'NULL'
# define NULL ((void*)0)
^~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h:964:15: note: passing argument to parameter 'mainPort' here
mach_port_t mainPort,
^
2 warnings generated.
CCLD libhidapi.la
Making all in hidtest
CC test.o
CCLD hidtest
make[2]: Nothing to be done for `all-am'.
/Users/mcuee/build/hidapi/hidapi-hidapi-0.12.0-rc1/hidtest/test.c:40:10: fatal error: 'hidapi_darwin.h' file not found
#include <hidapi_darwin.h>
^~~~~~~~~~~~~~~~~
I remember I've been fixing it. Maybe the fix got lost in a merge conflict or smth.
Thanks for finding it. I'll update the CI script to test this as well.
#409 is good and it has fixed the warnings and hidtest build issues under macOS. It has been merged.
As far as I am concerned it is good to go. But let's probably wait a few days more to see if anything popping up.
Activity
mcuee commentedon May 3, 2022
I should be able to test under the following system. I will use CMake on most of the systems. Then I will also test the VS solution using VS2019.
For hiapttester, I will try similar testing as mentioned in #285.
macOS 12 ARM64 (mac Mini M1)
macOS 12 x86_64 using Rosetta Translation, not native (mac Mini M1)
Linux x86_64 (Ubuntu 20.04)
Linux ARM32 (Raspberry Pi 400 running Raspberry Pi OS Bullseye 32 bit)
Linux ARM64 (Raspberry Pi 400 running Raspberry Pi OS Bullseye 64 bit)
Windows VS2019 solution 64 bit (Windows 11 x64 laptop)
Windows VS2019 solution 32 bit (Windows 11 x64 laptop)
Windows VS2019 CMake 64 bit (Windows 11 x64 laptop)
Windows VS2022 CMake 64 bit (Windows 11 x64 laptop)
Windows MinGW 64 bit (Windows 11 x64 laptop)
Windows MinGW 32 bit (Windows 11 x64 laptop)
FreeBSD 13.0 Release x86_64 (VirtualBox VM under Windows 11 x64 laptop)
mcuee commentedon May 3, 2022
I can not test macOS Intel but I am sure there are people who can test it. Same for FreeBSD. Then I am probably not good at testing cython-hidapi and node-hid but again other people can test.
Hopefully someone can test macOS Intel and older macOS versions, old Windows XP/Vista/7 32bit/64bit versions. It will be good too that the users of the language bindings can test as well.
Then it will be helpful if Linux distro maintainers of hidapi can check out this new release as well.
The hope is to have the release in two weeks' time.
My Wish list of some people can help to carry out the test. hidtest, hidapitester or other test application can be used based on the devices the tester has.
But for the release we should be okay even if some of the configurations are not tested.
hidapi 0.12.0-rc1
Language binding: cython-hidapi
Language binding: node-hid
macports seem to provide a good one for macOS support.
Ref: https://ports.macports.org/port/hidapi/details/
From here for HIDAPI Version: 0.11.2
https://ports.macports.org/port/hidapi/details/
mcuee commentedon May 3, 2022
BTW, github actions have already tested the build of hidapi 0.12.0-rc1 under the following platform
https://github.com/libusb/hidapi/actions/runs/2263027445
Take note there are warnings under macOS github action build.
mcuee commentedon May 3, 2022
hidapitest log under Ubuntu 20.04 (x86_64).
Under Windows 11 and MSYS2 MinGW 32/64bit
Under Mac Mini M1.
Somehow it failed for the loopback of output report to input report, under Raspberry Pi 400 (Raspberry Pi OS 32bit). But I think hidapi is probably okay and it is rather a problem with the Raspberry Pi OS 32bit. My OS is not up to date so I will try again after updating the OS.
No problem under Raspberry Pi OS 64 bit.
mcuee commentedon May 3, 2022
@todbot If possible, please help to carry out some tests using node-hid and hidapitester as you seem to have many working device FW to test hidapi.
mcuee commentedon May 3, 2022
@Youw
The Darwin CMake build failed (for hidtest) under my Mac Mini M1 (Apple clang), either for the native build or the x86_64 build under Rosetta.
Same thing happened if I use "brew install hidapi --HEAD".
github action does not detect this since it does not build hidtest.
Auto-tools build is okay.
Youw commentedon May 3, 2022
Interesting, when I checked locally,
mach_port_twas defined as a pointer to some forward declarated type.Youw commentedon May 3, 2022
I remember I've been fixing it. Maybe the fix got lost in a merge conflict or smth.
Thanks for finding it. I'll update the CI script to test this as well.
JoergAtGithub commentedon May 3, 2022
I compiled it on Windows 7 VisualStudio 2019 CMake. All I tried, works as before!
Youw commentedon May 4, 2022
#409 with the fix
mcuee commentedon May 6, 2022
#409 is good and it has fixed the warnings and hidtest build issues under macOS. It has been merged.
As far as I am concerned it is good to go. But let's probably wait a few days more to see if anything popping up.
mcuee commentedon Aug 1, 2022
hidapi 0.12.0 has been released on 25 May 2022. So this can be closed.