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: Scott Johnston
Subject: Re: [Discuss-gnuradio] UHD won't work with GRC
Date: Wed, 16 Feb 2011 09:19:14 -0500
User-agent: Thunderbird 2.0.0.24 (X11/20100721)

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.

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



Josh Blum wrote:
Cat your /usr/local/lib/pkgconfig/uhd.pc files and
gnuradio/config/grc_gr_uhd.m4 and make sure the version reqs match up.
Or the repo is out of date. -josh

On 02/15/2011 07:56 AM, Scott Johnston wrote:
I am having the same problem. When the configure breaks on UHD it says I
need libuhd.1.x.x. I have libuhd.0.0.2 in /usr/local/lib and uhd.pc is
in pkgconfig directory. I have PKG_CONFIG_PATH=/usr/local/lib/pkgconfig.
I have also done sudo ldconfig. I really dont want to wipe my whole
system. Oh, UHD works correctly, uhd_find_devices and rx_samples_to_file
both work.

Any other ideas?

Scott

Josh Blum wrote:
The configure check is very simple. Just make sure that uhd.pc is in
your PKG_CONFIG_PATH, and that if you look at uhd.pc, the version should
read 002.<something>. If not, then you didnt update or install the
latest uhd, that could be another reason its getting rejected.

-Josh

On 01/21/2011 04:21 PM, Fabian Klaes wrote:
I tried sudo ldconfig several times, no luck there :-(

I think I also checked PKG_CONFIG_PATH and uhd.pc was in the (standard?)
/usr/local/lib/pkgconfig, but right now I'm not sure about this. I will
check this on monday again!
Nevertheless I also did (see also my 3rd message in this thread):
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
so i think i should be fine (but will be checked monday)

If this doesn't work out, i think the best move would be to do a fresh
install of Ubuntu and try to install UHD and GNUradio again on a
complete
clean system?

Good Night

Fabian


On Fri, Jan 21, 2011 at 6:19 PM, Josh Blum <address@hidden> wrote:

how about a good luck sudo ldconfig? -josh

On 01/21/2011 05:02 AM, Fabian Klaes wrote:
I first tried make distclean and the installation went fine, but
when I
tried to start the GRC, following window showed up:
http://tinypic.com/r/dq671d/7 containing the error message "Cannot
import
gnuradio. Are your PHYTONPATH and LD_LIBRARY_PATH set correctly?"

I then tried git clean -dfx and rebuilding from scratch (for UHD and
GNUradio).
Installation for UHD (worked):
git clone git://code.ettus.com/ettus/uhd.git
cd uhd/host
mkdir build
cmake -DCMAKE_INSTALL_PREFIX=/opt/uhd ../

make
make test
sudo make install
PATH=$PATH:/opt/uhd/bin

uhd_find_devices and uhd_usrp_probe works fine now, so i figured that
the
installation of UHD was successfull

Installation for GNUradio (error at ./configure):
git clone git://gnuradio.org/gnuradio.git
git branch --track next origin/next
git checkout next
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}
#just
to
be sure ...
BOOST_PREFIX=/opt/boost_1_37_0 #echo $BOOST_PREFIX returned
nothing in
the
first place, so i figured it could help

LD_LIBRARY_PATH=/home/fs/gnuradio-git/uhd/host/build/lib/:/opt/uhd/lib/:/opt/boost_1_37_0/lib

#I also put both uhd paths in ld.so.conf and ran sudo ldconfig,
but it
didn't help
./bootstrap
./configure --with-boost=$BOOST_PREFIX  --enable-gr-uhd

Now following error showed up:
checking for UHD... no
gr-uhd requires libuhd 2.x.x
configure: error: Component gr-uhd has errors; stopping.

I did: find |grep libuhd and got:
./home/fs/gnuradio-git/uhd/host/build/lib/libuhd.so
./home/fs/gnuradio-git/uhd/host/build/lib/libuhd.so.002
./usr/local/lib/libuhd.so
./opt/uhd/lib/libuhd.so
./opt/uhd/lib/libuhd.so.002

so I added /opt/uhd/lib/ and
/home/fs/gnuradio-git/uhd/host/build/lib/
to
ld.so.conf and ran sudo ldconfig (as said above). I then also
tried to
set
LD_LIBRARY_PATH (see above again) but still the same error.
I also tried to git clone from
http://gnuradio.org/git/gnuradio.git(described<http://gnuradio.org/git/gnuradio.git%28described>in
[1]) instead of git://
gnuradio.org/gnuradio.git (described in [2])

I don't know what to do next and would appreciate any help (again). I
would
be really happy if we could get this going.

Fabian

[1] http://gnuradio.org/redmine/wiki/1/UbuntuInstall
[2] http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki





On Thu, Jan 20, 2011 at 5:13 PM, Josh Blum <address@hidden>
wrote:

And the (probably) critical part causing the error:
make[6]: *** Keine Regel vorhanden, um das Target »usrp_prims.cc«,
benötigt von »_usrp_prims_la-usrp_prims.lo«, zu erstellen. Schluss.
make[6]: *** No Rule given, for making Target »usrp_prims.cc«,
  needed by »_usrp_prims_la-usrp_prims.lo«.  Ending.


If you (or anyone else) got another hint on how to solve this i
would
be
really glad.

Sometimes autotools gets confused when there are many changes to the
build system. Try make distclean, and if not working: git clean -dfx
(wipes everything). and rebuild from scratch.

-Josh

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

_______________________________________________
Discuss-gnuradio mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
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




reply via email to

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