discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Issues moving gr-modtool blocks between OSs


From: tzopik
Subject: Re: [Discuss-gnuradio] Issues moving gr-modtool blocks between OSs
Date: Thu, 10 Jan 2013 17:51:03 +0000

Tommy

You need to re-compile the source of the module in the gentoo computer because the libs and so many things is diferent in Gentoo vs Ubuntu
copy all project created by gr-modtool from ubuntu to gentoo and run in gentoo:

cd /path/your_blocks
rm build/ -rf
mkdir build
cd build
cmake ../
make
sudo make install



2013/1/10 Tommy Tracy II <address@hidden>
Dear Gnuradio Mailing List,

I created a gr-modtool block on my Ubuntu machine; it works well, but I want to run it on my Gentoo machine. At first, I thought I could just copy over the module in dist-packages, but that doesn't seem to work:

I copied my custom module from: /usr/local/lib/python2.7/dist-packages/tom
to (on my gentoo machine): /usr/lib/python2.7/site-packages/

I then tried an import and got the following error:
>>> import tom
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/tom/__init__.py", line 45, in <module>
    from tom_swig import *
  File "/usr/lib/python2.7/site-packages/tom/tom_swig.py", line 26, in <module>
    _tom_swig = swig_import_helper()
  File "/usr/lib/python2.7/site-packages/tom/tom_swig.py", line 22, in swig_import_helper
    _mod = imp.load_module('_tom_swig', fp, pathname, description)
ImportError: /usr/lib/python2.7/site-packages/tom/_tom_swig.so: wrong ELF class: ELFCLASS64

This indicates that I need to rebuild my module. Is there a way to build a 32-bit version of the module on a 64 bit machine?

                   Sincerely,
          Tommy James Tracy II
          PhD Student
High Performance Low Power Lab 
           University of Virginia


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




--
Cumprimentos,

José Quaresma

reply via email to

[Prev in Thread] Current Thread [Next in Thread]