RE: [Discuss-gnuradio] question on howto write a new block

2010-11-15 Thread intermilan

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: e...@comsec.com
 To: discuss-gnuradio@gnu.org
 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
 Discuss-gnuradio@gnu.org
 http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
  ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


FW: [Discuss-gnuradio] question on howto write a new block

2010-11-10 Thread intermilan



From: tianxia...@hotmail.com
To: thilo.moeni...@googlemail.com
Subject: RE: [Discuss-gnuradio] question on howto write a new block
Date: Wed, 10 Nov 2010 16:50:53 +0800








Thank you all for the  reply.
 Now I try to install the gnuradio-3.3.0,and then I will try it the way Martins 
told me.

 Date: Tue, 9 Nov 2010 12:32:37 +0100
 Subject: Re: [Discuss-gnuradio] question on howto write a new block
 From: thilo.moeni...@googlemail.com
 To: tianxia...@hotmail.com
 
 Hi,
 
 this Message sounds like a Missing command or file 
 
 in which folder the error occurs?
 
 you can check these files:
 src/headerfile
 src/cc-file
 src/Makefile.am
 swig/Makefile.am
 swig/yourpakage.i
 swig/how_to_add_ff.i
 
 for the next progs you can use Martins gr_modtool... this tool adds a
 new block to your code and you wont forget an entry
 
 check it out:
 https://www.cgran.org/browser/projects/devtools
 
 greetings
 
 thilo
 
 2010/11/9 intermilan tianxia...@hotmail.com:
  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?
 
Thank you in advance
 
  ___
  Discuss-gnuradio mailing list
  Discuss-gnuradio@gnu.org
  http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
 
 
  ___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] question on howto write a new block

2010-11-09 Thread intermilan

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?

 
  Thank you in advance

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


Re: [Discuss-gnuradio] question on howto write a new block

2010-11-09 Thread Martin Braun
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

-- 
Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin Braun
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-3790
Fax: +49 721 608-6071
www.cel.kit.edu

KIT -- University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association



pgpOrz2kdVSxX.pgp
Description: PGP signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] question on howto write a new block

2010-11-09 Thread Eric Blossom
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
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio