Beta release of gr-osmosdr for Gnu Radio and GQRX

Post information or questions regarding SDRplay products here
josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 9:42 am

Here is what I get trying to run grc:
john@john-Inspiron-660:~/Desktop/sdrplay$ gnuradio-companion
<<< Welcome to GNU Radio Companion 3.7.9 >>>

Preferences file: /home/john/.gnuradio/grc.conf
Block paths:
/usr/local/share/gnuradio/grc/blocks
/usr/share/gnuradio/grc/blocks
/home/john/.grc_gnuradio

Loading: "/home/john/Desktop/n8jj.grc"
linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

>>> Done

Showing: "/home/john/Desktop/n8jj.grc"

Generating: '/home/john/Desktop/top_block.py'

Executing: /usr/bin/python -u /home/john/Desktop/top_block.py

linux; GNU C++ version 5.3.1 20151219; Boost_105800; UHD_003.009.002-0-unknown

Using Volk machine: avx_64_mmx_orc
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.9
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy redpitaya

FATAL: No supported devices found to pick from.

Trying to fill up 1 missing channel(s) with null source(s).
This is being done to prevent the application from crashing
due to gnuradio bug #528.


>>> Done


I was able to use the scripts from KB9RLW to get CubicSDR running with one minor error.
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby sdrplay » Mon Mar 26, 2018 10:53 am

Presumably you've setup the environment variables and especially LD_LIBRARY_PATH? Can you share the relevant environment variables (they will be in setup_env.sh)

Best regards,

SDRplay Support

Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 11:46 am

That must have been it.
I reentered the LD_LIBRARY_PATH=~/dr-osmosdr .... line and it started working.
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 12:06 pm

Well it actually didn't work. I had an RTL connected and it latched onto that.

Here is the setup_env.sh contents:
# WARNING: This file is auto-generated by pybombs, any manual changes to it may be overwritten!
export PATH="/home/john/prefix/bin:$PATH"
export PYTHONPATH="/home/john/prefix/python:/home/john/prefix/lib/python2.6/site-packages:/home/john/prefix/lib64/python2.6/site-packages:/home/john/prefix/lib/python2.6/dist-packages:/home/john/prefix/lib64/python2.6/dist-packages:/home/john/prefix/lib/python2.7/site-packages:/home/john/prefix/lib64/python2.7/site-packages:/home/john/prefix/lib/python2.7/dist-packages:/home/john/prefix/lib64/python2.7/dist-packages:$PYTHONPATH"
export LD_LIBRARY_PATH="/home/john/prefix/lib:/home/john/prefix/lib64/:$LD_LIBRARY_PATH"
export LIBRARY_PATH="/home/john/prefix/lib:/home/john/prefix/lib64/:$LIBRARY_PATH"
export PKG_CONFIG_PATH="/home/john/prefix/lib/pkgconfig:/home/john/prefix/lib64/pkgconfig:$PKG_CONFIG_PATH"
export PYBOMBS_PREFIX="/home/john/prefix"
# If we're in a Python virtualenv, activate that
if [ -r /home/john/prefix/bin/activate ]; then
source /home/john/prefix/bin/activate
fi
Last edited by josephj on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

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

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby sdrplay » Mon Mar 26, 2018 2:42 pm

are you sourcing that file?

assuming you've built the new gr-osmosdr into ~/gr-osmosdr, you would use...

source ~/prefix/setup_env.sh
LD_LIBRARY_PATH=~/gr-osmosdr/lib:$LD_LIBRARY_PATH \
PYTHONPATH=~/gr-osmosdr/lib/python-2.7/dist-packages:$PYTHONPATH \
gnuradio-companion

Replace ~/gr-osmosdr as required.

Can you do that and post the result?

Best regards,

SDRplay Support

Reason: No reason

josephj
Posts: 9
Joined: Fri Mar 23, 2018 5:53 pm

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby josephj » Mon Mar 26, 2018 4:00 pm

OK I think I had the directory "gr-osmosdr" in the wrong place.
I rebuilt it in the right place and it seems to work now

Thanks

N8JJ

Reason: No reason

vk2byf
Posts: 3
Joined: Fri Feb 17, 2017 12:45 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby vk2byf » Mon May 21, 2018 1:46 am

Hi
I'm a slow old learner. I run Linux Mint 18.3 Mate.

I have been using gqrx for more than a year with no issues except I't cant't see my SDRplay RSP
I have been playing with Gnu Radio Companion but can't use the osmosdr block. That's another story.

I have tried building this block with a variety of published methods including from source but have had no end of issues once I try to use the gr-osmosdr block. Trouble is I don't understand the errors and how to fix them but that is another story.

I did sudo apt-get --purge remove osmosdr and started again following instructions found here.

I got this far with the install

sudo apt install python-pip No problem, version 8.1.1-2ubuntu0.4 installed already.
pip install PyBOMBS No problem, pip 9.0.3 installed, 10.0.1 available

pip install --upgrade pip (this needed sudo, now I have pip 10.0.1)

Here is where it goes wrong

pip install git+https://github.com/gnuradio/pybombs.git (here it complained about needing markdown so I installed markdown and ran it again)
pip install git+https://github.com/gnuradio/pybombs.git (now it complains about needing markdown >2.0.1 but I can only find 1.0.1, I searched with apt, the update manager and I googled but to no avail. I would appreciate someone pointing me in the right direction please.

Thanks for sharing your expertise with a slow learner. 73 Bob vk2byf
Last edited by vk2byf on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason

DVE
Posts: 30
Joined: Sat Mar 12, 2016 11:19 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby DVE » Sat May 26, 2018 4:54 pm

Hi all,
Is it possible to enable sdrplay support in Gnuradio for Windows? Do I need to rebuild it from sources?

Osmocom source does not work, and I see no 'sdrplay' in the log:

gr-osmosdr v0.1.4-98-gc653754d (0.1.5git) gnuradio 3.7.11.1
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf airspy soapy redpitaya

Reason: No reason

DVE
Posts: 30
Joined: Sat Mar 12, 2016 11:19 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby DVE » Mon Jun 04, 2018 8:13 pm

Update for the Raspberry Pi: I was able to build gr-osmosdr without buildind gnuradio from sources, just added 'dev' component:

sudo apt-get install gnuradio gnuradio-dev

Than, git clone https://github.com/willcode/gr-osmosdr, git checkout sdrplay2, and build as usual.

"make -j4" does not work btw, showing error "virtual memory exhausted: Cannot allocate memory", but "make" with 1 thread works ok.

Reason: No reason

jengel
Posts: 3
Joined: Tue Jul 10, 2018 1:39 am

Re: Beta release of gr-osmosdr for Gnu Radio and GQRX

Postby jengel » Thu Jul 12, 2018 1:25 am

System: Ubuntu 16.04 LTS. Relatively clean install with the latest API, SoapySDR (as per workflow), and dump1090 (provided by support) installed.
Radio: RSPDuo


Previously:

I initially followed the instructions as per https://www.sdrplay.com/linux-gr-source/ to install gr-osmosdr. I ran into 3 issues. Two I self resolved and list just for reference.

The 3rd issue issue is unresolved.

1. Boost a requirement. Had to install libboost-system-dev and libboost-thread-dev.
2. gnuradio-dev is required. This will also install gnuradio.
3. osmocom does does not appear in source/sink in gnu-radio. After successful compile and install based on the instructions I launched the gnuradio-companion after setting the environment variables as prescribed.

LD_LIBRARY_PATH=~/gr-osmosdr/lib:$LD_LIBRARY_PATH PYTHONPATH=~/gr-osmosdr/lib/python2.7/dist-packages:$PYTHONPATH GRC_BLOCKS_PATH=~/gr-osmosdr/share/gnuradio/grc/blocks:$GRC_BLOCKS_PATH


Checking on the file system under gr-osmosdr there are two directories, lib and include.
Comparing this to at the variables "share" is missing. Also lib/python 2.7 directory is missing.

This is what is installed in gr-osmosdr:

.
├── include
│ └── osmosdr
│ ├── api.h
│ ├── device.h
│ ├── pimpl.h
│ ├── ranges.h
│ ├── sink.h
│ ├── source.h
│ └── time_spec.h
└── lib
├── libgnuradio-osmosdr.so -> libgnuradio-osmosdr.so.0.1.5git
├── libgnuradio-osmosdr.so.0.1.5git
└── pkgconfig
└── gnuradio-osmosdr.pc


4 directories, 10 files

Now:

Support ticket directed me here. Going through the steps above I encountered the following issues:

1. pip install --upgrade pip

pip upgrade takes one to version 10.0.1. which breaks pip "ImportError: cannot import name main" due to change introduced in v10.

TL;DR's reply om this thread best describe possible solutions an links to discussions in why the problem occur: https://stackoverflow.com/questions/498 ... for-python


I reverted back to the distribution default

2.pybombs prefix init ~/prefix -a myprefix -R gnuradio-default

After bombing my system with a heaps of additional packages (pun intended :D ) the build failed with the following error in terminal:

-- Configuring LibUHD support...
-- Dependency Boost_FOUND = 0
-- Dependency HAVE_PYTHON_PLAT_MIN_VERSION = TRUE
-- Dependency HAVE_PYTHON_MODULE_MAKO = TRUE
CMake Error at cmake/Modules/UHDComponent.cmake:59 (MESSAGE):
Dependencies for required component LibUHD not met.
Call Stack (most recent call first):
CMakeLists.txt:431 (LIBUHD_REGISTER_COMPONENT)


-- Configuring incomplete, errors occurred!
See also "/home/jengel/prefix/src/uhd/host/build/CMakeFiles/CMakeOutput.log".
See also "/home/jengel/prefix/src/uhd/host/build/CMakeFiles/CMakeError.log".
PyBOMBS.Packager.source - ERROR - Configuration failed after running at least twice.
PyBOMBS.Packager.source - ERROR - Problem occurred while building package uhd:
Configuration failed
PyBOMBS.install_manager - ERROR - Error installing package uhd. Aborting.


From the error log found 2 errors. (I could not attach them, the forum won't allow me to attach .log files)

cmTC_a30cd/fast: CheckSymbolExists.c:(.text+0x16): undefined reference to `pthread_create'
cmTC_746dc/fast: /usr/bin/ld: cannot find -lpthreads


Questions:

1. Any suggestions on PyBombs issue?
2. Is installing GQRX (this is what PyBombs install here I assume) really needed to get the parts for GNU Radio to work?
Last edited by jengel on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason


Return to “SDRplay related”

Who is online

Users browsing this forum: No registered users and 4 guests