HID4Java should be built using an older SDK, such as 10.9.
MacOS x86_64
MacOS aarch64
Configuring the environment must be done in two steps:
- Specifying the full path to the SDK
# e.g.
export SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.9.sdk
- Specifying the target OS
# e.g.
export MACOSX_DEPLOYMENT_TARGET=10.9
- To confirm, you can check the outputted file using
otool -l
# e.g.
otool -l src/main/resources/darwin-x86-64/libhidapi.dylib
# or (filter relevant portion for 10.9 or 11.0 binaries)
otool -l src/main/resources/darwin-x86-64/libhidapi.dylib |grep -E 'LC_VERSION_MIN_MACOSX|LC_BUILD_VERSION' -A4
HID4Java should be built using an older SDK, such as 10.9.
MacOS x86_64
MacOS aarch64
Configuring the environment must be done in two steps:
otool -l