Building gnuradio with MinGW and Windows

Hi all,

I have built the gnuradio-3.0.2 tarball using MinGW under WinXP. During
this process, I encountered some issues that I thought I would be useful
feedback for the GNU Radio development team.

  • I could not build using the gnuradio-3.0 tarball, because there were
    some
    files missing (gr_add_vXX.h.t is the one that got me). I used the
    gnuradio-3.0.2 tarball.

  • In gnuradio-3.0.2/gr-video-sdl/src, comment out “#include
    <sys/ioctl.h>”
    in video_sdl_sink_s.cc and in video_sdl_sink_uc.cc. It does not appear
    that
    MinGW/MSYS provides ioctl.h, and these two files do not use ioctl calls
    anyway.

  • I didn’t bother to install tools to create HTML documentation files
    from
    XML files. This causes an error when doing “make install” for 2 of the
    gnuradio packages:

    1. In the makefile for gnuradio-3.0.2/usrp/doc, an error occurs in
      the
      install-data-local rule (approx. line 755). Since DOCBOOK_HTML_FILES is
      blank, the “for i in $(DOCBOOK_HTML_FILES)” statement causes a fatal
      error
      during “make install”.

    2. In the makefile for gnuradio-3.0.2/gr-trellis/doc, an error occurs
      in
      the install-data-local rule (approx. line 588). Since HTML_FILES is
      blank,
      the “for i in $(HTML_FILES)” statement causes a fatal error during “make
      install”.

  • I have put together some detailed instructions and notes during this
    process, based on some existing info out there, and updated with current
    info. I wouldn’t mind sharing this info. Where should I put it? On
    the
    wiki page at http://gnuradio.org/trac/wiki/WindowsInstall? If so, do I
    add
    to the info already there, or edit it? I’m a little hesitant to modify
    any
    info someone else added to the page.

I hope this feedback helps. Let me know if you need more info.

Patrick M.

Definitely modify the wiki, but keep in mind that there are multiple
ways to use unix software under windows, so it may make sense to have
separate wiki pages for MinGW vs cygwin, with the common info on a
common page.

3.0 is known buggy about leaving out those files, but good that you
found and used 3.0.2

  • In gnuradio-3.0.2/gr-video-sdl/src, comment out “#include
    <sys/ioctl.h>”
    in video_sdl_sink_s.cc and in video_sdl_sink_uc.cc. It does not
    appear that
    MinGW/MSYS provides ioctl.h, and these two files do not use ioctl
    calls
    anyway.

Please file a bug in trac about that.

I’m not sure about the doc issues, but a bug report is probably in
order.

Greg T. <[email protected]>

Patrick M. wrote:
I have built the gnuradio-3.0.2 tarball using MinGW under WinXP.
During this process, I encountered some issues that I thought I would be
useful feedback for the GNU Radio development team.

  • I didn’t bother to install tools to create HTML documentation files
    from XML files. This causes an error when doing “make install” for 2 of
    the gnuradio packages:

    1. In the makefile for gnuradio-3.0.2/usrp/doc, an error occurs in
      the install-data-local rule (approx. line 755). Since
      DOCBOOK_HTML_FILES is blank, the “for i in $(DOCBOOK_HTML_FILES)”
      statement causes a fatal error during “make install”.

    2. In the makefile for gnuradio-3.0.2/gr-trellis/doc, an error
      occurs in the install-data-local rule (approx. line 588). Since
      HTML_FILES is blank, the “for i in $(HTML_FILES)” statement causes a
      fatal error during “make install”.

This is a problem with MSYS bash 2.04; bash 3.1 does not have this
problem (at least not with MSYS 1.0.11).

  • I have put together some detailed instructions and notes during this
    process, based on some existing info out there, and updated with current
    info. I wouldn’t mind sharing this info. Where should I put it? On
    the wiki page at http://gnuradio.org/trac/wiki/WindowsInstall? If so,
    do I add to the info already there, or edit it? I’m a little hesitant
    to modify any info someone else added to the page.

WindowsInstall has an empty pointer to MingwInstallMain that I’ve been
planning to work on. I would be happy to have you do it or make it a
joint effort. (I have also been working on MinGW install issues, both
for the tarball and SVN releases.)

– Don W.

Greg T. wrote:

Please file a bug in trac about that.

I’m not sure about the doc issues, but a bug report is probably in order.

Greg, I submitted ticket #99 (http://gnuradio.org/trac/ticket/99), which
covers both the “#include <sys/ioctl.h>” issue and for the doc makefile
issue.

Don W. wrote:

Patrick M. wrote:

I have put together some detailed instructions and notes during this
process,

based on some existing info out there, and updated with current info. I
wouldn’t
mind sharing this info. Where should I put it? On the wiki page at
http://gnuradio.org/trac/wiki/WindowsInstall? If so, do I add to the
info already there,
or edit it? I’m a little hesitant to modify any info someone else added
to the page.

WindowsInstall has an empty pointer to MingwInstallMain that I’ve been
planning
to work on. I would be happy to have you do it or make it a joint effort.
(I have

also been working on MinGW install issues, both for the tarball and SVN
releases.)

Don, I saw the blank wiki page, so I added my info there. Hopefully it
is a
good starting point. Let me know what you think, or if I should make
changes.

Patrick M.

On Wed, Nov 15, 2006 at 04:37:31PM -0700, Patrick M. wrote:

Greg T. wrote:

Please file a bug in trac about that.

I’m not sure about the doc issues, but a bug report is probably in order.

Greg, I submitted ticket #99 (http://gnuradio.org/trac/ticket/99), which
covers both the “#include <sys/ioctl.h>” issue and for the doc makefile
issue.

Thanks!

FYI, in the future it would be better to submit two separate bugs,
since they’re not related (and could get fixed at different times, by
different people.)

Eric