discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] PySwigObject error


From: cepope
Subject: Re: [Discuss-gnuradio] PySwigObject error
Date: Sat, 09 Jul 2005 17:48:41 -0400

In case its helpful, here's the entire output from the make install:

address@hidden swig]$ make install
if /home/base2it/gr/bin/swig -c++ -fvirtual -python
-I../../../src/lib/runtime -I../../../src/lib/general
-I../../../src/lib/filter -I../../../src/lib/io -I../../../src/lib/g72x
-I../../../src/lib/atsc -I../../../src/lib/omnithread
-I../../../src/lib/general -I../../../src/lib/filter
-I/home/base2it/gr/include    -I/usr/include/python2.3 -I. -MMD -MF
"gnuradio_swig_python.Td" -module gnuradio_swig_python -o
gnuradio_swig_python.cc gnuradio.i ;\
then mv -f "gnuradio_swig_python.Td" "gnuradio_swig_python.d"; else rm
-f "gnuradio_swig_python.Td"; exit 1; fi
make  install-am
make[1]: Entering directory `/home/base2it/gnuradio-core/src/lib/swig'
if /bin/sh ../../../libtool --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H
-I. -I. -I../../.. -I../../../src/lib/runtime -I../../../src/lib/general
-I../../../src/lib/filter -I../../../src/lib/io -I../../../src/lib/g72x
-I../../../src/lib/atsc -I../../../src/lib/omnithread
-I../../../src/lib/general -I../../../src/lib/filter
-I/home/base2it/gr/include    -I/usr/include/python2.3 -I.    -g -O2
-Wall -Woverloaded-virtual -pthread -MT gnuradio_swig_python.lo -MD -MP
-MF ".deps/gnuradio_swig_python.Tpo" -c -o gnuradio_swig_python.lo
gnuradio_swig_python.cc; \
then mv -f ".deps/gnuradio_swig_python.Tpo"
".deps/gnuradio_swig_python.Plo"; else rm -f
".deps/gnuradio_swig_python.Tpo"; exit 1; fi
mkdir .libs
 g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../src/lib/runtime
-I../../../src/lib/general -I../../../src/lib/filter
-I../../../src/lib/io -I../../../src/lib/g72x -I../../../src/lib/atsc
-I../../../src/lib/omnithread -I../../../src/lib/general
-I../../../src/lib/filter -I/home/base2it/gr/include
-I/usr/include/python2.3 -I. -g -O2 -Wall -Woverloaded-virtual -pthread
-MT gnuradio_swig_python.lo -MD -MP -MF .deps/gnuradio_swig_python.Tpo
-c gnuradio_swig_python.cc  -fPIC -DPIC -o .libs/gnuradio_swig_python.o
gnuradio_swig_python.cc:233: warning: 'swig_type_info*
SWIG_TypeDynamicCast(swig_type_info*, void**)' defined but not used
gnuradio_swig_python.cc:346: warning: 'void
SWIG_PropagateClientData(swig_type_info*)' defined but not used
gnuradio_swig_python.cc:829: warning: 'void*
SWIG_Python_MustGetPtr(PyObject*, swig_type_info*, int, int)' defined
but not used
gnuradio_swig_python.cc:843: warning: 'int
SWIG_Python_ConvertPacked(PyObject*, void*, size_t, swig_type_info*,
int)' defined but not used
/bin/sh ../../../libtool --mode=link --tag=CXX g++  -g -O2 -Wall
-Woverloaded-virtual -pthread   -o _gnuradio_swig_python.la -rpath
/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr -module
-avoid-version  gnuradio_swig_python.lo
../../../src/lib/libgnuradio-core.la  -lstdc++
g++ -shared -nostdlib
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crti.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtbeginS.o 
.libs/gnuradio_swig_python.o  -Wl,--rpath
-Wl,/home/base2it/gnuradio-core/src/lib/.libs -Wl,--rpath
-Wl,/home/base2it/gr/lib -L/home/base2it/gr/lib -pthread
../../../src/lib/.libs/libgnuradio-core.so
-L/usr/lib/gcc/i386-redhat-linux/3.4.3
-L/usr/lib/gcc/i386-redhat-linux/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtendS.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crtn.o  -Wl,-soname
-Wl,_gnuradio_swig_python.so -o .libs/_gnuradio_swig_python.so
creating _gnuradio_swig_python.la
(cd .libs && rm -f _gnuradio_swig_python.la && ln -s
../_gnuradio_swig_python.la _gnuradio_swig_python.la)
./gen-swig-bug-fix gnuradio_swig_python.cc gnuradio_swig_bug_workaround.h
make[2]: Entering directory `/home/base2it/gnuradio-core/src/lib/swig'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr" ||
mkdir -p -- "/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr"
 /bin/sh ../../../libtool --mode=install /usr/bin/install -c 
'_gnuradio_swig_python.la'
'/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr/_gnuradio_swig_python.la'
libtool: install: warning: relinking `_gnuradio_swig_python.la'
(cd /home/base2it/gnuradio-core/src/lib/swig; /bin/sh ../../../libtool 
--tag=CXX --mode=relink g++ -g -O2 -Wall -Woverloaded-virtual -pthread
-o _gnuradio_swig_python.la -rpath
/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr -module
-avoid-version gnuradio_swig_python.lo
../../../src/lib/libgnuradio-core.la -lstdc++ )
g++ -shared -nostdlib
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crti.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtbeginS.o 
.libs/gnuradio_swig_python.o  -Wl,--rpath -Wl,/home/base2it/gr/lib
-pthread -L/home/base2it/gr/lib -lgnuradio-core
-L/usr/lib/gcc/i386-redhat-linux/3.4.3
-L/usr/lib/gcc/i386-redhat-linux/3.4.3/../../.. -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/i386-redhat-linux/3.4.3/crtendS.o
/usr/lib/gcc/i386-redhat-linux/3.4.3/../../../crtn.o  -Wl,-soname
-Wl,_gnuradio_swig_python.so -o .libs/_gnuradio_swig_python.so
/usr/bin/install -c .libs/_gnuradio_swig_python.soT
/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr/_gnuradio_swig_python.so
/usr/bin/install -c .libs/_gnuradio_swig_python.lai
/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr/_gnuradio_swig_python.la
PATH="$PATH:/sbin" ldconfig -n
/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr
----------------------------------------------------------------------
Libraries have been installed in:
   /home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr" ||
mkdir -p -- "/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr"
 /usr/bin/install -c -m 644 'gnuradio_swig_python.py'
'/home/base2it/gr/lib/python2.3/site-packages/gnuradio/gr/gnuradio_swig_python.py'
Byte-compiling python modules...
gnuradio_swig_python.py
Byte-compiling python modules (optimized versions) ...
gnuradio_swig_python.py
test -z "/home/base2it/gr/include/gnuradio" || mkdir -p --
"/home/base2it/gr/include/gnuradio"
 /usr/bin/install -c -m 644 'gnuradio_swig_bug_workaround.h'
'/home/base2it/gr/include/gnuradio/gnuradio_swig_bug_workaround.h'
test -z "/home/base2it/gr/include/gnuradio/swig" || mkdir -p --
"/home/base2it/gr/include/gnuradio/swig"
 /usr/bin/install -c -m 644 'gnuradio.i'
'/home/base2it/gr/include/gnuradio/swig/gnuradio.i'
 /usr/bin/install -c -m 644 'shared_ptr.i'
'/home/base2it/gr/include/gnuradio/swig/shared_ptr.i'
make[2]: Leaving directory `/home/base2it/gnuradio-core/src/lib/swig'
make[1]: Leaving directory `/home/base2it/gnuradio-core/src/lib/swig'

----- Original Message -----
From: Clark Pope-TWC <address@hidden>
Date: Saturday, July 9, 2005 5:40 am
Subject: Re: [Discuss-gnuradio] PySwigObject error

> Recompile finally finished(~5 hours). No signs of errors anywhere 
> yet I
> still get the same error message whenever I run any of the Demos?
> 
> ----- Original Message ----- 
> From: "Clark Pope-TWC" <address@hidden>
> To: "Eric Blossom" <address@hidden>
> Cc: <address@hidden>
> Sent: Friday, July 08, 2005 8:30 PM
> Subject: Re: [Discuss-gnuradio] PySwigObject error
> 
> 
> > I'm using Swig 1.3.23. I originally had 1.3.25 as per KD7LMO but I
> > uninstalled and reinstalled 1.3.23.
> >
> > Recompiling gnuradio_swig_python.o now. I think you're right that 
> the> problem is somewhere around that. On my machine it takes 
> several hours for
> > this compile to finish? How long should it take? I assumed it was 
> just> taking a long time because I only have 128MB memory on this box.
> >
> > ----- Original Message ----- 
> > From: "Eric Blossom" <address@hidden>
> > To: <address@hidden>
> > Cc: <address@hidden>
> > Sent: Friday, July 08, 2005 8:32 PM
> > Subject: Re: [Discuss-gnuradio] PySwigObject error
> >
> >
> > > On Fri, Jul 08, 2005 at 07:41:27PM -0400, address@hidden wrote:
> > > > Hi,
> > > > I've mostly got gnuradio installed, at least the run_tests 
> file works
> in
> > > > the gnuradio-core directory. However, when I try to run any 
> of the
> > > > examples I get:
> > > >
> > > > address@hidden usrp]$ ./usrp_oscope.py -n1
> > > > RX d'board A: Basic Rx
> > > > RX d'board B: TV Rx
> > > > Traceback (most recent call last):
> > > >   File "./usrp_oscope.py", line 80, in ?
> > > >     main ()
> > > >   File "./usrp_oscope.py", line 76, in main
> > > >     app = stdgui.stdapp (app_flow_graph, "USRP O'scope")
> > > >   File
> > >
> > > [snip]
> > >
> > > >
> >
> "/home/base2it/gr/lib/python2.3/site-
> packages/gnuradio/gr/basic_flow_graph.p> y",
> > > > line 229, in _check_port
> > > >     if signature.max_streams () == -1: # infinite
> > > > AttributeError: 'PySwigObject' object has no attribute 
> 'max_streams'> > >
> > > > Any help is greatly appreciated.
> > > >
> > > > Thanks,
> > > > Clark Pope
> > > >
> > > > P.S. - I have an FC3 base install and I've followed the 
> install at the
> > > > KD7LMO site.
> > >
> > > Hmmm, this error is familiar but I don't recall the cause or cure.
> > >
> > > What version of swig are you using?
> > >
> > >   $ swig -version
> > >
> > > Assuming that your swig version is OK (1.3.23 or 1.3.24) then 
> another> > wild stab is:
> > >
> > >   $ cd gnuradio-core/src/lib/swig
> > >   $ make clean
> > >   $ make install
> > >
> > >
> > > Eric
> >
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden
> > http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]