Installing RTL-SDR: Cmake error - LibUSB 1.0 required to compile rtl-sdr
by GapingSnail from LinuxQuestions.org on (#52T09)
Hi there,
I am new to this forum and linux so please be gentle! I am running Kali 2020.1 in VMWare.
I am trying to install the RTL-SDR drivers. So far I have:
- Installed git, cmake, libusb1.0-0dev build-essential and libc6-dev
- Run git clone git://git.osmocom.org/rtl-sdr.giv
- Created a build folder in /rtl-sdr
- Tried to run cmake ../ -DINTALL_UDEV_RULES=ON but I get an error "CMake Error at CMakeLists.txt:77 (message):LibUSB 1.0 required to compile rtl-sdr" I do have libusb installed so am unsure what is happening.
Having a look at CMakeLists.txt it looks like cmake can't find libusb:
Code:########################################################################
# Find build dependencies
########################################################################
if(WIN32 AND NOT MINGW)
set(THREADS_USE_PTHREADS_WIN32 true)
endif()
find_package(Threads)
find_package(PkgConfig)
pkg_check_modules(LIBUSB libusb-1.0 IMPORTED_TARGET)
if(NOT LIBUSB_FOUND)
message(FATAL_ERROR "LibUSB 1.0 required to compile rtl-sdr")
endif()
if(NOT THREADS_FOUND)
message(FATAL_ERROR "pthreads(-win32) required to compile rtl-sdr")
endif()Does anyone have any idea what is happening and how I might be able to fix it?


I am new to this forum and linux so please be gentle! I am running Kali 2020.1 in VMWare.
I am trying to install the RTL-SDR drivers. So far I have:
- Installed git, cmake, libusb1.0-0dev build-essential and libc6-dev
- Run git clone git://git.osmocom.org/rtl-sdr.giv
- Created a build folder in /rtl-sdr
- Tried to run cmake ../ -DINTALL_UDEV_RULES=ON but I get an error "CMake Error at CMakeLists.txt:77 (message):LibUSB 1.0 required to compile rtl-sdr" I do have libusb installed so am unsure what is happening.
Having a look at CMakeLists.txt it looks like cmake can't find libusb:
Code:########################################################################
# Find build dependencies
########################################################################
if(WIN32 AND NOT MINGW)
set(THREADS_USE_PTHREADS_WIN32 true)
endif()
find_package(Threads)
find_package(PkgConfig)
pkg_check_modules(LIBUSB libusb-1.0 IMPORTED_TARGET)
if(NOT LIBUSB_FOUND)
message(FATAL_ERROR "LibUSB 1.0 required to compile rtl-sdr")
endif()
if(NOT THREADS_FOUND)
message(FATAL_ERROR "pthreads(-win32) required to compile rtl-sdr")
endif()Does anyone have any idea what is happening and how I might be able to fix it?