usrp-users@lists.ettus.com

Discussion and technical support related to USRP, UHD, RFNoC

View all threads

problem adding a custom block to GRC

JD
Juan Daniel Fernandez Martinez
Fri, Oct 19, 2012 8:45 PM

Hi everyone,
We have been having many troubles adding a new block to GRC, the steps that we are doing are:

  1. We use gr-modtool to get the module
  2. We add a new block to the module
  3. We modify the .xml in grc and the .cc in lib
  4. we create the build directory and use "cmake", "make" and  "make install"

At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error:

Traceback (most recent call last):
File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module>
import howto
File "/usr/local/lib/python2.7/dist-packages/howto/init.py", line 45, in <module>
from howto_swig import *
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module>
_howto_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_howto_swig', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev

We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us.
Thanks for your help

best regards

Juan Daniel Fernandez M, Adriana Arteaga


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.

Hi everyone, We have been having many troubles adding a new block to GRC, the steps that we are doing are: 1. We use gr-modtool to get the module 2. We add a new block to the module 3. We modify the .xml in grc and the .cc in lib 4. we create the build directory and use "cmake", "make" and "make install" At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error: Traceback (most recent call last): File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module> import howto File "/usr/local/lib/python2.7/dist-packages/howto/__init__.py", line 45, in <module> from howto_swig import * File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module> _howto_swig = swig_import_helper() File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper _mod = imp.load_module('_howto_swig', fp, pathname, description) ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us. Thanks for your help best regards Juan Daniel Fernandez M, Adriana Arteaga ________________________________ 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.
JB
Josh Blum
Fri, Oct 19, 2012 8:52 PM

On 10/19/2012 01:45 PM, Juan Daniel Fernandez Martinez wrote:

Hi everyone,
We have been having many troubles adding a new block to GRC, the steps that we are doing are:

  1. We use gr-modtool to get the module
  2. We add a new block to the module
  3. We modify the .xml in grc and the .cc in lib
  4. we create the build directory and use "cmake", "make" and  "make install"

At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error:

Traceback (most recent call last):
File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module>
import howto
File "/usr/local/lib/python2.7/dist-packages/howto/init.py", line 45, in <module>
from howto_swig import *
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module>
_howto_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_howto_swig', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev

We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us.
Thanks for your help

It looks like the factory function for bridgev is declared in the header
but missing from the library.

-josh

best regards

Juan Daniel Fernandez M, Adriana Arteaga


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.


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

On 10/19/2012 01:45 PM, Juan Daniel Fernandez Martinez wrote: > Hi everyone, > We have been having many troubles adding a new block to GRC, the steps that we are doing are: > > 1. We use gr-modtool to get the module > 2. We add a new block to the module > 3. We modify the .xml in grc and the .cc in lib > 4. we create the build directory and use "cmake", "make" and "make install" > > At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error: > > Traceback (most recent call last): > File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module> > import howto > File "/usr/local/lib/python2.7/dist-packages/howto/__init__.py", line 45, in <module> > from howto_swig import * > File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module> > _howto_swig = swig_import_helper() > File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper > _mod = imp.load_module('_howto_swig', fp, pathname, description) > ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev > > We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us. > Thanks for your help > It looks like the factory function for bridgev is declared in the header but missing from the library. -josh > best regards > > Juan Daniel Fernandez M, Adriana Arteaga > > > > ________________________________ > > 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. > > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >
JB
Josh Blum
Fri, Oct 19, 2012 8:55 PM

On 10/19/2012 01:45 PM, Juan Daniel Fernandez Martinez wrote:

Hi everyone,
We have been having many troubles adding a new block to GRC, the steps that we are doing are:

  1. We use gr-modtool to get the module
  2. We add a new block to the module
  3. We modify the .xml in grc and the .cc in lib
  4. we create the build directory and use "cmake", "make" and  "make install"

At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error:

Traceback (most recent call last):
File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module>
import howto
File "/usr/local/lib/python2.7/dist-packages/howto/init.py", line 45, in <module>
from howto_swig import *
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module>
_howto_swig = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper
_mod = imp.load_module('_howto_swig', fp, pathname, description)
ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev

We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us.
Thanks for your help

If you post the code. Someone might be able to spot the issue. :-)

-josh

best regards

Juan Daniel Fernandez M, Adriana Arteaga


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.


USRP-users mailing list
USRP-users@lists.ettus.com
http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com

On 10/19/2012 01:45 PM, Juan Daniel Fernandez Martinez wrote: > Hi everyone, > We have been having many troubles adding a new block to GRC, the steps that we are doing are: > > 1. We use gr-modtool to get the module > 2. We add a new block to the module > 3. We modify the .xml in grc and the .cc in lib > 4. we create the build directory and use "cmake", "make" and "make install" > > At this point the block is in GRC, we can use it in a flow graph, we can generate the .py, but when the flow graph is executed we got the following error: > > Traceback (most recent call last): > File "/home/xuan/Desktop/probando_brigde/top_block.py", line 14, in <module> > import howto > File "/usr/local/lib/python2.7/dist-packages/howto/__init__.py", line 45, in <module> > from howto_swig import * > File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 26, in <module> > _howto_swig = swig_import_helper() > File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line 22, in swig_import_helper > _mod = imp.load_module('_howto_swig', fp, pathname, description) > ImportError: /usr/local/lib/python2.7/dist-packages/howto/_howto_swig.so: undefined symbol: _Z17howto_make_bridgev > > We look for the "undefined symbol: _Z17howto_make_bridgev" error but the answers are not clear to us. > Thanks for your help > If you post the code. Someone might be able to spot the issue. :-) -josh > best regards > > Juan Daniel Fernandez M, Adriana Arteaga > > > > ________________________________ > > 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. > > > > _______________________________________________ > USRP-users mailing list > USRP-users@lists.ettus.com > http://lists.ettus.com/mailman/listinfo/usrp-users_lists.ettus.com >