Open temmink opened 4 months ago
after installing through macports the libusb-devel package I got a little bit further. Now I'm getting a fatal error:
CubicSDR-macOSBuild/build_stage/rtlsdr/src/librtlsdr.c:30:10: fatal error: 'libusb.h' file not found
This worked for me:
Download the source from github.com: https://github.com/libusb/libusb/releases/tag/v1.0.26
Build it in the standard way:
$ tar xvfj libusb-1.0.26.tar.bz2 $ cd libusb-1.0.26 $ ./configure $ make $ make check $ sudo make install
and then recompile the cubicSDR-macOSBuild source again.
Then it will fail on libsdrplay not found.
The libusb support should have been installed in the first build step from the Readme:
execute scripts/bootstrap_macos.sh to install system prerequsites
Which also requires Homebrew to be installed; I don't recommend MacPorts but it's good you could make it work.
I've also removed SDRPlay as part of the default 'all_modules' and moved it into 'nodep_modules' since the dependencies for it will not be built by default -- SDRPlay development files must be downloaded from SDRPlay's site separately to build support for it.
If you pull and build again it should hopefully work.
I just downloaded the script. and executed the bootstrap on my Mac mini M1 Then I ran the make (installation) script.
It failed at:
CMake Error at CMakeLists.txt:88 (message): LibUSB 1.0 required to compile rtl-sdr
But Libusb is installed, through "brew install libusb" . I tried to reinstall and relink the libusb, but cmake still complains that it cannot find the libusb.
any idea how I could solve this issue?