[Top][All Lists]

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

Re: [Discuss-gnuradio] Problems building Gnuradio on Cygwin

From: Stephane Fillod
Subject: Re: [Discuss-gnuradio] Problems building Gnuradio on Cygwin
Date: Tue, 14 Dec 2004 23:47:43 +0100
User-agent: Mutt/1.5.6+20040907i

On Mon, Dec 13, 2004 at 04:03:53PM -0500, Achilleas Anastasopoulos wrote:
> I am following the instructions to install gnuradio-core-2.3
> on cygwin (windows xp) and I get the following problem
> with make (using gcc/g++ 3.4.1)
> Any suggestions what might be wrong here?
> Thanks
> Achilleas
> h.Tpo -c gr_math.cc  -DPIC -o .libs/gr_math.o
> gr_math.cc: In function `int gr_isnan(double)':
> gr_math.cc:74: error: `isnan' is not a member of `std'

You will need at least the following patch, or simply edit config.h, and

diff -u -r1.1.1.1 lf_cxx.m4
--- config/lf_cxx.m4    10 Apr 2004 17:59:51 -0000
+++ config/lf_cxx.m4    14 Dec 2004 21:50:40 -0000
@@ -87,9 +87,9 @@
   AC_MSG_CHECKING(whether C++ has std::isnan)
   AC_TRY_COMPILE([#include <math.h>], [
-], [ AC_MSG_RESULT(yes) ],
-   [ AC_MSG_RESULT(no)
-     AC_DEFINE(CXX_HAS_STD_ISNAN,[],[Define if has std::isnan]) ])
+], [ AC_MSG_RESULT(yes)
+       AC_DEFINE(CXX_HAS_STD_ISNAN,[],[Define if has std::isnan]) ],
+   [ AC_MSG_RESULT(no) ])

   dnl Done with the portability checks
   dnl AC_LANG_POP([C++])

There's also a patch attached for src/lib/swig/Makefile.am in need of
"-no-undefined". This is a requirement of *win systems (DLL), but is
harmless to other systems. The py module also has a dependence on

Make sure also that fftw is compiled shared, otherwise, every library
depending on it will forced to be static.
The fftw release 3.0.1 from http://fftw.org needs to add "-no-undefined" in 
LDFLAGS of Makefile.am, and bootstrap it with -f option passed to uptodate 
libtool/autotools. Once built/installed, you should see some dll in the
bin subdir (note: they will need to be in PATH later on).

BOOST is no problem, you can download it from http://boost.org.

Under Cygwin, g++-3.4 is currently available, as well as python,
cppunit, pkg-config. Unfortunately, as of now, swig is not >= 1.3.22.
You can download it from http://swig.org, install, 
chmod +x SWIG-1.3.23/swig.exe, and pass SWIG=/your/path/SWIG-1.3.23/swig.exe
to gnuradio-core configure.
I'm seeing problems with swig 1.3.23, but I don't know yet if it's 
because -noruntime is not supported anymore or a problem on my tree.
I have to investigate.

Well, I haven't been trough all the way for CygWin/MinGW, but we're pretty
close to it.

Eric, do you still have the vmcircbuf snippet with MS Windows support?


Attachment: noundef.patch
Description: Text document

reply via email to

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