Swig error during compiling


#1

Hi All,

i think there is an misconfiguration in the swig package ?!
I did the following:
/configure --enable-gr-wxgui --enable-grc --enable-usrp --enable-gr-usrp
–enable-gr-audio-alsa --enable-gnuradio-examples --enable-gnuradio-core
–enable-gr-audio-oss --prefix=/usr
make
checkinstall (like make install)

and got the error:
test -z “/usr/lib/python2.6/site-packages/gnuradio/gr” || /bin/mkdir -p
“/usr/lib/python2.6/site-packages/gnuradio/gr”
/bin/sh …/…/…/…/libtool --mode=install /usr/bin/install -c
‘_gnuradio_swig_py_runtime.la’
‘/usr/lib/python2.6/site-packages/gnuradio/gr/_gnuradio_swig_py_runtime.la’
libtool: install: error: cannot install `_gnuradio_swig_py_runtime.la’
to a directory not ending in
/usr/local/lib/python2.6/site-packages/gnuradio/gr

when i change the --prefix=/usr to --prefix=/usr/local then i get
problems, like can not find lib …

I think on Suse 11 i need the --prefix=/usr ?

Any Idea ?

I got the sources from the svn, Thursday last week.


#2

On Tue, Jan 13, 2009 at 4:23 AM, feldmaus removed_email_address@domain.invalid
wrote:

libtool: install: error: cannot install `_gnuradio_swig_py_runtime.la’
to a directory not ending in
/usr/local/lib/python2.6/site-packages/gnuradio/gr

In the past when we’ve seen this error, it is when there is a previous
build in the source tree that used a different prefix. In other
words, if you run configure with a prefix=/usr/local (or let it be the
default), do the compile, then go back and re-run configure with a
different prefix, you get the above. The solution is to run ‘make
distclean’ in between, to remove all traces of the previous compile.

Also, there hasn’t been any extensive testing of GNU Radio with Python
2.6. I’m extremely interested in how that works for you.

-Johnathan


#3

Johnathan C. <jcorgan corganenterprises.com> writes:

default), do the compile, then go back and re-run configure with a
different prefix, you get the above. The solution is to run ‘make
distclean’ in between, to remove all traces of the previous compile.
Thanks.
Now i am a step further.
I removed the old gnuradio
make uninstall
rm -r gnuradio/
copy new svn Sources.

That worked for me.