Problems with OSMOCOM

Having issues with the site, hardware, source code, or any other issues?
Post Reply
Bomber
Posts: 3
Joined: Wed Sep 04, 2013 10:29 am

Problems with OSMOCOM

Post by Bomber »

Has anybody seen this?

[bomber@localhost build]$ cmake -DLIBBLADERF_PKG_INCLUDE_DIRS=/opt/bladeRF/include/ -DLIBBLADERF_PKG_LIBRARY_DIRS=/opt/bladeRF/lib/ ../
-- The CXX compiler identification is GNU 4.7.2
-- The C compiler identification is GNU 4.7.2
-- Check for working CXX compiler: /usr/lib64/ccache/c++
-- Check for working CXX compiler: /usr/lib64/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working C compiler: /usr/lib64/ccache/gcc
-- Check for working C compiler: /usr/lib64/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Build type not specified: defaulting to release.
-- Found Git: /usr/bin/git (found version "1.7.11.7")
-- Extracting version information from git describe...
-- Configuring Boost C++ Libraries...
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- thread
-- system
CMake Warning at CMakeLists.txt:147 (find_package):
Could not find a configuration file for package "Gnuradio" that is
compatible with requested version "3.7.0".

The following configuration files were considered but not accepted:

/usr/local/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.6.5.1
/opt/gnuradio-3.7.1git/lib/cmake/gnuradio/GnuradioConfig.cmake, version: 3.6.5.1



-- Found PkgConfig: /usr/bin/pkg-config (found version "0.25")
-- checking for module 'gnuradio-iqbalance'
-- package 'gnuradio-iqbalance' not found
-- Could NOT find GNURADIO_IQBALANCE (missing: GNURADIO_IQBALANCE_INCLUDE_DIRS)
-- checking for module 'uhd'
-- package 'uhd' not found
-- Found UHD: /usr/local/lib64/libuhd.so
-- checking for module 'gnuradio-uhd'
-- package 'gnuradio-uhd' not found
-- gnuradio-uhd not found.
-- Could NOT find GNURADIO_UHD (missing: GNURADIO_UHD_INCLUDE_DIRS)
-- checking for module 'gnuradio-fcd'
-- package 'gnuradio-fcd' not found
-- gnuradio-fcd not found.
-- Could NOT find GNURADIO_FCD (missing: GNURADIO_FCD_INCLUDE_DIRS)
-- checking for module 'gnuradio-fcdproplus'
-- package 'gnuradio-fcdproplus' not found
-- gnuradio-fcdproplus not found.
-- Could NOT find GNURADIO_FCDPP (missing: GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
-- checking for module 'libosmosdr'
-- package 'libosmosdr' not found
-- libosmosdr not found.
-- checking for module 'librtlsdr'
-- package 'librtlsdr' not found
-- Found librtlsdr: /usr/local/include, /usr/local/lib/librtlsdr.so
-- checking for module 'libmirisdr'
-- package 'libmirisdr' not found
-- libmirisdr not found.
-- checking for module 'libhackrf'
-- package 'libhackrf' not found
-- Found LIBHACKRF: /usr/local/lib/libhackrf.so
-- checking for module 'libbladeRF'
-- package 'libbladeRF' not found
-- Found libbladeRF: /usr/local/include, /usr/local/lib/libbladeRF.so
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.1")
CMake Error at CMakeLists.txt:161 (message):
GnuRadio Runtime required to build gr-osmosdr


-- Configuring incomplete, errors occurred!
[bomber@localhost build]$ cmake -DLIBBLADERF_PKG_INCLUDE_DIRS=/opt/bladeRF/include/ -DLIBBLADERF_PKG_LIBRARY_DIRS=/opt/bladeRF/lib/ -DCMAKE_INSTALL_PREFIX=~/sandbox/pybombs/target/ ../
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Configuring Boost C++ Libraries...
-- Boost version: 1.48.0
-- Found the following Boost libraries:
-- thread
-- system
Checking for GNU Radio Module: RUNTIME
-- checking for module 'gnuradio-runtime'
-- package 'gnuradio-runtime' not found
* INCLUDES=/home/bomber/sandbox/pybombs/target/include
* LIBS=/home/bomber/sandbox/pybombs/target/lib64/libgnuradio-runtime.so
-- Found GNURADIO_RUNTIME: /home/bomber/sandbox/pybombs/target/lib64/libgnuradio-runtime.so
GNURADIO_RUNTIME_FOUND = TRUE
Checking for GNU Radio Module: BLOCKS
-- checking for module 'gnuradio-blocks'
-- package 'gnuradio-blocks' not found
* INCLUDES=/home/bomber/sandbox/pybombs/target/include
* LIBS=/home/bomber/sandbox/pybombs/target/lib64/libgnuradio-blocks.so
-- Found GNURADIO_BLOCKS: /home/bomber/sandbox/pybombs/target/lib64/libgnuradio-blocks.so
GNURADIO_BLOCKS_FOUND = TRUE
Checking for GNU Radio Module: PMT
-- checking for module 'gnuradio-pmt'
-- package 'gnuradio-pmt' not found
* INCLUDES=/home/bomber/sandbox/pybombs/target/include
* LIBS=/home/bomber/sandbox/pybombs/target/lib64/libgnuradio-pmt.so
-- Found GNURADIO_PMT: /home/bomber/sandbox/pybombs/target/lib64/libgnuradio-pmt.so
GNURADIO_PMT_FOUND = TRUE
-- checking for module 'gnuradio-iqbalance'
-- package 'gnuradio-iqbalance' not found
-- Could NOT find GNURADIO_IQBALANCE (missing: GNURADIO_IQBALANCE_INCLUDE_DIRS)
-- checking for module 'uhd'
-- package 'uhd' not found
-- checking for module 'gnuradio-uhd'
-- package 'gnuradio-uhd' not found
-- Found gnuradio-uhd: /home/bomber/sandbox/pybombs/target/include, /usr/local/lib64/libgnuradio-uhd.so
-- Found GNURADIO_UHD: /usr/local/lib64/libgnuradio-uhd.so
-- checking for module 'gnuradio-fcd'
-- package 'gnuradio-fcd' not found
-- Found gnuradio-fcd: /home/bomber/sandbox/pybombs/target/include, /usr/local/lib64/libgnuradio-fcd.so
-- Found GNURADIO_FCD: /usr/local/lib64/libgnuradio-fcd.so
-- checking for module 'gnuradio-fcdproplus'
-- package 'gnuradio-fcdproplus' not found
-- gnuradio-fcdproplus not found.
-- Could NOT find GNURADIO_FCDPP (missing: GNURADIO_FCDPP_LIBRARIES GNURADIO_FCDPP_INCLUDE_DIRS)
-- checking for module 'libosmosdr'
-- package 'libosmosdr' not found
-- libosmosdr not found.
-- checking for module 'libmirisdr'
-- package 'libmirisdr' not found
-- libmirisdr not found.
-- checking for module 'libhackrf'
-- package 'libhackrf' not found
-- Found PythonLibs: /usr/lib64/libpython2.7.so (found suitable version "2.7.3", required is "2")
-- Found SWIG: /usr/bin/swig (found version "2.0.8")
-- Minimum SWIG version required is 1.3.31
--
-- The build system will automatically enable all components.
-- Use -DENABLE_DEFAULT=OFF to disable components by default.
--
-- Configuring Python support support...
-- Dependency PYTHONLIBS_FOUND = TRUE
-- Dependency SWIG_FOUND = TRUE
-- Dependency SWIG_VERSION_CHECK = TRUE
-- Enabling Python support support.
-- Override with -DENABLE_PYTHON=ON/OFF
--
-- Configuring Osmocom IQ Imbalance Correction support...
-- Dependency GNURADIO_IQBALANCE_FOUND = FALSE
-- 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_FCD_FOUND = TRUE
-- Enabling FUNcube Dongle support.
-- Override with -DENABLE_FCD=ON/OFF
--
-- Configuring FUNcube Dongle Pro+ support...
-- Dependency GNURADIO_FCDPP_FOUND = FALSE
-- Disabling FUNcube Dongle Pro+ support.
-- Override with -DENABLE_FCDPP=ON/OFF
--
-- Configuring IQ File Source support...
-- Dependency GNURADIO_BLOCKS_FOUND = TRUE
-- Enabling IQ File Source 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 = TRUE
-- Enabling RTLSDR TCP Client support.
-- Override with -DENABLE_RTL_TCP=ON/OFF
--
-- Configuring Ettus USRP Devices support...
-- Dependency UHD_FOUND = TRUE
-- Dependency GNURADIO_UHD_FOUND = TRUE
-- Enabling Ettus USRP Devices support.
-- Override with -DENABLE_UHD=ON/OFF
--
-- Configuring Osmocom MiriSDR support...
-- Dependency LIBMIRISDR_FOUND = FALSE
-- Disabling Osmocom MiriSDR support.
-- Override with -DENABLE_MIRI=ON/OFF
--
-- Configuring HackRF Jawbreaker support...
-- Dependency LIBHACKRF_FOUND = TRUE
-- Enabling HackRF Jawbreaker support.
-- Override with -DENABLE_HACKRF=ON/OFF
--
-- Configuring nuand bladeRF support...
-- Dependency LIBBLADERF_FOUND = TRUE
-- Enabling nuand bladeRF support.
-- Override with -DENABLE_BLADERF=ON/OFF
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.3", required is "2")
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned int
-- Check size of unsigned int - done
--
-- ######################################################
-- # gr-osmosdr enabled components
-- ######################################################
-- * Python support
-- * FUNcube Dongle
-- * IQ File Source
-- * Osmocom RTLSDR
-- * RTLSDR TCP Client
-- * Ettus USRP Devices
-- * HackRF Jawbreaker
-- * nuand bladeRF
--
-- ######################################################
-- # gr-osmosdr disabled components
-- ######################################################
-- * Osmocom IQ Imbalance Correction
-- * sysmocom OsmoSDR
-- * FUNcube Dongle Pro+
-- * Osmocom MiriSDR
--
-- Building for version: v0.1.0-10-g68ed1854 / 0.1.1git
-- Using install prefix: /home/bomber/sandbox/pybombs/target
-- Configuring done
-- Generating done
CMake Warning:
Manually-specified variables were not used by the project:

LIBBLADERF_PKG_INCLUDE_DIRS
LIBBLADERF_PKG_LIBRARY_DIRS


-- Build files have been written to: /home/bomber/sandbox/osmocom/gr-osmosdr/build
[bomber@localhost build]$ make
Scanning dependencies of target gnuradio-osmosdr
[ 2%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/source_impl.cc.o
[ 5%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/sink_impl.cc.o
[ 8%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/ranges.cc.o
[ 11%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/device.cc.o
[ 14%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/fcd/fcd_source_c.cc.o
[ 17%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/file/file_source_c.cc.o
[ 20%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl/rtl_source_c.cc.o
[ 22%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_f.cc.o
[ 25%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/rtl_tcp/rtl_tcp_source_c.cc.o
[ 28%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_sink_c.cc.o
[ 31%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/uhd/uhd_source_c.cc.o
[ 34%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_source_c.cc.o
[ 37%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/hackrf/hackrf_sink_c.cc.o
[ 40%] Building CXX object lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o
/home/bomber/sandbox/osmocom/gr-osmosdr/lib/bladerf/bladerf_source_c.cc: In constructor ‘bladerf_source_c::bladerf_source_c(const string&)’:
/home/bomber/sandbox/osmocom/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:169:46: error: ‘BLADERF_SAMPLING_INTERNAL’ was not declared in this scope
/home/bomber/sandbox/osmocom/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:169:72: error: ‘bladerf_set_sampling’ was not declared in this scope
/home/bomber/sandbox/osmocom/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:174:46: error: ‘BLADERF_SAMPLING_EXTERNAL’ was not declared in this scope
/home/bomber/sandbox/osmocom/gr-osmosdr/lib/bladerf/bladerf_source_c.cc:174:72: error: ‘bladerf_set_sampling’ was not declared in this scope
make[2]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/bladerf/bladerf_source_c.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2


Thanks for any help
piranha32
Posts: 26
Joined: Fri Mar 01, 2013 6:25 am

Re: Problems with OSMOCOM

Post by piranha32 »

bladeRF API is not stable yet and changing very often. Looks like osmocom team has to update the driver to catch up with the latest changes in the API.
Bomber
Posts: 3
Joined: Wed Sep 04, 2013 10:29 am

Re: Problems with OSMOCOM

Post by Bomber »

Thanks. I will wait for an update.
damastas
Posts: 4
Joined: Tue Sep 03, 2013 5:08 pm

Re: Problems with OSMOCOM

Post by damastas »

It looks like you were trying to build gr-osmosdr from their main branch. Currently their main branch is targeted towards GNURadio 3.7, which it looks like you still have GNURadio 3.6 installed. Do a git checkout gr3.6 in the gr-osmosdr main directory and then try building again.
piranha32
Posts: 26
Joined: Fri Mar 01, 2013 6:25 am

Re: Problems with OSMOCOM

Post by piranha32 »

BladeFR driver in gr-osmosdr from the main branch doesn't build against gnuradio 3.7 either.
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: Problems with OSMOCOM

Post by bpadalino »

The current checked in gr-osmosdr libraries all work against both 3.6 and 3.7, but you have to ensure you install libbladeRF first and have no lingering header files around and you have to make sure your currently working GNU Radio is at 3.6 or 3.7 and not some combination of both.
piranha32
Posts: 26
Joined: Fri Mar 01, 2013 6:25 am

Re: Problems with OSMOCOM

Post by piranha32 »

Thanks. I had an ancient version of header in /usr. After cleaning up gr-osmosdr builds without problems.

j.
Bomber
Posts: 3
Joined: Wed Sep 04, 2013 10:29 am

Re: Problems with OSMOCOM

Post by Bomber »

Thanks. A little weird. Removed everything and tried again with the advice. Still no joy. Copied the libbladeRF..h file into the gr-osmosdr/lib/bladerf directory. Edited the source file replacing the <> with "" and it worked.

Thanks again for the help.
Post Reply