tolga9009 / elgato-gchd

DISCONTINUED. Reverse engineering the Elgato Game Capture HD to make it work under Linux.
Other
282 stars 36 forks source link

Mac OS make fialed #49

Open scirelli opened 4 years ago

scirelli commented 4 years ago

At first make failed same as this issue. I used the solution in the thread and then the build fails during linking with:

[100%] Linking CXX executable gchd
ld: library not found for -lusb-1.0
clang: error: linker command failed with exit code 1 (use -v to see invocation)

To get around this I had to edit the elgato-gchd/build/src/CMakeFiles/gchd.dir/link.txt file. Adding a path to the usb-1.0 library

-L/usr/local/Cellar/libusb/1.0.23/lib -lusb-1.0

And the symlinking usb-1.0@ -> libusb-1.0.a

cd /usr/local/Cellar/libusb/1.0.23/lib/
ln -s libusb-1.0.a usb-1.0

The build completed after this. I still have to test that it works though.