GNU Radio on VMWare

I’m new so please excuse my ignorance if this question is too stupid or
has been discussed before.
I’m trying to install gnu radio on a fedora8 installation inside VMWare.
First, I wanted to know if that is even possible to do for development
(inside virtual machine development)?
Second, I tried installing gnu radio and when i tried to do
./configure

I get this:


The following components were skipped either because you asked not
to build them or they didn’t pass configuration checks:

usrp
gr-usrp
gr-audio-jack
gr-audio-osx
gr-audio-portaudio
gr-audio-windows
gr-comedi
gr-gpio
gr-radar-mono
gr-sounder
gr-utils

These components will not be built.

Which I’m not sure if should be getting in the first place.Is this
okay?if yes then how come when I make and install, and the run one of
the demos I get this:

[gnuradio@gnuradiohost audio]$ python dial_tone.py
Traceback (most recent call last):
File “dial_tone.py”, line 23, in
from gnuradio import gr
ImportError: No module named gnuradio
[gnuradio@gnuradiohost audio]$

could this be related?If no, then what does that first error means?

Thanks you

I believe that your OS (Fedora 8) is missing some prerequisites to
complete the installation successfuly. You are not supposed to have
those
messages.
You need to go thru
http://www.gnuradio.org/trac/browser/gnuradio/trunk/README , and pay
special attention to section “External dependencies”.

Another way to solve the problem is to scroll up the message generated
when you run ./configure and fix each failure mentioned by downloading
and
installing the appropriate prereq. Usually, the failure message will
tell
you what is missing and where you can find it.

Up front: Did you try installing via the instructions at <
http://www.gnuradio.org/trac/wiki/FedoraInstall

, or via some other method? The first few lines are somewhat
critical to making sure the correct dependencies are available.

On Mar 21, 2008, at 8:36 PM, Mr. mollasadra wrote:

I’m trying to install gnu radio on a fedora8 installation inside
VMWare.
First, I wanted to know if that is even possible to do for
development (inside virtual machine development)?

Yes, this is possible. I’ve just created one … haven’t tried it
with a USRP, but the software runs scripts that don’t require the USRP
hardware.

usrp

These components will not be built.

Which I’m not sure if should be getting in the first place.
Is this okay?
Yes, you might get this response. You could get the USRP and some
others to compile, by installing the correct dependencies. I would
guess that ‘sdcc’ isn’t in PATH correctly. See the FedoraInstall wiki
page.

could this be related?
If no, then what does that first error means?

I would guess 2 primary possibilities (could be both):

  1. “/usr/local/lib” is not in the ldconfig search path (e.g. like the
    issue with Debian / Ubuntu). You can correct this via the
    instructions found in the section “Broken libtool on Debian and
    Ubuntu” at the bottom of <
    http://www.gnuradio.org/trac/wiki/UbuntuInstall

.

  1. “/usr/local/lib/python2.5/site-packages” is not in your shell
    environment’s PYTHONPATH. This is addressed in the FedoraInstall wiki
    page found at this top of this email.

On Sunday 23 March 2008 04:44, Andrew R. wrote:

VMWare won’t work for you. (Alternatively, later versions of VMWare may


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

Another data point for those considering ways of running GnuRadio on
their
Windows box. I have managed to install andLinux
(http://www.andlinux.org) on
my XP box. This allowed me to compile and install GnuRadio 3.1.1 and the
trunk version of grc. It appears that I now have a working GnuRadio
installation!! :slight_smile: . Now to find the time to learn what makes it tick,
hopefully it plays nice with HPSDR hardware.

Cheers, Geoff.

First, I wanted to know if that is even possible to do for
development (inside virtual machine development)?

For what it’s worth, I installed GNU Radio on CentOS 4 under VMWare. I
successfully built it but (from by experience and from subsequent
reading of the VMWare documentation) it doesn’t support recording from a
microphone connected to the sound card.

If you’ve got a USRP, that may not be a problem for you. However, if,
like me, you’re hoping to use a scanner to connect via the sound card,
VMWare won’t work for you. (Alternatively, later versions of VMWare may
support the microphone. I was using a Beta of v2.)

In the end, I found it was trivial to install Ubuntu (Gutsy) for
dual-booting with my Windows XP system. This was definitely the easiest
way to get everything working. (I’d previously used the Cygwin
installation method but the performance had been unacceptably poor.)

Andrew

I knew it was something stupid.

After installing everything, (this being on a virtual machine) I forgot
to restart the operating system.

So after a simple restart, everything seems to work fine now.

The only remaining question is: how many of those modules that
./configure said it was skipping am I suppose to get

because they are unnecessary (depending on my operating system
requirements, sound card, etc) and how many were skipped

because of the lack of some dependencies?

Thanks for the help.

Well, That DID solve the problem (I hadn’t installed sdcc, so I did and
it worked).
but now I’m trying to connect the USRP to the VMWare via usb but when I
run a sample demo I’m getting this error:

$ python usrp_wfm_rec.py

Traceback (most recent call last):
File “usrp_wfm_rec.py”, line 25, in ?
from gnuradio import usrp
File “/usr/local/lib/python2.4/site-packages/gnuradio/usrp.py”, line
24, in ?
from usrpm import usrp_prims
File “/usr/local/lib/python2.4/site-packages/usrpm/usrp_prims.py”,
line 6, in ?
import _usrp_prims
ImportError: libusrp.so.0: cannot open shared object file: No such file
or directory

I did add a new RULE by creating the file /etc/udev/rules.d/90-usb.rules
and putting this in it:

SYSFS{idVendor}==“fffe”, SYSFS{idProduct}==“0002”, MODE=“0666”

so non-root users could access the USRP via USB.

Also when I do tail -f /var/log/messages I do get the usb:

[root@localhost sadraei]# tail -f /var/log/messages
Mar 25 02:14:40 localhost kernel: usb 1-1: USB disconnect, address 4
Mar 25 02:18:27 localhost kernel: usb 1-1: new full speed USB device
using uhci_hcd and address 5

Is this a recognized error?
I couldn’t find any good sources on setting the usrp with the the gnu
radio online
so I’m wondering if there is more to it than what I have done?

Thank you again for being so patient with my questions.

On Mar 26, 2008, at 10:04 AM, Mr. mollasadra wrote:

The only remaining question is: how many of those modules that ./
configure said it was skipping am I suppose to get
because they are unnecessary (depending on my operating system
requirements, sound card, etc) and how many were skipped
because of the lack of some dependencies?

Do you have a USRP attached to your computer that you’re trying to use?

I found, from the default install of FC8, that following the
FedoraInstall instructions got all of the modules to compile that
could be compiled (e.g. gr-audio-osx and -windows won’t compile, since
they’re not for Linux; -jack won’t build if you don’t have the jack
library; likewise for -comedi component).

Most of the rest of the components require USRP to build … I found
that all I needed to get USRP to compile was executing (as in the
FedoraInstall page):

export PATH=/usr/libexec/sdcc:$PATH

before running ./configure , in order to provide the needed into to
configure to find ‘sdcc’ and its cohorts. YMMV - MLD