Trouble building under cygwin

Hello all-

I’m new to GNU Radio, and was trying to get a development environment
set up
in windows using Cygwin, in order to play with a USRP.
I’m matching http://gnuradio.org/trac/wiki/CygwinInstallMain as closely
as I
can.

The trouble is occuring during the installation of wxPython. I know this
is
“just” a GUI environment, but I’d still like to get it working. I get to
step 6 of http://gnuradio.org/trac/wiki/wxPythonCygwin, and the make
fails,
complaining about the fact that the file
C:\cygwin\usr\src\wxPython-src-2.6.3.3\src\jpeg\jmorecfg.h, line 264
(included from
C:\cygwin\usr\src\wxPython-src-2.6.3.3\src\jpeg\jpeglib.h:26,
which is in turn included from C:\cygwin\usr\src\wxPython-
src-2.6.3.3\src\common\imagjpeg.cpp:46)

typedefs boolean as an int, whereas boolean was previously typedef’d as
an
unsigned char (by C:\cygwin\usr\include\w32api\rpcndr.h:52).

If I comment out the original typedef in rpcndr.h, make / make install
works
ok.

Is this normal? Is my hack likely to cause trouble down the line? If no,
you
might want to add a note about this issue on the wiki.

Cheers-
-Steven

The trouble is occuring during the installation of wxPython. I know this
is “just” a GUI environment, but I’d still like to get it working. I get
to step 6 of http://gnuradio.org/trac/wiki/wxPythonCygwin, and the make
fails, complaining about the fact that the file
C:\cygwin\usr\src\wxPython-src-2.6.3.3\src\jpeg\jmorecfg.h, line 264
(included from
C:\cygwin\usr\src\wxPython-src-2.6.3.3\src\jpeg\jpeglib.h:26, which is
in turn included from
C:\cygwin\usr\src\wxPython-src-2.6.3.3\src\common\imagjpeg.cpp:46)

typedefs boolean as an int, whereas boolean was previously typedef’d
as an unsigned char (by C:\cygwin\usr\include\w32api\rpcndr.h:52).

What version of w32api are you using (‘cygcheck -c w32api’ will tell
you)?
If I comment out the original typedef in rpcndr.h, make / make install
works ok.

Is this normal? Is my hack likely to cause trouble down the line? If
no, you might want to add a note about this issue on the wiki.
It looks like w32api has been changed since version 3.7 and others have
run into this problem, too. I expect your fix is fine—even if it
doesn’t work, GNU Radio isn’t likely to notice a problem in the jpeg
code. A better fix is probably to define HAVE_BOOLEAN in jmorecfg.h (or
in src/jpeg/jconfig.h).

You are right, I was using a newer w32api (3.8-1). Thanks for your help!
-Steven