pothosware / SoapyAirspyHF

SoapySDR plugin to support the Airspy HF+
https://github.com/pothosware/SoapyAirspyHF/wiki
MIT License
24 stars 17 forks source link

Brew install broken #27

Open RichNeese opened 12 months ago

RichNeese commented 12 months ago

brew install libusb installed libusb but airspyhf is not locating it

on masoc on m1-m3 lubusb-1.0 is in /opt/homebrew/lib/libusb-1.0 libusb.h is in /opt/homebrew/include

Last 15 lines from /Users/richardneese/Library/Logs/Homebrew/airspyhf/02.make:

include

     ^~~~~~~~~~

/tmp/airspyhf-20231126-67586-3yqr1q/airspyhf-1.0/libairspyhf/src/airspyhf.c:34:10: fatal error: 'libusb.h' file not found

include

     ^~~~~~~~~~

1 error generated. 1 error generated. make[2]: [libairspyhf/src/CMakeFiles/airspyhf-static.dir/airspyhf.c.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [libairspyhf/src/CMakeFiles/airspyhf.dir/airspyhf.c.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [libairspyhf/src/CMakeFiles/airspyhf.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [libairspyhf/src/CMakeFiles/airspyhf-static.dir/all] Error 2 make: [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/pothosware/homebrew-pothos/issues

These open issues may also help: SoapySDR airspyhf not match with GNU Radio under MacOS Ventura https://github.com/pothosware/homebrew-pothos/issues/61 richardneese@Richards-Mini pihpsdr %

bobbyl140 commented 8 months ago

brew install libusb installed libusb but airspyhf is not locating it

on masoc on m1-m3 lubusb-1.0 is in /opt/homebrew/lib/libusb-1.0 libusb.h is in /opt/homebrew/include

Last 15 lines from /Users/richardneese/Library/Logs/Homebrew/airspyhf/02.make: #include ^~~~ /tmp/airspyhf-20231126-67586-3yqr1q/airspyhf-1.0/libairspyhf/src/airspyhf.c:34:10: fatal error: 'libusb.h' file not found #include ^~~~ 1 error generated. 1 error generated. make[2]: [libairspyhf/src/CMakeFiles/airspyhf-static.dir/airspyhf.c.o] Error 1 make[2]: Waiting for unfinished jobs.... make[2]: [libairspyhf/src/CMakeFiles/airspyhf.dir/airspyhf.c.o] Error 1 make[2]: Waiting for unfinished jobs.... make[1]: [libairspyhf/src/CMakeFiles/airspyhf.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make[1]: [libairspyhf/src/CMakeFiles/airspyhf-static.dir/all] Error 2 make: [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/pothosware/homebrew-pothos/issues

These open issues may also help: SoapySDR airspyhf not match with GNU Radio under MacOS Ventura pothosware/homebrew-pothos#61 richardneese@Richards-Mini pihpsdr %

@RichNeese Just had the same problem, solvable by editing the formula: brew edit pothosware/pothos/airspyhf, set that path (/opt/homebrew) and then install (brew install pothosware/pothos/airspyhf). Hope this helps!