我试图使用HIDAPI库来帮助构建一些mac的hid驱动程序。在自述文件之后,我被告知进入mac目录并运行make命令。不幸的是,这并没有起到多大作用,我在自述文件中也没有看到任何需要与make一起运行的命令。
我现在对使用TestGUI不感兴趣,所以如果我正确理解了文档,就不需要安装fox工具包并用它运行make命令。
有人知道我是不是缺了一步?

最佳答案

我知道这个问题已经3岁了,但是今天我对包含的自述文件产生了同样的误解。
在mac上构建库的解决方案是(在mac文件夹中,使用终端)运行以下命令:
make-f Makefile手册
这将构建lib,然后您可以通过运行包含的测试程序来测试结果:
/隐藏
结果应类似于:

Device Found
  type: 05ac 025a
  path: IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS05@14400000/Apple Internal Keyboard / Trackpad@14400000/Touchpad@1/AppleUSBMultitouchDriver@14400000,1
  serial_number:
  Manufacturer: Apple Inc.
  Product:      Apple Internal Keyboard / Trackpad
  Release:      224
  Interface:    -1

Device Found
  type: 05ac 030d
  path: IOService:/IOResources/IOBluetoothHCIController/AppleBroadcomBluetoothHostController/IOBluetoothDevice/IOBluetoothL2CAPChannel/BNBMouseDevice
  serial_number: **-**-**-**-**-**
  Manufacturer: Apple
  Release:      306
  Interface:    -1

...

关于c - 在Mac上构建HIDAPI的问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/21587557/

10-11 20:52
查看更多