elgato-gchd icon indicating copy to clipboard operation
elgato-gchd copied to clipboard

Mac OS make fialed

Open scirelli opened this issue 4 years ago • 0 comments

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.

scirelli avatar Mar 18 '20 03:03 scirelli