hi Eric:
     I had install the gnuradio-3.3.0,and use the 
create-gnuradio-out-of-tree-projec test_example command to make a new block 
which is named test_example,
then I changed the test_example_square_ff.h/cc to test_example_add_ff.h/cc,and 
I also changed other files like Makefile.am.Then I use the following command to 
install the new block:
     ./bootstrap
     ./configure
     ./make
     ./sudo make install
    After that I thought I had installed the new block,then I write a simple 
file to test it which is named test.py.but after I run the file ,I got the 
following errors:

File "./test.py", line 4, in <module>
    import test_example
  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

Can you tell me the reason of these errors?  Thank you in advance.


> Date: Tue, 9 Nov 2010 12:57:29 -0800
> From: [email protected]
> To: [email protected]
> Subject: Re: [Discuss-gnuradio] question on howto write a new block
> 
> On Tue, Nov 09, 2010 at 03:23:35PM +0100, Martin Braun wrote:
> > On Tue, Nov 09, 2010 at 05:33:15PM +0800, intermilan wrote:
> > > hi all:
> > >      I am writing a new simple signal processing block following the 
> > > tutorial
> > > under the directory /gnuradio-3.2.2/gr-howto-write-a-block-3.2.2(there is 
> > > no
> > > gr-howto-write-a-block-3.2.2 at the beginning,and this one is I 
> > > downloaded and
> > > copied to this directory)and named 'howto_add_ff' block. I've created
> > > howto_add_ff.h and howto_add_ff.cc file under /gnuradio-3.2.2/
> > > gr-howto-write-a-block-3.2.2/src/lib.Then I modified howto.i and 
> > > Makefile.am in
> > > the same directory.
> > >    After that  I run the following command under the directory 
> > > /gnuradio-3.2.2/
> > > gr-howto-write-a-block-3.2.2:
> > >    ./bootstrap
> > >    ./configure 
> > >    make
> > >   Then I got a error  said "thers is no rules for "all-am" to creat the
> > > required target "howto_add_ff.h".STOP."( I translate the error into 
> > > english
> > > beacause I do no use engliah as the language of my Ununtu).
> > >    Can anyone tell me how to fix it?
> > 
> > You've probably not adapted the Makefiles properly.
> > Have a look where howto_square_ff.* is referenced (it's a couple of
> > places).
> > I recommend using gr_modtool.py (you can get it from
> > https://www.cgran.org/wiki/devtools), this automatically does all the
> > edits for you.
> > 
> > Cheers,
> > MB
> 
> I'd also suggest starting with 3.3.0 (or git master) instead of 3.2.2, and 
> use the
>  
>   $ create-gnuradio-out-of-tree-project <my-module-name>
> 
> command to get you started.
> 
> Eric
> 
> _______________________________________________
> Discuss-gnuradio mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
                                          
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to