cariboulite icon indicating copy to clipboard operation
cariboulite copied to clipboard

cmake in libcariboulite fails if soapysdr modules already present on system

Open jadware opened this issue 1 year ago • 0 comments

Pi Zero 2 W, Raspbian Lite 32bit 5/03/2023

On line 40 of the install script if test -f "${SOAPY_UTIL_PATH}"; then will test if soapy is on the system and, if so, skip doing a download and build. However, the following block inside software/libcariboulite/CMakeLists.txt will fail if it doesn't find Soapy*.cmake on the local system:

# create the Soapy shared object
find_package(SoapySDR CONFIG)
if (NOT SoapySDR_FOUND)
    message(WARNING "SoapySDR development files not found - skipping support")
    return()
endif ()

Basically, if you have soapy installed or present somehow, the overall installation will "succeed" but not actually have built the necessary files to load SoapySDR.

I ultimately figured this out by using cmake -D CMAKE_FIND_DEBUG_MODE=ON .. to see that cmake was looking for Soapy cmake not Soapy library.

jadware avatar Jun 10 '23 01:06 jadware