discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Porting gr-osmosdr to gr-3.9 without swig.


From: Chris Gorman
Subject: Porting gr-osmosdr to gr-3.9 without swig.
Date: Sun, 13 Sep 2020 19:37:24 -0400

Hello All,

I was wondering if anyone had successfully built gr-osmosdr against
gnuradio-3.9 now that we don't use swig?  I have looked at
https://wiki.gnuradio.org/index.php/GNU_Radio_3.9_OOT_Module_Porting_Guide
and haven't figured out how to port gr-osmosdr. I've gotten to '4. (in
3.8 OOT) Call gr_modtool bind for each block in your OOT' and don't
know where to go from there.  I have tried various combinations of
gr_modtool bind block arguments with no success.

Continuing without adding bind blocks.  I run my cmake build command and get...

chris [ ~/src/gnuradio/gr-osmosdr/build ]$ cmake ../
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/GNUInstallDirs.cmake:225 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.
Call Stack (most recent call first):
  CMakeLists.txt:24 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Build type not specified: defaulting to release.
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (GMP).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  /opt/gnuradio/lib/cmake/gnuradio/FindGMP.cmake:1 (include)
  /opt/gnuradio/lib/cmake/gnuradio/FindMPLIB.cmake:1 (find_package)
  /usr/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /opt/gnuradio/lib/cmake/gnuradio/GnuradioConfig.cmake:14 (find_dependency)
  CMakeLists.txt:45 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (MPIR).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  /opt/gnuradio/lib/cmake/gnuradio/FindMPIR.cmake:1 (include)
  /opt/gnuradio/lib/cmake/gnuradio/FindMPLIB.cmake:2 (find_package)
  /usr/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /opt/gnuradio/lib/cmake/gnuradio/GnuradioConfig.cmake:14 (find_dependency)
  CMakeLists.txt:45 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'mpir >= 3.0'
--   No package 'mpir' found
-- Could NOT find MPIR (missing: MPIRXX_LIBRARY MPIR_LIBRARY MPIR_INCLUDE_DIR)
-- Found Boost: /usr/lib/cmake/Boost-1.74.0/BoostConfig.cmake (found
suitable version "1.74.0", minimum required is "1.74.0") found
components: date_time program_options filesystem system regex thread
unit_test_framework
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (VOLK) does
  not match the name of the calling package (Volk).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/lib/cmake/volk/VolkConfig.cmake:32 (find_package_handle_standard_args)
  /usr/share/cmake-3.18/Modules/CMakeFindDependencyMacro.cmake:47 (find_package)
  /opt/gnuradio/lib/cmake/gnuradio/GnuradioConfig.cmake:34 (find_dependency)
  CMakeLists.txt:45 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- User set python executable /usr/bin/python3
-- Found PythonLibs: /usr/lib/libpython3.8.so (found suitable exact
version "3.8.5")
-- Found ALSA 1.2.3.2
-- Extracting version information from git describe...
-- Found Boost: /usr/lib/cmake/Boost-1.74.0/BoostConfig.cmake (found
suitable version "1.74.0", minimum required is "1.65") found
components: chrono thread system
-- 
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
-- Searching for GNURadio-Blocks...
--  Found GNURadio-Blocks: 1
-- Searching for IQ Balance...
-- Could NOT find gnuradio-iqbalance (missing: gnuradio-iqbalance_DIR)
--  Found IQ Balance: 0
-- Searching for UHD Drivers...
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (UHD).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  /opt/gnuradio/lib/cmake/gnuradio/FindUHD.cmake:56 (include)
  CMakeLists.txt:159 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'uhd'
--   No package 'uhd' found
--  Found UHD Driver: 0
-- Searching for UHD Block...
-- Could NOT find gnuradio-uhd (missing: gnuradio-uhd_DIR)
--  Found UHD Block: 0
-- Searching for Volk...
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (VOLK) does
  not match the name of the calling package (Volk).  This can lead to
  problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/lib/cmake/volk/VolkConfig.cmake:32 (find_package_handle_standard_args)
  CMakeLists.txt:167 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

--  Found Volk: 1
-- Checking for module 'libosmosdr'
--   No package 'libosmosdr' found
-- libosmosdr not found.
-- Checking for module 'libmirisdr'
--   No package 'libmirisdr' found
-- libmirisdr not found.
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (LibHackRF).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  cmake/Modules/FindLibHackRF.cmake:1 (INCLUDE)
  CMakeLists.txt:179 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libhackrf'
--   No package 'libhackrf' found
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (LIBHACKRF)
  does not match the name of the calling package (LibHackRF).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindLibHackRF.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:179 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBHACKRF (missing: LIBHACKRF_LIBRARIES
LIBHACKRF_INCLUDE_DIRS)
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (LibAIRSPY).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  cmake/Modules/FindLibAIRSPY.cmake:1 (INCLUDE)
  CMakeLists.txt:180 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libairspy'
--   No package 'libairspy' found
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (LIBAIRSPY)
  does not match the name of the calling package (LibAIRSPY).  This can lead
  to problems in calling code that expects `find_package` result variables
  (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindLibAIRSPY.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:180 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBAIRSPY (missing: LIBAIRSPY_LIBRARIES
LIBAIRSPY_INCLUDE_DIRS)
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args` (PkgConfig)
  does not match the name of the calling package (LibAIRSPYHF).  This can
  lead to problems in calling code that expects `find_package` result
  variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPkgConfig.cmake:59
(find_package_handle_standard_args)
  cmake/Modules/FindLibAIRSPYHF.cmake:1 (INCLUDE)
  CMakeLists.txt:181 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Checking for module 'libairspyhf'
--   No package 'libairspyhf' found
CMake Warning (dev) at
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273
(message):
  The package name passed to `find_package_handle_standard_args`
  (LIBAIRSPYHF) does not match the name of the calling package (LibAIRSPYHF).
  This can lead to problems in calling code that expects `find_package`
  result variables (e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
  cmake/Modules/FindLibAIRSPYHF.cmake:23 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:181 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find LIBAIRSPYHF (missing: LIBAIRSPYHF_LIBRARIES
LIBAIRSPYHF_INCLUDE_DIRS)
-- Checking for module 'libbladeRF'
--   No package 'libbladeRF' found
-- libbladeRF not found.
-- Checking for module 'libgnuradio-funcube'
--   No package 'libgnuradio-funcube' found
-- gnuradio-funcube not found.
-- Could NOT find SoapySDR (missing: SoapySDR_DIR)
-- Checking for module 'libfreesrp'
--   No package 'libfreesrp' found
-- libfreesrp not found.
  File "<string>", line 6
    print(inc_path, end='')
    ^
IndentationError: expected an indented block
-- Found PythonLibs: /usr/lib/libpython3.8.so (found suitable version
"3.8.5", minimum required is "3")
-- 
-- Configuring Python support support...
--   Dependency PYTHONLIBS_FOUND = TRUE
--   Enabling Python support support.
--   Override with -DENABLE_PYTHON=ON/OFF
-- 
-- Configuring high resolution timing...
--   High resolution timing supported through clock_gettime.
-- 
-- Configuring Osmocom IQ Imbalance Correction support...
--   Dependency gnuradio-iqbalance_FOUND = 0
--   Disabling Osmocom IQ Imbalance Correction support.
--   Override with -DENABLE_IQBALANCE=ON/OFF
-- 
-- Configuring sysmocom OsmoSDR support...
--   Dependency LIBOSMOSDR_FOUND = FALSE
--   Disabling sysmocom OsmoSDR support.
--   Override with -DENABLE_OSMOSDR=ON/OFF
-- 
-- Configuring FUNcube Dongle support...
--   Dependency GNURADIO_FUNCUBE_FOUND = FALSE
--   Disabling FUNcube Dongle support.
--   Override with -DENABLE_FCD=ON/OFF
-- 
-- Configuring IQ File Source & Sink support...
--   Dependency gnuradio-blocks_FOUND = 1
--   Enabling IQ File Source & Sink support.
--   Override with -DENABLE_FILE=ON/OFF
-- 
-- 
-- Configuring Osmocom RTLSDR support...
--   Dependency LIBRTLSDR_FOUND = TRUE
--   Enabling Osmocom RTLSDR support.
--   Override with -DENABLE_RTL=ON/OFF
-- 
-- Configuring RTLSDR TCP Client support...
--   Dependency gnuradio-blocks_FOUND = 1
--   Enabling RTLSDR TCP Client support.
--   Override with -DENABLE_RTL_TCP=ON/OFF
-- 
-- Configuring Ettus USRP Devices support...
--   Dependency UHD_FOUND = 0
--   Dependency gnuradio-uhd_FOUND = 0
--   Disabling Ettus USRP Devices support.
--   Override with -DENABLE_UHD=ON/OFF
-- 
-- Configuring Osmocom MiriSDR support...
--   Dependency LIBMIRISDR_FOUND = FALSE
--   Disabling Osmocom MiriSDR support.
--   OverrideAll the blocks appear to be in lib.
with -DENABLE_MIRI=ON/OFF
-- 
-- Configuring HackRF & rad1o Badge support...
--   Dependency LIBHACKRF_FOUND = FALSE
--   Disabling HackRF & rad1o Badge support.
--   Override with -DENABLE_HACKRF=ON/OFF
-- 
-- Configuring nuand bladeRF support...
--   Dependency LIBBLADERF_FOUND = FALSE
--   Disabling nuand bladeRF support.
--   Override with -DENABLE_BLADERF=ON/OFF
-- 
-- Configuring RFSPACE Receivers support...
--   Enabling RFSPACE Receivers support.
--   Override with -DENABLE_RFSPACE=ON/OFF
-- 
-- Configuring AIRSPY Receiver support...
--   Dependency LIBAIRSPY_FOUND = FALSE
--   Disabling AIRSPY Receiver support.
--   Override with -DENABLE_AIRSPY=ON/OFF
-- 
-- Configuring AIRSPY HF+ Receiver support...
--   Dependency LIBAIRSPYHF_FOUND = FALSE
--   Disabling AIRSPY HF+ Receiver support.
--   Override with -DENABLE_AIRSPYHF=ON/OFF
-- 
-- Configuring SoapySDR support support...
--   Dependency SoapySDR_FOUND = 0
--   Disabling SoapySDR support support.
--   Override with -DENABLE_SOAPY=ON/OFF
-- 
-- Configuring Red Pitaya SDR support...
--   Enabling Red Pitaya SDR support.
--   Override with -DENABLE_REDPITAYA=ON/OFF
-- 
-- Configuring FreeSRP support support...
--   Dependency LIBFREESRP_FOUND = FALSE
--   Disabling FreeSRP support support.
--   Override with -DENABLE_FREESRP=ON/OFF
-- Python checking for pygccxml - found
CMake Error: File
/home/chris/src/gnuradio/gr-osmosdr/docs/doxygen/pydoc_macros.h does
not exist.
CMake Error at /opt/gnuradio/lib/cmake/gnuradio/GrPybind.cmake:225
(configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  python/bindings/CMakeLists.txt:23 (GR_PYBIND_MAKE_OOT)


CMake Error at python/bindings/CMakeLists.txt:28 (install):
  install TARGETS given target "osmosdr_python" which does not exist.


-- 
-- ######################################################
-- # Gnuradio enabled components
-- ######################################################
--   * Python support
--   * IQ File Source & Sink
--   * Osmocom RTLSDR
--   * RTLSDR TCP Client
--   * RFSPACE Receivers
--   * Red Pitaya SDR
-- 
-- ######################################################
-- # Gnuradio disabled components
-- ######################################################
--   * Osmocom IQ Imbalance Correction
--   * sysmocom OsmoSDR
--   * FUNcube Dongle
--   * Ettus USRP Devices
--   * Osmocom MiriSDR
--   * HackRF & rad1o Badge
--   * nuand bladeRF
--   * AIRSPY Receiver
--   * AIRSPY HF+ Receiver
--   * SoapySDR support
--   * FreeSRP support
-- 
-- Building for version: 0.2.0.0 / 0.2.0
-- Using install prefix: /usr/local
-- Configuring incomplete, errors occurred!

Any hints would be appreciated



reply via email to

[Prev in Thread] Current Thread [Next in Thread]