Forum: GNU Radio swig error during compiling

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
85ffd97bae0e78056e1d06312744d7d1?d=identicon&s=25 feldmaus (Guest)
on 2009-01-13 14:51
(Received via mailing list)
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.
D0072e69d706bb3ca211d33a1b536e2c?d=identicon&s=25 Johnathan Corgan (Guest)
on 2009-01-13 18:36
(Received via mailing list)
On Tue, Jan 13, 2009 at 4:23 AM, feldmaus <feldmann_markus@gmx.de>
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
85ffd97bae0e78056e1d06312744d7d1?d=identicon&s=25 feldmaus (Guest)
on 2009-01-14 11:56
(Received via mailing list)
Johnathan Corgan <jcorgan <at> 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.
This topic is locked and can not be replied to.