Problems during installing GNU Radio in Ubuntu 7.04 (Feisty Fawn)

Zhifeng Chen

during my install GNU Radio in Ubuntu 7.04 on Jun/26/07, there are three problems as below:


problem 1:
*********************************************************************
The following GNU Radio components have been successfully configured:

config
omnithread
gnuradio-core
pmt
mblock
usrp
gr-usrp
gr-audio-alsa
gr-audio-oss
gr-atsc
gr-cvsd-vocoder
gr-gsm-fr-vocoder
gr-pager
gr-radio-astronomy
gr-trellis
gr-video-sdl
gr-qtgui
gr-wxgui
gr-sounder
gnuradio-examples

You my now run the make command to build these components.

*********************************************************************
The following components were skipped either because you asked not
to build them or they didn't pass configuration checks:

gr-audio-jack
gr-audio-osx
gr-audio-portaudio
gr-audio-windows
gr-comedi

These components will not be built.


--This will likely fail for everyone because some platform-specific configuration checks are mutually exclusive (like the various audio modules for different systems.)
--refer to http://gnuradio.org/trac/wiki/BuildConfiguration


Problem 2:
.........................


OK (25 tests)


PASS: test_pmt
==================
All 1 tests passed
==================
make[5]: Leaving directory `/home/james/gnuradio/pmt/src/lib'
make[4]: Leaving directory `/home/james/gnuradio/pmt/src/lib'
make[3]: Leaving directory `/home/james/gnuradio/pmt/src/lib'
Making check in scheme
make[3]: Entering directory `/home/james/gnuradio/pmt/src/scheme'
Making check in gnuradio
make[4]: Entering directory `/home/james/gnuradio/pmt/src/scheme/gnuradio'
make[4]: Nothing to be done for `check'.
make[4]: Leaving directory `/home/james/gnuradio/pmt/src/scheme/gnuradio'
make[4]: Entering directory `/home/james/gnuradio/pmt/src/scheme'
make[4]: Nothing to be done for `check-am'.
make[4]: Leaving directory `/home/james/gnuradio/pmt/src/scheme'
make[3]: Leaving directory `/home/james/gnuradio/pmt/src/scheme'
make[3]: Entering directory `/home/james/gnuradio/pmt/src'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/home/james/gnuradio/pmt/src'
make[2]: Leaving directory `/home/james/gnuradio/pmt/src'
make[2]: Entering directory `/home/james/gnuradio/pmt'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/home/james/gnuradio/pmt'
make[1]: Leaving directory `/home/james/gnuradio/pmt'
Making check in mblock
make[1]: Entering directory `/home/james/gnuradio/mblock'
Making check in src
make[2]: Entering directory `/home/james/gnuradio/mblock/src'
Making check in lib
make[3]: Entering directory `/home/james/gnuradio/mblock/src/lib'
make check-am
make[4]: Entering directory `/home/james/gnuradio/mblock/src/lib'
make check-TESTS
make[5]: Entering directory `/home/james/gnuradio/mblock/src/lib'

mb_runtime_thread_per_block: dtor (# workers = 4)

mb_runtime_thread_per_block: dtor (# workers = 6)
qa_timeouts_1_top: expected_delta_t = 0.125 actual_delta_t = 0.163913
qa_timeouts_1_top: expected_delta_t = 0.2 actual_delta_t = 0.211428
..............F.


!!!FAILURES!!!
Test Results:
Run: 15 Failures: 1 Errors: 0


1) test: qa_timeouts::test_timeouts_1 (F) line: 199 qa_timeouts.cc
assertion failed
- Expression: pmt_equal(PMT_T, result)


FAIL: test_mblock
===================
1 of 1 tests failed
===================
make[5]: *** [check-TESTS] Error 1
make[5]: Leaving directory `/home/james/gnuradio/mblock/src/lib'
make[4]: *** [check-am] Error 2
make[4]: Leaving directory `/home/james/gnuradio/mblock/src/lib'
make[3]: *** [check] Error 2
make[3]: Leaving directory `/home/james/gnuradio/mblock/src/lib'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/james/gnuradio/mblock/src'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/james/gnuradio/mblock'
make: *** [check-recursive] Error 1
james@james-desktop:~/gnuradio$


--If you don't include $PREFIX/lib in /etc/ld.so.conf, you will see errors during the linking phase of the build. There are several places it shows up. The first one is often during the build of mblocks. It's not an mblock problem. It's a Debian/Ubuntu problem.
--refer to http://gnuradio.org/trac/wiki/UbuntuInstall



problem 3:
james@james-desktop:~/gnuradio/gnuradio-examples/python/usrp$ ./benchmark_usb.py
Traceback (most recent call last):
File "./benchmark_usb.py", line 30, in <module>
from gnuradio import gr
File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/__init__.py", line 27, in <module>
from gnuradio_swig_python import *
File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_python.py", line 23, in <module>
from gnuradio_swig_py_runtime import *
File "/usr/local/lib/python2.5/site-packages/gnuradio/gr/gnuradio_swig_py_runtime.py", line 6, in <module>
import _gnuradio_swig_py_runtime
ImportError: libgnuradio-core.so.0: cannot open shared object file: No such file or directory


--solution: $ sudo ldconfig
--I think it should be the same reason of problem2
--for what is ldconfig, refer to http://dev.csdn.net/article/81/81341.shtm
กก