Updating GNU Radio, UHD or PyBOMBS

Hi all,

I am new to all of this, so I’m looking for some guidance. I recently
setup
UHD and GNURadio using PyBOMBS on Ubuntu 14.04. I now want to do a git
pull
and update my stuff. I’m not sure what commands to execute after I do
the
git pull for each.

For example, I found two different recommendations for updating gnuradio
after a git pull

First way:

git pull

rm -Rf build

mkdir build

cd build

cmake …/

make
sudo make install

Second way:

git pull

cd build

make
sudo make install

Is the removal of the existing build directory and cmake command
necessary?

After executing git pull, what directory do I need to go to and commands
do
I need to run for PyBOMBS and UHD?

v/r,
Rich

Sometimes it’s safer to clear the build dir, usually it’s OK to leave
in. If you have any cmake variables set, you’ll need to reset them if
you clear the dir.

UHD is updated the same way. In all cases, it depends where you
installed your stuff.

pybombs can do all this for you, by the way: ./pybombs update

…although I don’t think this will update pybombs itself.

M

Thanks Martin, but I’m still unsure of this process.

  1. I tried using ./pybombs update, but it doesn’t look like it initiated
    a
    build process on anything. Did you mean to imply it would do that, or
    just
    the git pull process for gnuradio and uhd?

  2. There is no build directory in uhd, like there was in gnuradio. From
    the
    pybombs/src/uhd directory where do I need to be to execute make and sudo
    make install?

  3. There is also no build directory in pybombs, where should I execute
    make
    and sudo make install?

Thanks,
Rich

On Wed, Oct 29, 2014 at 1:18 PM, Martin B. [email protected]

On 10/29/2014 09:32 PM, Richard B. wrote:

Thanks Martin, but I’m still unsure of this process.

  1. I tried using ./pybombs update, but it doesn’t look like it initiated
    a build process on anything. Did you mean to imply it would do that, or
    just the git pull process for gnuradio and uhd?

Hm, I thought that’s what it would do. Maybe it just git pulls.

  1. There is no build directory in uhd, like there was in gnuradio. From
    the pybombs/src/uhd directory where do I need to be to execute make and
    sudo make install?

You sure? Maybe pybombs/src/uhd/host/build ?

  1. There is also no build directory in pybombs, where should I execute
    make and sudo make install?

That you just git pull. It’s pure Python, and doesn’t get installed, so
it just needs a build process.

M

Well, I can tell you that I deleted the gnuradio build directory and
then
executed ./pybombs update to see if it would start the build process. It
did not. As of now I’m not really sure what ./pybombs update does. The
wiki
leads me to believe it’s supposed to do the pull and build process, link
below to explanation of ./pybombs update.

http://gnuradio.org/redmine/projects/pybombs/wiki/Using

Unfortunately, the wiki also recommends that we don’t update each recipe
manually, because we could break a dependency. So at this point, I’m
still
not sure what I’m supposed to do to update my install when new versions
of
gnuradio or uhd come out. Can someone with experience in this flow chime
in
for me. Much appreciated.

Rich

On Wed, Oct 29, 2014 at 2:46 PM, Martin B. [email protected]

Just reinstall it. No hassle :slight_smile:

M

I’m still asking for help with this maintenance process. I tried the
‘./pybombs remove’ command to get rid of uhd and gnuradio as a test. I
didn’t get any error or warnings and it completed. When I looked in the
pybombs/src folder, both gnuradio and uhd folders still existed there. I
deleted them by hand. I then tried the ‘./pybombs install uhd’ command
to
reinstall uhd, but pybombs seems to think it’s installed.

I’m really at a loss as to how I’m supposed to do things here. I think
in
theory, pybombs would make all of this painless, but I’ve either done
something terribly wrong and screwed pybombs up at this point, or it’s
not
working as intended.

What should I do at this point to fresh install with pybombs? I checked
the
packages I have installed on my ubuntu and I don’t see gnuradio or uhd
in
the list, which is good. If I deleted the pybombs folder and start over
from there, would you expect a clean installation at that point? Is that
what Martin meant by “Just reinstall it”?

Thanks,
Rich

On Wed, Oct 29, 2014 at 4:06 PM, Martin B. [email protected]

Try running
Pybombs clean gnuradio
Pybombs clean uhd
And then installing

-Tim