SWIG 1.3.31 now required on the trunk

We’ve decided to require SWIG 1.3.31 to compile the trunk.

We try to avoid upping the mininum rev level of any our dependencies,
but this one’s required for proper support of SWIG “directors”.
I believe that it also brings in support for Python 2.5, but I haven’t
tested that yet.

Sorry for any inconvenience this may bring.

The good news is that if your distribution doesn’t yet package SWIG
1.3.31, SWIG is very easy to build from source. It’s the normal
“./configure && make && sudo make install” dance.

Eric

On Thu, 2006-11-30 at 15:01 -0800, Eric B. wrote:

We’ve decided to require SWIG 1.3.31 to compile the trunk.

I’ve just checked this change into the trunk so as of r4045 if you don’t
have swig 1.3.31 or newer, ./configure will fail.

This does not apply to the release 3.0x branch.


Johnathan C., AE6HO
Corgan Enterprises LLC
[email protected]

On Thursday 30 November 2006 18:01, Eric B. wrote:

We’ve decided to require SWIG 1.3.31 to compile the trunk.

Really. This makes support on anything older than bleeding edge very
difficult.

We try to avoid upping the mininum rev level of any our dependencies,
but this one’s required for proper support of SWIG “directors”.

What do ‘directors’ do that GNUradio has to have? In other words, why
the
need? Just curious.

Sorry for any inconvenience this may bring.

Sorry for sounding less than thrilled at the thought of having to go
back to
the bad old days of multiple SWIG versions (thought I was over that once
I
got up to Fedora Core 5 from CentOS 4). It could be more than just an
inconvenience to some (depending upon how old their distribution is),
and
that’s why I’m curious why it has to be 1.3.But again, I’m just curious,
as I
didn’t see much discussion on the list prior to this (or I’m just blind
to
the messages, one).

Lamar Owen
Director of Information Technology
Pisgah Astronomical Research Institute
1 PARI Drive
Rosman, NC 28772
(828)862-5554
www.pari.edu

On Friday 01 December 2006 09:31, Eric B. wrote:

1.3.31, SWIG is very easy to build from source. It’s the normal
“./configure && make && sudo make install” dance.

Is this version backward compatible, e.g. will built the older versions?

cheerio Berndt

And for those who want rpms, particularaly Fedora Core people, I’ve got
binaries and source rpms at:

www.nd.edu/~ematlis/z.gnuradio

thanks,
eric

On Thu, Nov 30, 2006 at 06:22:30PM -0500, Lamar Owen wrote:

On Thursday 30 November 2006 18:01, Eric B. wrote:

We’ve decided to require SWIG 1.3.31 to compile the trunk.

Really. This makes support on anything older than bleeding edge very
difficult.

No, not very difficult. You do have to download and build SWIG 1.3.31.

We try to avoid upping the mininum rev level of any our dependencies,
but this one’s required for proper support of SWIG “directors”.

What do ‘directors’ do that GNUradio has to have? In other words, why the
need? Just curious.

They:

(1) allow Python to subclass C++ base classes with virtual functions,
(2) allow C++ code to transparently invoke Python code

This is used in gr_bin_statistics_f.{h,cc} and usrp_spectrum_sense.py
to allow C++ code to fire callbacks written in Python or C++.

See SWIG and Python for more info.

Sorry for any inconvenience this may bring.

Sorry for sounding less than thrilled at the thought of having to go back to
the bad old days of multiple SWIG versions (thought I was over that once I
got up to Fedora Core 5 from CentOS 4). It could be more than just an
inconvenience to some (depending upon how old their distribution is), and
that’s why I’m curious why it has to be 1.3.But again, I’m just curious, as I
didn’t see much discussion on the list prior to this (or I’m just blind to
the messages, one).

The problems that David Reed and others were seeing are fixed by using
SWIG 1.3.31. It is also required if anyone wants to use Python 2.5.

From the SWIG README:

What's New?
===========

SWIG-1.3.31 summary:
- Python modern classes regression fix

SWIG-1.3.30 summary:
- Python-2.5 support
- New language module: R
- Director support added for C#
- Numerous director fixes and improvements
- Improved mingw/msys support
- Better constants support in Guile and chicken modules
- Support for generating PHP5 class wrappers
- Important Java premature garbage collection fix
- Minor improvements/fixes in cffi, php, allegrocl, perl, chicken, 

lua, ruby,
ocaml, python, java, c# and guile language modules
- Many many other bug fixes

Eric