AnsweredAssumed Answered

Cross-compiling new GNU Radio on ZC706

Question asked by zacharyr on Jul 6, 2016
Latest reply on Jul 8, 2016 by pcercuei

Hello,

 

I am trying to install a newer version of GNU Radio on my ZC706 device than what came with the compiled SD image 2015_R2. The GNU Radio version that came with 2015_R2 is 3.7.8, but I need 3.7.9 installed on my ZC706.

 

I have performed the following steps to try to update the built-in GNU Radio:

1. I first uninstalled the built-in GNU Radio by running a shell script (PREFIX=/usr instead of /usr/local): http://svn.tapr.org/repos_sdr_hpsdr/trunk/N5EG/GRC3.6/Gnuradio_remove

2. I then followed the steps on the GNU Radio website to cross-compile GNU Radio: http://gnuradio.org/redmine/projects/gnuradio/wiki/Embedded

3. The cross-compiled GNU Radio installed successfully using the make install DESTDIR=~/mydevice command.

 

The problem is when I run gnuradio-companion on the ZC706, I receive the error:

     Cannot import gnuradio.

   

     Is the python path environment variable set correctly?

     All OS: PYTHONPATH

 

     Is the library path environment variable set correctly?

     Linux: LD_LIBRARY_PATH

     Windows: PATH

     MacOSX: DYLD_LIBRARY_PATH

 

I set my environment variables in .bashrc as the following:

export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages/:/usr/lib/python2.7/dist-packages/:/usr/bin/X11/:/usr/local/lib/python2.7/dist-packages/

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/pkgconfig

export PATH=$PATH:/usr/bin

 

I am thinking the built-in GNU Radio was configured differently in a way that my uninstall script did not properly remove GNU Radio before I installed the new one, is there any way to fix this?

Outcomes