discuss-gnuradio
[Top][All Lists]
Advanced

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

RE: [Discuss-gnuradio] question about import a new block in gnuradio-3.3


From: intermilan
Subject: RE: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0
Date: Wed, 17 Nov 2010 18:28:32 +0800

Hi Eric:
       thanks for your help. I figured the question out.

> Date: Tue, 16 Nov 2010 21:46:13 -0800
> From: address@hidden
> To: address@hidden
> CC: address@hidden
> Subject: Re: [Discuss-gnuradio] question about import a new block in gnuradio-3.3.0
>
> On Wed, Nov 17, 2010 at 10:48:11AM +0800, intermilan wrote:
> >
> > hi all:
> > I use the command create-gnuradio-out-of-tree-project to bulid a new block,and after that I use the following command:
> > ./bootstrap
> > ./configure
> > make
> > make check
> > sudo make install
> > Then I thought I had installed the new block.then I want to import the new block in the python to make sure it is successfully installed.Then I got this:
> >
> > address@hidden:~/gnuradio-3.3.0/test_example$ python
> > Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> > [GCC 4.4.3] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import test_example
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/usr/local/lib/python2.6/dist-packages/test_example/__init__.py", line 40, in <module>
> > from test_example_swig import *
> > File "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", line 24, in <module>
> > _test_example_swig = swig_import_helper()
> > File "/usr/local/lib/python2.6/dist-packages/test_example/test_example_swig.py", line 20, in swig_import_helper
> > _mod = imp.load_module('_test_example_swig', fp, pathname, description)
> > ImportError: libgnuradio-test_example.so.0: cannot open shared object file: No such file or directory
> >
> > My python is not very well,so I hope someone can help me figure it out.
> > Thank you in advance.
>
> Assuming you've got /usr/local/lib in /etc/ld.so.conf...
>
> $ sudo ldconfig
>
>
> Or
>
> $ export LD_LIBRARY_PATH=/usr/local/lib
>
>
> BTW, it's always helpful to tell us what OS and distribution you're using...
>
> Eric

reply via email to

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