Skip to content

SoapyHackRF installs but is not found by probe #42

@hambone01

Description

@hambone01

I installed hackrf with brew:

brew install hackrf

─gormanst@d-vyjyrp9t06 /opt 
╰─$ brew install hackrf
==> Downloading https://ghcr.io/v2/homebrew/core/hackrf/manifests/2022.09.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/hackrf/blobs/sha256:b3b9c286eba911da05c8df47bb447616925070acaa8b3d44ed2337a814ca2220
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b3b9c286eba911da05c8df47bb447616925070acaa8b3d44ed2
######################################################################## 100.0%
==> Pouring hackrf--2022.09.1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/hackrf/2022.09.1: 18 files, 712.5KB
==> Running `brew cleanup hackrf`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

I then installed SoapyHackRF

─$ cd SoapyHackRF 
╭─gormanst@d-vyjyrp9t06 ~/temp/SoapyHackRF ‹master› 
╰─$ mkdir build
╭─gormanst@d-vyjyrp9t06 ~/temp/SoapyHackRF ‹master› 
╰─$ cd build 
╭─gormanst@d-vyjyrp9t06 ~/temp/SoapyHackRF/build ‹master› 
╰─$ cmake ..
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The CXX compiler identification is AppleClang 14.0.0.14000029
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Build type not specified: defaulting to release.
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2") 
-- Found LIBHACKRF: /opt/homebrew/Cellar/hackrf/2022.09.1/lib/libhackrf.dylib  
-- LIBHACKRF_INCLUDE_DIRS - /opt/homebrew/Cellar/hackrf/2022.09.1/include/libhackrf
-- LIBHACKRF_LIBRARIES - /opt/homebrew/Cellar/hackrf/2022.09.1/lib/libhackrf.dylib
-- Checking for hackrf_device_list API...
--   Reading /opt/homebrew/Cellar/hackrf/2022.09.1/include/libhackrf/hackrf.h...
-- Found Git: /usr/local/bin/git (found version "2.33.0") 
-- Module HackRFSupport configured with version: 0.3.4-6c0c33f
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/gormanst/temp/SoapyHackRF/build

omitting warnings:

╰─$ sudo make install
Password:
Consolidate compiler generated dependencies of target HackRFSupport
[100%] Built target HackRFSupport
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/lib/SoapySDR/modules0.8/libHackRFSupport.so

However, after installation SoapySDRUtil check/probe can't locate the driver.

╭─gormanst@d-vyjyrp9t06 ~/temp/SoapyHackRF/build ‹master●› 
╰─$ SoapySDRUtil --check=hackrf                            
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Loading modules... done
Checking driver 'hackrf'... MISSING!
╭─gormanst@d-vyjyrp9t06 ~/temp/SoapyHackRF/build ‹master●› 
╰─$ SoapySDRUtil --probe="driver=hackrf"                                                                   1 ↵
######################################################
##     Soapy SDR -- the SDR abstraction library     ##
######################################################

Probe device driver=hackrf
Error probing device: SoapySDR::Device::make() no match

I have seen some mentions of setting my LD_LIBRARY_PATH

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions