Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake Error: LibUSB 1.0 required to compile rtl-SDR #2

Open
temmink opened this issue Mar 5, 2024 · 3 comments
Open

cmake Error: LibUSB 1.0 required to compile rtl-SDR #2

temmink opened this issue Mar 5, 2024 · 3 comments
Assignees

Comments

@temmink
Copy link

temmink commented Mar 5, 2024

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?

@temmink
Copy link
Author

temmink commented Mar 6, 2024

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

@temmink
Copy link
Author

temmink commented Mar 6, 2024

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.

@cjcliffe cjcliffe self-assigned this Mar 9, 2024
@cjcliffe
Copy link
Owner

cjcliffe commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants