Any GR MacOS X 10.5 Intel Users?

Anyone out there using GNU Radio on Mac OS X 10.5 for Intel? The PPC-
Mac seems to continue to work, but the Intel-Mac update to 10.5.5
looks like it breaks GR’s fusb code. So if anyone is using GNU Radio
on 10.5.5 for Intel successfully or not, I’d like to hear so I can
start debugging one way (GR’s fusb_darwin implementation) or the other
(my OSX 10.5.5 Intel-iMac install).

On a related note, it looks like SDCC 2.8.0 overcomes the compile bug
issue that’s plagued Intel-Mac GNU Radio users for a year or so now.
Initial testing looks like both the pre-compiled package and latest
MacPorts installs work the same when compiling the USRP code. This
again, if anyone is using Intel-Mac, I’d like to hear your experiences
using SDCC 2.8.0.

Thanks! - MLD

Hi Michael,

I tried to install GNU Radio on 10.5.5, but it didn’t work. Shortly
after the install, I had a HD crash, and thus have to start from
scratch at some point. I can write down what I am doing for others, if
that would be helpful?

One question that I remember I had during the install: Which python
should I use? While installing some of the port packages, port
automatically installed an additional python, and thus I had two
pythons, both 2.5, installed, and I think that this was one of the
conflicts that I had at the end. Since Mac OS X already comes with
2.5, I think port should not reinstall one, though how can I force
port to do so?

Cheers,

Thomas

On Tue, Sep 30, 2008 at 8:30 AM, Michael D. [email protected]
wrote:

is using Intel-Mac, I’d like to hear your experiences using SDCC 2.8.0.

Thanks! - MLD


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


“Don’t complain; Just work harder” - Randy Pausch

Thomas S., Ph.D. Candidate
Networked & Embedded Systems Laboratory (NESL)
University of California, Los A. (UCLA)

http://gresci.blogspot.com/ - Science articles on green technology

On Sep 30, 2008, at 11:50 AM, Thomas S. wrote:

I tried to install GNU Radio on 10.5.5, but it didn’t work. Shortly
after the install, I had a HD crash, and thus have to start from
scratch at some point. I can write down what I am doing for others, if
that would be helpful?

Can’t hurt; I’m always in favor of other OSX users providing input as
to how well GR / USRP is working for them, or that functionality broke
on the latest system update, or whatever. We’re testing GR / USRPs in
our labs on both PPC and Intel Macs, running 10.4 and 10.5, and it
really seems as though updating to 10.5.5 causes fusb to work
intermittently. Bad Apple …

One question that I remember I had during the install: Which python
should I use? While installing some of the port packages, port
automatically installed an additional python, and thus I had two
pythons, both 2.5, installed, and I think that this was one of the
conflicts that I had at the end. Since Mac OS X already comes with
2.5, I think port should not reinstall one, though how can I force
port to do so?

Here’s -much- more info than you asked for on how Python works on
OSX …

Mac OS X 10.4 comes with Python 2.3. 10.5 comes with 2.5. MacPorts
(and Fink) provide the latest 2.5.X release, which Apple generally
doesn’t even with system updates. I know from discussions with
MacPorts developers that they try to stay away from Apple’s pre-
installed packages as much as possible, relying on them only when
there is no other choice. Since Python can reasonably easily be
compiled / installed on OSX, with or without Framework, MacPorts makes
all Python packages dependent on their own version of Python (I tried
to convince them that it would be desirable to have a “+apple”
variable to use Apple’s provided Python, but none of the MP developers
liked that idea). MacPorts also includes a package called
“python_select” which allows choosing which version to use (Apple’s,
Fink’s, MacPort’s, self-installed, whatever).

Having multiple versions of Python installed is OK, so long as the
environment PATH and PYTHONPATH are set correctly to point to the same
Python version scripts. For example, if the first Python in the PATH
is 2.3, and the PYTHONPATH includes directories for 2.5, then that
will be a problem. I include in my ~/.bash_login file something like:

+++++++++

export PYTHON_VERSION=python -V 2>&1 | sed -e 's@\.@ @2' | awk '{ print $2 }'
export PYTHON_ROOT=which python | sed -e 's@/bin/python@@g'
PYTHONPATH=${PYTHON_ROOT}/lib/python${PYTHON_VERSION}/site-packages

for GNU Radio default prefix;

change “/usr/local” to reflect the correct configure prefix

if [ ${PYTHON_ROOT} != “/usr/local” ]; then
PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python${PYTHON_VERSION}/
site-packages
fi
export PYTHONPATH

+++++++++

which, of course, depends on the installed version of Python not
changing … else one would need to “source ~/.bash_login” to get
these environment variables updated. IIRC, for non-Framework installs
of Python, the default (intrinsic) PYTHONPATH includes ‘${PYTHON_ROOT}/
lib/python${PYTHON_VERSION}/site-packages’. For the Framework version
on OSX, this is NOT included by default because the Python binary
“knows” about the Framework install location and looks there instead.
Hence this particular part of the PYTHONPATH must be included on OSX.
I submitted a quick and simple patch to MacPorts for the default
Python configure script that added this path, but it was rejected.
Instead, they decided to link the ‘site-packages’ directories from the
Framework to the one above.

Hope that’s clearer than mud. - MLD

Hi Michael,

Just finished reinstalling GNU Radio on Mac OS X 10.5. Worked like a
charm and was very easy to do. The only difference to the guide that
one can find on the web is that now we need guile in addition to the
other prerequisites. following is my command sequence, and my
.bash_login:

############ .bash_login
export PATH=/opt/local/bin:$PATH
export PYTHON_VERSION=python -V 2>&1 | sed -e 's@\.@ @2' | awk '{ print $2 }'
export PYTHON_ROOT=which python | sed -e 's@/bin/python@@g'
PYTHONPATH=${PYTHON_ROOT}/lib/python${PYTHON_VERSION}/site-packages

for GNU Radio default prefix;

change “/usr/local” to reflect the correct configure prefix

if [ ${PYTHON_ROOT} != “/usr/local” ]; then
PYTHONPATH=${PYTHONPATH}:/usr/local/lib/python${PYTHON_VERSION}/site-packages
fi
export PYTHONPATH

#gnuradio stuff
export GR=$HOME/gr
export PKG_CONFIG_PATH=$GR/lib/pkgconfig:/opt/local/lib/pkgconfig
export CPATH=$GR/include:/opt/local/include
export LDFLAGS=“-L$GR/lib -L/opt/local/lib”

#######################

Commands to install GNU Radio:

  1. install darwin port and XCode
  2. sudo port install gawk subversion autoconf automake libtool
    pkgconfig swig boost cppunit fftw-3-single python_select py25-numpy
    py25-wxpython libusb sdcc guile
  3. svn co http://gnuradio.org/svn/gnuradio/trunk gnuradio
  4. Replace libtoolize with glibtoolize in bootstrap
  5. ./bootstrap
  6. ./configure
  7. make -j 4
  8. sudo make install

Cheers,

Thomas

On Tue, Sep 30, 2008 at 11:27 AM, Michael D. [email protected]
wrote:

both PPC and Intel Macs, running 10.4 and 10.5, and it really seems as
Here’s -much- more info than you asked for on how Python works on OSX …
developers liked that idea). MacPorts also includes a package called

export PYTHONPATH
Hence this particular part of the PYTHONPATH must be included on OSX. I
submitted a quick and simple patch to MacPorts for the default Python
configure script that added this path, but it was rejected. Instead, they
decided to link the ‘site-packages’ directories from the Framework to the
one above.

Hope that’s clearer than mud. - MLD


“Don’t complain; Just work harder” - Randy Pausch

Thomas S., Ph.D. Candidate
Networked & Embedded Systems Laboratory (NESL)
University of California, Los A. (UCLA)

http://gresci.blogspot.com/ - Science articles on green technology

I use SDCC 2.8.0 from macports. Seems to work without any problems.

On Sun, Oct 5, 2008 at 4:31 PM, Michael D. [email protected]
wrote:

  1. If you have SDCC 2.4.0 installed by my script, then you need to remove it
    sudo port upgrade sdcc
    some other USRP / USB transfer demo / example / application. If it works,
    then I think SDCC 2.8.0 on Intel-Mac is working. Thanks! - MLD

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


“Don’t complain; Just work harder” - Randy Pausch

Thomas S., Ph.D. Candidate
Networked & Embedded Systems Laboratory (NESL)
University of California, Los A. (UCLA)

http://gresci.blogspot.com/ - Science articles on green technology

Thomas - Thanks for the feedback; it looks from our testing as if
Apple’s 10.5.5 tweaked some internal USB parameters to tighten down
timing or something. Some USRPs’ USB transport is “on the sloppy
side” now compared to 10.5.4 (and previous), while others are not.
Really not sure what the issue is, but it seems as though it’s very
few folks with the issue so I’m not going to bother investigating
further.

Are you using SDCC 2.8.0 from MacPorts, or some other version? If the
latter, could you try the former? This is reversible if it doesn’t
work …

  1. If you have SDCC 2.4.0 installed by my script, then you need to
    remove it first; else go to (1):

curl -o sdcc-2.4.0-i386_rm.sh
http://www.nd.edu/~mdickens/GNURadio/sdcc-2.4.0-i386_rm.sh
chmod a+x sdcc-2.4.0-i386_rm.sh
sudo ./sdcc-2.4.0-i386_rm.sh

  1. now update MacPorts and install its SDCC:

sudo port sync
sudo port upgrade sdcc

  1. then go to your GNU Radio install trunk:

cd usrp
make clean
cd …
make
sudo make install

  1. then go and try the usrp benchmark (in gnuradio-examples/python/
    usrp) or some other USRP / USB transfer demo / example / application.
    If it works, then I think SDCC 2.8.0 on Intel-Mac is working. Thanks!
  • MLD

On Oct 5, 2008, at 10:40 PM, Thomas S. wrote:

I use SDCC 2.8.0 from macports. Seems to work without any problems.

Excellent … I think we have a winner in SDCC 2.8.0 for Intel- and
PPC-Mac, finally. I’ll update my install guide & script with the
corrected installation info, including guile and sdcc and a few others
that GRC now requires. - MLD