discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] UHD won't work with GRC


From: Alexandru Csete
Subject: Re: [Discuss-gnuradio] UHD won't work with GRC
Date: Fri, 18 Feb 2011 17:46:45 +0100

Hi Scott,

I think this is OK because the two version strings are not
automatically linked. I have the same version(s) as you do.
The git version string is generated with respect to the latest git
tag, which is "v3.3.1git"; however, it was apparently decided that the
next release will be v3.4, the version string was updated but no new
tag was made in git so the git tag is still v3.3.1.

>From the error message you posted in your previous mail, I really
can't think of anything else than there is an old version of gnuradio
installed and it takes precedence over the new version - maybe because
it is installed in /usr/lib ?

Alex

On Fri, Feb 18, 2011 at 5:33 PM, Scott Johnston
<address@hidden> wrote:
> 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
>
> address@hidden:~/gnuradio$ cat version.sh
> MAJOR_VERSION=3
> API_COMPAT=4
> MINOR_VERSION=git
> MAINT_VERSION=
>
>
> address@hidden:/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}
>
> address@hidden:~/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?
>
> address@hidden:~/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
>
> address@hidden:~/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
>>> <address@hidden> 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
>>> address@hidden
>>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>>
>>
>>
>
> --
> Scott Johnston
> MIT Lincoln Laboratory
> 244 Wood Street, Lexington, MA 02420-9108
> (781) 981-8196
> address@hidden
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]