SoapyHackRF icon indicating copy to clipboard operation
SoapyHackRF copied to clipboard

SoapyHackRF isn't able to locate my hackrf libraries?

Open francisgalloway opened this issue 6 years ago • 1 comments

When I try to run cmake, I get the following error:

-- Could NOT find LIBHACKRF (missing: LIBHACKRF_LIBRARY LIBHACKRF_INCLUDE_DIR) 
CMake Error at CMakeLists.txt:18 (message):
  HackRF development files not found...


-- Configuring incomplete, errors occurred!

Bit perplexed by this issue, as SoapyOsmo builds fine, and I haven't encountered any issues with my HackRF libraries until now.

I've confirmed that the directory that contains libhackrf.so.0 is in my LD_LIBRARY_PATH environment variable.

Further, since it seems to be finding libSoapySDR.so fine, I went to the directory where it is and created a symlink to my libhackrf.so.0. Still, same error.

Any thoughts on how to resolve this?

francisgalloway avatar Nov 06 '19 06:11 francisgalloway

Are you sure the development libraries are installed? where is libhackrf.so and libhackrf/hackrf.h

Typically libhackrf.so.0 (with the version at the end) is the runtime library that needs to be in the library path, but there is supposed to be a libhackrf.so symlink for development purposes.

guruofquality avatar Nov 06 '19 11:11 guruofquality