All,
I think I am having a version problem. I followed the instructions from
the gnuradio and UHD Start page.
I download gnuradio using
$ git clone git://gnuradio.org/gnuradio
git branch --track next origin/next
git checkout next
And then I do the usual
./bootstrap
./configure
make
make check
sudo make install
sudo ldconfig
Everything goes fine and everything that I expect to get installed does,
but then as soon as I try to run something it breaks, see errors below.
I dug further, and I think I have a version problem. Both the version.sh
file in my gnuradio directory and the gnuradio-core.pc file in
/usr/local/lib/pkgconfig say the version in 3.4. But when I run
./configure it says the version is 3.3.1. As far as I know version 3.4
doesn't exist yet. I have uninstalled and deleted everything and
reinstalled and the problem remains the same.
Anybody what the problem is?
TIA
Scott
sjohnston@ubunte:~/gnuradio$ cat version.sh
MAJOR_VERSION=3
API_COMPAT=4
MINOR_VERSION=git
MAINT_VERSION=
sjohnston@ubunte:/usr/local/
lib/pkgconfig$ cat gnuradio-core.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/gnuradio
guile_load_path=/usr/local/share/guile/site
Name: gnuradio-core
Description: GNU Software Radio toolkit
Requires: gruel fftw3f gsl
Version: 3.4git
Libs.private: -L/usr/lib -lboost_thread-mt -lboost_date_time-mt
Libs: -L${libdir} -lgnuradio-core
Cflags: -I/usr/include -pthread -I${includedir}
sjohnston@ubunte:~/gnuradio$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for git... /usr/bin/git
checking existence of git version control directory... ok
checking git description of current commit... v3.3.1git-956-g501aa52b
configure: GNU Radio Release v3.3.1git-956-g501aa52b
I get the following problem when trying to run any gnuradio programs.
And when I try gnuradio-companion a gui pops up that says "can't import
gnuradio, are your PYTHONPATH and LD_LIBRARY_PATH set correctly?
sjohnston@ubunte:~/gnuradio/
gnuradio-examples/python/pfb$ ./channelize.py --help
Traceback (most recent call last):
File "./channelize.py", line 23, in <module>
from gnuradio import gr, blks2
File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/__init__.py",
line 43, in <module>
from gnuradio_core import *
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py",
line 23, in <module>
from gnuradio_core_runtime import *
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 24, in <module>
_gnuradio_core_runtime = swig_import_helper()
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 20, in swig_import_helper
_mod = imp.load_module('_gnuradio_core_runtime', fp, pathname,
description)
ImportError: /usr/local/lib/libgnuradio-core-3.4git.so.0: undefined
symbol: _ZTIN5gruel12msg_accepterE
sjohnston@ubunte:~/gnuradio/gnuradio-examples/python/digital$
./benchmark_loopback.py --help
Traceback (most recent call last):
File "./benchmark_loopback.py", line 23, in <module>
from gnuradio import gr, gru, modulation_utils
File "/usr/local/lib/python2.6/dist-packages/gnuradio/gr/__init__.py",
line 43, in <module>
from gnuradio_core import *
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core.py",
line 23, in <module>
from gnuradio_core_runtime import *
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 24, in <module>
_gnuradio_core_runtime = swig_import_helper()
File
"/usr/local/lib/python2.6/dist-packages/gnuradio/gr/gnuradio_core_runtime.py",
line 20, in swig_import_helper
_mod = imp.load_module('_gnuradio_core_runtime', fp, pathname,
description)
ImportError: /usr/local/lib/libgnuradio-core-3.4git.so.0: undefined
symbol: _ZTIN5gruel12msg_accepterE
Scott Johnston wrote:
Yes, that was typo.
PYTHONPATH=/usr/local/lib/python2.6/dist-packages
I did mean dist-pakages. I have three directories in dist, gnuradio
grc_gnuradio usrpm. And nothing in the site-packages.
Alexandru Csete wrote:
On Wed, Feb 16, 2011 at 3:19 PM, Scott Johnston
<scott.johns...@ll.mit.edu> wrote:
Thanks Josh. Getting the newest gnuradio from git solved the uhd problem,
but now gnuradio is broken. I know it must be some path problem but I have
tried the usual tricks: I set my
PYTHONPATH=/usr/local/lib/pkgconfig/dist-packages and
LD_LIBRARY_PATH=/usr/local/lib and I did sudo ldconfig in the gnuradio
directory. And I checked /etc/ld.so.conf and /usr/local/lib is in there.
Maybe just a typo, but instead of
PYTHONPATH=/usr/local/lib/pkgconfig/dist-packages
try:
PYTHONPATH=/usr/local/lib/python2.6/site-packages
Alex
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
--
Scott Johnston
MIT Lincoln Laboratory
244 Wood Street, Lexington, MA 02420-9108
(781) 981-8196
scott.johns...@ll.mit.edu
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio