Pybombs install on Ubuntu 14.04 fails

2,208 views
Skip to first unread message

Clayton Smith

unread,
Apr 18, 2014, 11:02:36 AM4/18/14
to gq...@googlegroups.com
I just did a fresh install of Ubuntu 14.04, and then tried to install gqrx via pybombs.  It fails with the following error.  I've tried installing libboost1.54-all-dev and libboost-all-dev but neither of those helped.  Any ideas?

g++ -m64 -Wl,-O1 -o gqrx main.o mainwindow.o receiver.o remote_control.o remote_control_settings.o cafsk12.o costabf.o agc_impl.o correct_iq_cc.o lpf.o resampler_xx.o rx_demod_am.o rx_demod_fm.o rx_fft.o rx_filter.o rx_meter.o rx_agc_xx.o rx_noise_blanker_cc.o sniffer_f.o stereo_demod.o udp_sink_f.o afsk1200win.o agc_options.o audio_options.o demod_options.o dockinputctl.o dockaudio.o dockfft.o dockrxopt.o freqctrl.o ioconfig.o meter.o nb_options.o plotter.o qtcolorpicker.o nbrx.o receiver_base.o wfmrx.o iq_tool.o pa_device_list.o pa_sink.o pa_source.o moc_mainwindow.o moc_remote_control.o moc_remote_control_settings.o moc_cafsk12.o moc_afsk1200win.o moc_agc_options.o moc_audio_options.o moc_demod_options.o moc_dockaudio.o moc_dockfft.o moc_dockinputctl.o moc_dockrxopt.o moc_freqctrl.o moc_ioconfig.o moc_meter.o moc_nb_options.o moc_plotter.o moc_qtcolorpicker.o moc_iq_tool.o qrc_icons.o qrc_textfiles.o -L/usr/lib/x86_64-linux-gnu -lboost_system-mt -lboost_program_options-mt -lrt -lpulse-simple -lpulse -L/home/argilo/git/target/lib -lgnuradio-analog -lgnuradio-filter -lgnuradio-fft -lgnuradio-osmosdr -lgnuradio-blocks -lgnuradio-runtime -lgnuradio-pmt -lQtSvg -lQtGui -lQtNetwork -lQtCore -lpthread
/usr/bin/ld: cannot find -lboost_system-mt
/usr/bin/ld: cannot find -lboost_program_options-mt
collect2: error: ld returned 1 exit status
make: *** [gqrx] Error 1
ERROR:root:PyBOMBS Make step failed for package (gqrx) please see bash output above for a reason (hint: look for the word Error)

Alexandru Csete

unread,
Apr 18, 2014, 11:24:02 AM4/18/14
to gq...@googlegroups.com
It's probably because of the -mt suffix in the recipe - just remove
"BOOST_SUFFIX=-mt" in gqrx.lwr
As I recall pybombs insists on boost > 1.53 and in most cases it will
build from source using libboost-xyz-mt name format, while .deb
packages don't use the -mt suffix.

Alex
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/41466b0b-4ba8-4589-9c63-9df773f6fb6e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Clayton Smith

unread,
Apr 18, 2014, 11:54:38 AM4/18/14
to gq...@googlegroups.com
Thanks, that fixed it. I deleted "BOOST_SUFFIX=-mt" from gqrx.lwr,
then did "./pybombs clean gqrx" and "./pybombs install gqrx" and all
was well.

I opened up an issue on Github: https://github.com/pybombs/pybombs/issues/72

73,
Clayton VE3IRR
> To view this discussion on the web visit https://groups.google.com/d/msgid/gqrx/CAHG%3DS_ebwaj8JKEY4oSJbH43BkU2b5MxYtEywG56wDvh-M_hkQ%40mail.gmail.com.

Simon Kennedy

unread,
Apr 22, 2014, 6:07:32 PM4/22/14
to gq...@googlegroups.com
I've done a fresh install of 14.04 and installed gqrx using pybombs as Clayton did, i.e. running it once and it failing with the Boost error, changing the gqrx.lwr file and running clean then install again.
However, on the install I now get a message saying:
"/usr/bin/ld: warning: libgnuradio-fcdproplus.so.0, needed by /usr/local/lib/libgnuradio-osmosdr.so, not found (try using -rpath or -rpath-link)
/usr/local/lib/libgnuradio-osmosdr.so: undefined reference to `gr::fcdproplus::fcdproplus::make(std::string, int)'
collect2: error: ld returned 1 exit status
make: *** [gqrx] Error 1"

Indeed, the fcdproplus library was not in /usr/local/lib so I ran ./pybombs install gr-fcdproplus and it is now in /usr/local/lib, rebooted, then ran the clean and install steps again.
I then realised that gr-fcdproplus was a dependency for gr-osmosdr so I reinstalled gr-osmosdr and reinstalled gqrx. Now the install completes successfully.

However, when running gqrx I get the message:
"gr-osmosdr v0.1.1-4-gac95af24 (0.1.2git) gnuradio v3.7.4git-118-g0bd6bf9a
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace 
Using FUNcube Dongle V1.0 (hw:1)
audio_oss_source: hw:1: No such file or directory

FATAL: audio_oss_source

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.

terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::math::rounding_error> >'
  what():  Error in function boost::math::round<f>(f): Value -inf can not be represented in the target integer type.
Aborted (core dumped)"

This is the same message I was getting yesterday from gnuradio after I had installed gnuradio onto a clean 14.04 install.

Any ideas?

Simon (wishing he'd stayed on 12.04)
G0FCU.

Clayton Smith

unread,
Apr 22, 2014, 6:10:50 PM4/22/14
to gq...@googlegroups.com

Sounds like you're hitting this issue:

https://github.com/pybombs/pybombs/issues/73

Try the solution listed there and see how you get along.

73,
Clayton VE3IRR

--
You received this message because you are subscribed to the Google Groups "Gqrx SDR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gqrx+uns...@googlegroups.com.
To post to this group, send email to gq...@googlegroups.com.

Simon Kennedy

unread,
Apr 22, 2014, 6:15:22 PM4/22/14
to gq...@googlegroups.com
I should also have mentioned that the PPA install for 14.04 didn't work for me (W: Failed to fetch http://ppa.launchpad.net/gqrx/releases/ubuntu/dists/trusty/main/binary-amd64/Packages  404  Not Found) and the Ubuntu Software Centre version installs ok but gives an error when you run it.

Simon.

Alexandru Csete

unread,
Apr 22, 2014, 6:39:55 PM4/22/14
to gq...@googlegroups.com
On Wed, Apr 23, 2014 at 12:15 AM, Simon Kennedy <simonh...@gmail.com> wrote:
> I should also have mentioned that the PPA install for 14.04 didn't work for
> me (W: Failed to fetch
> http://ppa.launchpad.net/gqrx/releases/ubuntu/dists/trusty/main/binary-amd64/Packages
> 404 Not Found) and the Ubuntu Software Centre version installs ok but gives
> an error when you run it.

There is no release build for 14.04 since the last release 2.2 was
made in August 2013. So I'm wondering where you got that broken URL
from???

You must use ppa:gqrx/snapshots if you want packages for 14:04:
https://launchpad.net/~gqrx/+archive/snapshots/

But please make sure that you have any pybombs installed gnuradio/gqrx
eliminated before using the PPA.

Alex



>
> Simon.
>
>
> On Tuesday, April 22, 2014 11:07:32 PM UTC+1, Simon Kennedy wrote:
>>
>> I've done a fresh install of 14.04 and installed gqrx using pybombs as
>> Clayton did, i.e. running it once and it failing with the Boost error,
>> changing the gqrx.lwr file and running clean then install again.
>>>
>>>
>>>
> --
> You received this message because you are subscribed to the Google Groups
> "Gqrx SDR" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to gqrx+uns...@googlegroups.com.
> To post to this group, send email to gq...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/gqrx/4297b745-bba4-4b0a-9117-487f52e54a4b%40googlegroups.com.

Simon Kennedy

unread,
Apr 22, 2014, 7:18:16 PM4/22/14
to gq...@googlegroups.com
It looked promising Clayton, but didn't help.

Simon.

Simon Kennedy

unread,
Apr 22, 2014, 7:22:34 PM4/22/14
to gq...@googlegroups.com
Alex, 
I sort of guessed that was the problem.
The commands I ran were:
 sudo add-apt-repository ppa:gqrx/snapshots
 sudo apt-get update

I'd quite like to get the pybombs version working but cannot get past this oss error. Very frustrating! As I am getting used to installing 14.04 I might try a fresh install again as Clayton has had success.

Regards
Simon.

Justin M

unread,
Apr 22, 2014, 10:00:33 PM4/22/14
to gq...@googlegroups.com
Are the issues only from clean installs of 14.04? I've got Ubuntu Saucy with gqrx already installed, and I'm wondering if I upgrade to Trusty if GQrx will stop working? I actually found this group because I was in the middle of the upgrade and decided I should check first..

Simon Kennedy

unread,
Apr 23, 2014, 4:37:56 AM4/23/14
to gq...@googlegroups.com
Justin, 

yes, these issues are from clean installs of 14.04. I am doing a clean install because I have been running 12.04 for two years and wanted to start with a fresh version of gnuradio/gqrx to avoid library conflicts and the like that tend to build up after a period of time and rebuilding/reinstalling.

Simon.

Alexandru Csete

unread,
Apr 23, 2014, 4:46:39 AM4/23/14
to gq...@googlegroups.com
On Wed, Apr 23, 2014 at 10:37 AM, Simon Kennedy <simonh...@gmail.com> wrote:
> Justin,
>
> yes, these issues are from clean installs of 14.04. I am doing a clean
> install because I have been running 12.04 for two years and wanted to start
> with a fresh version of gnuradio/gqrx to avoid library conflicts and the
> like that tend to build up after a period of time and
> rebuilding/reinstalling.

In order to keeps such things clean, I strongly recommend using the
"prefix" feature in the pybombs configuration. It allows you to
install gqrx+gnuradio+deps into a directory isolated from the rest of
system, e.g. $HOME/gnuradio/ then have pybombs generate the
setup_env.sh script.

Alex

Justin M

unread,
Apr 23, 2014, 8:59:41 AM4/23/14
to gq...@googlegroups.com
Thanks for the reply. I guess I'm still not clear if I do the upgrade, will gqrx continue to work the same. I checked the packages that the upgrade said would be affected and gqrx wasn't listed. I'm still a bit of a noob when it comes to linux, and it took me a long time to get gqrx and the rtlsdr working right (and so far gqrx is the only sdr software I've been able to get working right). I think I'm going to give it some time before I upgrade.

Alexandru Csete

unread,
Apr 23, 2014, 9:18:37 AM4/23/14
to gq...@googlegroups.com
On Wed, Apr 23, 2014 at 2:59 PM, Justin M <justi...@gmail.com> wrote:
> Thanks for the reply. I guess I'm still not clear if I do the upgrade, will
> gqrx continue to work the same. I checked the packages that the upgrade said
> would be affected and gqrx wasn't listed.

If you have installed gqrx from source, for example by using pybombs,
then the package manager has no way of knowing about it and will not
list gqrx as an affected package. However, if you would have had it
installed from the PPA, it would probably tell you that it has become
obsolete or something like that.

Alex

Simon Kennedy

unread,
Apr 23, 2014, 4:24:52 PM4/23/14
to gq...@googlegroups.com
On Tuesday, April 22, 2014 11:07:32 PM UTC+1, Simon Kennedy wrote:
I've done a fresh install of 14.04 and installed gqrx using pybombs as Clayton did, i.e. running it once and it failing with the Boost error, changing the gqrx.lwr file and running clean then install again.

However, when running gqrx I get the message:
"gr-osmosdr v0.1.1-4-gac95af24 (0.1.2git) gnuradio v3.7.4git-118-g0bd6bf9a
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf rfspace 
Using FUNcube Dongle V1.0 (hw:1)
audio_oss_source: hw:1: No such file or directory

FATAL: audio_oss_source


Ok, good progress on this. I have reinstalled 14.04, installed only chrome, git and pybombs (using the prefix so I can install separate versions, thanks Alex for the tip)
I then used pybombs to install gqrx.

I still get the  FATAL: audio_oss_source error when using a FunCube Dongle but gqrx works with my RTL stick.
So, presumably this means that the error is somewhere in the gr-fcd code.

Simon.

Alexandru Csete

unread,
Apr 23, 2014, 4:43:36 PM4/23/14
to gq...@googlegroups.com
No, it just confirms the missing libasound2-dev dependency:
https://github.com/pybombs/pybombs/issues/73

If you do not have libasound2-dev installed then the gnuradio build
script will fall back at using OSS audio (an ancient audio system used
when dinosaurs ruled the planet). While you may get OSS audio backend
to work, it uses /dev/dsp type device names rather than hw:0 or hw:1
usend by ALSA. That's why you get an error. There is really no point
in trying to use OSS audio here; just install libasound2-dev *before*
installing gnuradio using pybombs.

Alex

Simon Kennedy

unread,
Apr 23, 2014, 6:08:48 PM4/23/14
to gq...@googlegroups.com
On Wednesday, April 23, 2014 9:43:36 PM UTC+1, Alexandru Csete wrote:

No, it just confirms the missing libasound2-dev dependency:
https://github.com/pybombs/pybombs/issues/73


Ok, I understand, thanks Alex.

Simon.
Reply all
Reply to author
Forward
0 new messages