-
Hello, I'm currently trying to build a universal version of hidapi. I've generated an Xcode project using make, and am now in the process to get that setup. I will post my progress here, but in the meantime if anyone has any pointers on how to achieve that would be great :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Well I found a way to do it with cmake right after posting this, maybe this can be helpful. Add the Following the Cmake building guide: # Executed from the root of the repository
mkdir build
cmake .. -DCMAKE_OSX_ARCHITECTURES=x86_64;arm64
cmake --build .
cmake --build . --target install To make sure the result is a universal lib, run
Edited to add @Youw suggestion. |
Beta Was this translation helpful? Give feedback.
Well I found a way to do it with cmake right after posting this, maybe this can be helpful.
Add the
CMAKE_OSX_ARCHITECTURES=x86_64;arm64
to the cmake command.Following the Cmake building guide:
To make sure the result is a universal lib, run
file /usr/local/lib/libhidapi.dylib
you should seeEdited to add @Youw suggestion.