discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] gnuradio on osx 10.6.4


From: Michael Dickens
Subject: Re: [Discuss-gnuradio] gnuradio on osx 10.6.4
Date: Sun, 18 Jul 2010 20:18:01 -0600

Hi Rasyid - You have the "classic" problem that's been around for years now (you can search the GNU Radio archives for "Python.h" and get hits back to 2005). The problem is that autoconf generates the "test for Python.h" using C-code but tries to compile it using a Fortran compiler; "more recent" versions of autoconf fixed this issue (I'm using 2.65 and it works quite well; 2.66 is the latest release but it has some issues so I'd stay away from it for now).

I'd recommend upgrading 'autoconf' to a more recent version. Alternatively you can try the following, which may or not work, from the top-level GNU Radio directory:

* edit the file "config/gr_python.m4"
+ search for "AC_CHECK_HEADERS([Python.h]" ... there is just one instance of it.
 + insert as the line before: "AC_LANG_PUSH([C])"
 + insert as the line after that phrase ends: "AC_LANG_POP([C])"
 + the resulting code section should look like:
{{{
  CPPFLAGS="$CPPFLAGS $PYTHON_CPPFLAGS"
  C_LANG_PUSH([C])
  AC_CHECK_HEADERS([Python.h], [],
                   [AC_MSG_ERROR([cannot find usable Python headers])])
  AC_LANG_POP([C])
  CPPFLAGS="$python_save_CPPFLAGS"
}}}
 + save and exit the editor

* run bootstrap again in whatever fashion you do so.

* run configure again, and see if that works.

Good luck! - MLD




reply via email to

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