darthcloud / BlueRetro

Multiplayer Bluetooth controllers adapter for retro video game consoles
https://blueretro.io
Apache License 2.0
1.3k stars 109 forks source link

Fix sixpair build guide for macOS #1048

Open Nickellick opened 2 months ago

Nickellick commented 2 months ago

BlueRetro firmware version

v24.04_hw1

BlueRetro firmware specification

HW1

BlueRetro firmware variant

Universal

BlueRetro hardware type

External adapter dongle (1 port only)

Manufacturer

Unknown

System used

Sony PlayStation 2

Bluetooth controller brand & name

DualShock 3

What is problem? (only list ONE problem per report)

In DS3 macOS pair guide, after executing brew install wget libusub libusb-compat and downloading sixpair.c file, it fails to build. The error message is

fatal error: 'usb.h' file not found

To resolve this, you have to just link library and header

gcc -o sixpair sixpair.c -I/opt/homebrew/Cellar/libusb-compat/0.1.8/include -L/opt/homebrew/Cellar/libusb-compat/0.1.8/lib -lusb

replace 0.1.8 with installed libusb-compat version, if needed

What did you expect to happen?

Sixpair app built successfully

Attach files like logs or Bluetooth traces here

No response