Rasbian Buster with GNU Radio Workflow Failing on "make"

General discussions
Post Reply
jrodh
Posts: 16
Joined: Sun Jun 05, 2016 8:18 pm

Rasbian Buster with GNU Radio Workflow Failing on "make"

Post by jrodh » Sat Jul 06, 2019 3:45 am

Hi,

I am trying to install GNU Radio on a raspberry pi 3B+ running the new version of Raspbian "Buster".

Everything worked by following the workflow until I reached the "make" command.

I am getting the following error:
No rule to make target '/usr/local/lib/libmirsdrapi-rsp.so', needed by 'lib/libgnuradio-sdrplay-1.0.0git.so.0.0.0'

I've been reading that it may have something to do with the wrong compiler version being used during the make operation. Any suggestions on the remedy?

The results of the "cmake" and "make" commands are listed below.

Code: Select all

pi@raspberrypi:~/Dev/gr-sdrplay/build $ cmake .. -DCMAKE_INSTALL_PREFIX=~/gr-osmosdr -DENABLE_PYTHON=true -DENABLE_NONFREE=true -DENABLE_SOAPY=false -DENABLE_AIRSPY=false -DENABLE_RTL=false -DENABLE_RTL_TCP=false -DENABLE_HACKRF=false -DENABLE_BLADERF=false -DENABLE_REDPITAYA=false -DENABLE_RFSPACE=false -DENABLE_FCD=false -DENABLE_FCDPP=false -DENABLE_MIRI=false -DENABLE_FREESRP=false

-- Build type not specified: defaulting to release.
CMake Deprecation Warning at CMakeLists.txt:55 (cmake_policy):
  The OLD behavior for policy CMP0026 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:58 (cmake_policy):
  The OLD behavior for policy CMP0043 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:61 (cmake_policy):
  The OLD behavior for policy CMP0045 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


CMake Deprecation Warning at CMakeLists.txt:64 (cmake_policy):
  The OLD behavior for policy CMP0046 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.


-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   filesystem
--   system
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
Checking for GNU Radio Module: RUNTIME
 * INCLUDES=/usr/include
 * LIBS=/usr/lib/arm-linux-gnueabihf/libgnuradio-runtime.so;/usr/lib/arm-linux-gnueabihf/libgnuradio-pmt.so;/usr/lib/arm-linux-gnueabihf/liblog4cpp.so
GNURADIO_RUNTIME_FOUND = TRUE
-- Extracting version information from git describe...
-- Boost version: 1.67.0
-- Found the following Boost libraries:
--   date_time
--   program_options
--   filesystem
--   system
--   regex
--   thread
--   chrono
--   atomic
-- LIBSDRPLAY_INCLUDE_DIRS - /usr/local/include
-- LIBSDRPLAY_LIBRARIES - /usr/local/lib/libmirsdrapi-rsp.so
-- Using install prefix: /home/pi/gr-osmosdr
-- Building for version: d28ae3d3 / 1.0.0git
-- 
-- Checking for module SWIG
-- Found SWIG version 3.0.12.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) 
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    ENABLE_AIRSPY
    ENABLE_BLADERF
    ENABLE_FCD
    ENABLE_FCDPP
    ENABLE_FREESRP
    ENABLE_HACKRF
    ENABLE_MIRI
    ENABLE_NONFREE
    ENABLE_PYTHON
    ENABLE_REDPITAYA
    ENABLE_RFSPACE
    ENABLE_RTL
    ENABLE_RTL_TCP
    ENABLE_SOAPY


-- Build files have been written to: /home/pi/Dev/gr-sdrplay/build

pi@raspberrypi:~/Dev/gr-sdrplay/build $ make

make[2]: *** No rule to make target '/usr/local/lib/libmirsdrapi-rsp.so', needed by 'lib/libgnuradio-sdrplay-1.0.0git.so.0.0.0'.  Stop.
make[1]: *** [CMakeFiles/Makefile2:180: lib/CMakeFiles/gnuradio-sdrplay.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Reason: No reason

sdrplay
Posts: 978
Joined: Wed Jan 07, 2015 7:58 am

Re: Rasbian Buster with GNU Radio Workflow Failing on "make"

Post by sdrplay » Sat Jul 06, 2019 8:04 am

Trying to build the API means that the compiler can't find it. Check file location and whether it's the right API for the processor type.

Best regards,

SDRplay Support

Reason: No reason

jrodh
Posts: 16
Joined: Sun Jun 05, 2016 8:18 pm

Re: Rasbian Buster with GNU Radio Workflow Failing on "make"

Post by jrodh » Sat Jul 06, 2019 1:17 pm

Aha! You were right!! I had been using the linux API, not the RPi API.

Everything works now. Thank you.

Reason: No reason

Post Reply