libusb/hidapi

Meson build system cannot be used for cross builds

amyspark opened this issue · 4 comments

Hi,

This is to report that CMake-based subprojects, like the one hidapi's Meson build system uses, do not work for cross builds: mesonbuild/meson#12761

We found this issue when attempting to cross compile https://github.com/blackmagic-debug/blackmagic from arm64 AppleClang to arm64-none-eabi-gcc (see towards the end).

Neither, Meson currently just doesn't pass the correct variables in the toolchain file (it passes the build machine's and not the host's). The only way we know to fix it is turn the meson.build into a complete port.

So we're back to the question "who is going to support it?".
Multiple supported build systems is not something any sain maintainer would sign up just for convenience.
The community is free to have its own implementation of Meson build system for HIDAPI.
Similar way to how https://github.com/trezor/cython-hidapi exists.

Closing as a limitation of Meson's CMake-module.html.