|
From: | André Selva |
Subject: | Re: [Discuss-gnuradio] New Block execution error |
Date: | Thu, 1 Mar 2012 13:50:07 -0300 |
On Thu, Mar 1, 2012 at 11:20 AM, André Selva <address@hidden> wrote:
I'm using autotools. And I checked many times, and all the Makefiles are updated correctly with the new block's information.
One strange point is that even if I delete all the references from the block from all the Makefiles, the problem still persist.
Att,Well, then I'm not too sure what else to tell you. There's obviously something wrong with how you've set up the block; that's really the only explanation. Are you absolutely sure you did everything correctly? What about the main .i file that includes "#include <yourheader.h>" and "%include "yourswig.i" files?TomSECOMP - Semana da Computação da Unicamp 20122012/2/29 Tom Rondeau <address@hidden>
On Wed, Feb 29, 2012 at 5:26 PM, André Selva <address@hidden> wrote:
Hi!
I develop a new block to my own library (called gr_my_divisorcamadas_ff) . The compilation runs successfully, but when I execute a flow graph with any block from the library, I got the following message:
Traceback (most recent call last):
File "/home/rt-dsp/Desktop/Howtowrite/gr-my-basic/top_block.py", line 14, in <module>
import gr_my
File "/usr/local/lib/python2.7/dist-packages/gr_my/__init__.py", line 40, in <module>
from gr_my_swig import *
File "/usr/local/lib/python2.7/dist-packages/gr_my/gr_my_swig.py", line 24, in <module>
_gr_my_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/gr_my/gr_my_swig.py", line 20, in swig_import_helper
_mod = imp.load_module('_gr_my_swig', fp, pathname, description)
ImportError: /usr/local/lib/libgnuradio-gr_my-3.3.0.so.0: undefined symbol: _ZTV23gr_my_divisorcamadas_ff
Even if I delete the reference from the new block in all make files and re-compile the library, the error still persist.
Any ideas?
Best Regards,
--
André F. B. Selva -We're going to need more information. Are you using cmake or autotools (Makefile.am) to do this? Are you sure you're editing the .cc, .h, and .i files, AND are you making sure that the relevant files in your build system are updated with the correct information?The error just sounds like you haven't gotten all of the files updated correctly.Tom
--
André F. B. Selva -Coordenador GeralCACo - Centro Acadêmico da Computação
gr_my_divisorcamadas_ff.cc
Description: Text Data
gr_my_divisorcamadas_ff.h
Description: Text Data
gr_my.i
Description: Binary data
gr_my_divisorcamadas_ff.i
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |