cariboulabs / cariboulite

CaribouLite turns any 40-pin Raspberry-Pi into a Tx/Rx 6GHz SDR
1.1k stars 104 forks source link

cmake in libcariboulite fails if soapysdr modules already present on system #123

Open jadware opened 1 year ago

jadware commented 1 year ago

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.