Discussion and technical support related to USRP, UHD, RFNoC
View all threadsHi everyone,
I have a problem using custom blocks in GRC, I can make it appear in GRC but when I run the graph, I got this:
Traceback (most recent call last):
File "/home/xuan/Desktop/aplicacion_modulos_prueba/top_block.py", line 14, in <module>
import i2t_modulos
File "/usr/local/lib/python2.7/dist-packages/i2t_modulos/init.py", line 45, in <module>
from i2t_modulos_swig import *
File "/usr/local/lib/python2.7/dist-packages/i2t_modulos/i2t_modulos_swig.py", line 26, in <module>
_i2t_modulos_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/i2t_modulos/i2t_modulos_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_i2t_modulos_swig', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/i2t_modulos/_i2t_modulos_swig.so: undefined symbol: _Z21i2t_modulos_make_testi
I am working on creating new blocks in GNU radio. I used gr-modtools to archive that, (gr-modtools nm, gr-modtools add). After that, I modified the ".cc" in "lib" and the ".xml" in "grc". Then I create a directory named "build" and used "cmake .." and "make". Everything seamed to have worked fine, but when I go to ..../build/swig and use "make generate-makefile-swig" I got:
make: *** No rule to make target `generate-makefile-swig'. Stop.
Even tho, when I use "make install" on build, the module and the blocks are shown in GRC. I don't know if I'm missing something.
If anybody knows what is the thing that is not working, please let me know
best regards :)
Juan Daniel Fernandez Martinez
Este documento puede contener información privilegiada o confidencial. Por tanto, usar esta información y sus anexos para propósitos ajenos a los de la Universidad Icesi, divulgarla a personas a las cuales no se encuentre destinado este correo o reproducirla total o parcialmente, se encuentra prohibido en virtud de la legislación vigente. La universidad no asumirá responsabilidad sobre información, opiniones o criterios contenidos en este correo que no estén directamente relacionados con la Icesi. Si usted no es el destinatario autorizado o por error recibe este mensaje, por favor informe al remitente y posteriormente bórrelo de su sistema sin conservar copia del mismo.
On 10/18/2012 08:50 AM, Juan Daniel Fernandez Martinez wrote:
Hi everyone, I have a problem using custom blocks in GRC, I can make
it appear in GRC but when I run the graph, I got this:
Traceback (most recent call last): File
"/home/xuan/Desktop/aplicacion_modulos_prueba/top_block.py", line 14,
in <module> import i2t_modulos File
"/usr/local/lib/python2.7/dist-packages/i2t_modulos/init.py",
line 45, in <module> from i2t_modulos_swig import * File
"/usr/local/lib/python2.7/dist-packages/i2t_modulos/i2t_modulos_swig.py",
line 26, in <module> _i2t_modulos_swig = swig_import_helper() File
"/usr/local/lib/python2.7/dist-packages/i2t_modulos/i2t_modulos_swig.py",
line 22, in swig_import_helper _mod =
imp.load_module('_i2t_modulos_swig', fp, pathname, description)
ImportError:
/usr/local/lib/python2.7/dist-packages/i2t_modulos/_i2t_modulos_swig.so:
undefined symbol: _Z21i2t_modulos_make_testi
When swig generated the python module, it looked through the headers
listed in the .i file.
You probably have a class or function declared in the header that is 1)
either not exported into the library or 2) not present in the c++ file.
-josh
I am working on creating new blocks in GNU radio. I used gr-modtools
to archive that, (gr-modtools nm, gr-modtools add). After that, I
modified the ".cc" in "lib" and the ".xml" in "grc". Then I create a
directory named "build" and used "cmake .." and "make". Everything
seamed to have worked fine, but when I go to ..../build/swig and use
"make generate-makefile-swig" I got:
make: *** No rule to make target `generate-makefile-swig'. Stop.
FYI, I have never seen a target named generate-makefile-swig
-josh