discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Ubuntu make error -> Unable to open file gnuradio


From: Fabian Uehlin
Subject: Re: [Discuss-gnuradio] Ubuntu make error -> Unable to open file gnuradio_swig_py_runtime.py
Date: Tue, 3 Feb 2009 19:18:24 +0100


Am 03.02.2009 um 18:54 schrieb Michael Dickens:

On Feb 3, 2009, at 12:33 PM, Fabian Uehlin wrote:
if /usr/bin/swig -c++ -fvirtual -python -modern -keyword -w511 - outdir -DOMNITHREAD_POSIX=1 -I/usr/include -
[snip]
Unable to open file -DOMNITHREAD_POSIX=1/ gnuradio_swig_py_runtime.py: No such file or directory
make[5]: *** [gnuradio_swig_py_runtime.cc] Error 1
make[5]: Leaving directory `/home/openbts/Desktop/gnuradio/gnuradio- core/src/lib/swig'

What's the problem? I have upgraded to swig version 1.3.38, the other packages are the normal Ubuntu versions of it.

$(builddir) isn't being set (properly? not at all?) by autotools ... the SWIG arguments (including "-outdir $(builddir)") are in the top- level Makefile.common:66 , so if you look in gnuradio-core/src/lib/ swig/Makefile , you should find the line "builddir = ." if autotools are working.
In gnuradio-core/src/lib/swig/Makefile
there is no line
builddir = .
I only found these lines which could be interesting?
# swig flags
# -w511 turns off keyword argument warning
# "-outdir $(builddir)" writes all generated output files to
#   the local builddir (which should always be '.')
SWIG_PYTHON_FLAGS = -fvirtual -python -modern -keyword \
        -w511 -outdir $(builddir)


If you go back to SWIG 1.3.36 (or whatever the OS provides by default), does compiling work?
No, I had 1.3.35 and the same error occurs.

If not, try editing Makefile.common and changing that particular $ (builddir) to "." (without the quotes, just the period). - MLD
In gnuradio/Makefile.common there is no line with "builddir"
There is only:
# swig flags
# -w511 turns off keyword argument warning
# "-outdir $(builddir)" writes all generated output files to
#   the local builddir (which should always be '.')
SWIG_PYTHON_FLAGS = -fvirtual -python -modern -keyword \
        -w511 -outdir $(builddir)

Regards -Fabian-




reply via email to

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