Re: Cygwin install problem

Don - Thanks for the info. I tried this but initially had a problem
with the first export statement due to the space before the equal sign.
Apparently that’s not allowed. After that, configure went ok but I got
the following problem during make:

g++: I/usr/local/include/SDL: No such file or directory
In file included from video_sdl.cc:3585:
video_sdl_sink_uc.h:28:17: SDL.h: No such file or directory
In file included from video_sdl.cc:3585:
video_sdl_sink_uc.h:75: error: ISO C++ forbids declaration of
SDL_Surface' with no type video_sdl_sink_uc.h:75: error: expected;’ before ‘’ token
video_sdl_sink_uc.h:76: error: ISO C++ forbids declaration of
SDL_Overlay' with no type video_sdl_sink_uc.h:76: error: expected;’ before '
’ token
video_sdl_sink_uc.h:77: error: SDL_Rect' does not name a type In file included from video_sdl.cc:3586: video_sdl_sink_s.h:75: error: ISO C++ forbids declaration ofSDL_Surface’ with
no type
video_sdl_sink_s.h:75: error: expected ;' before '*' token video_sdl_sink_s.h:76: error: ISO C++ forbids declaration ofSDL_Overlay’ with
no type
video_sdl_sink_s.h:76: error: expected ;' before '*' token video_sdl_sink_s.h:77: error:SDL_Rect’ does not name a type
make[4]: *** [video_sdl.lo] Error 1
make[4]: Leaving directory /usr/src/gnuradio-3.1.2/gr-video-sdl/src' make[3]: *** [all] Error 2 make[3]: Leaving directory/usr/src/gnuradio-3.1.2/gr-video-sdl/src’
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory /usr/src/gnuradio-3.1.2/gr-video-sdl' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory/usr/src/gnuradio-3.1.2’
make: *** [all] Error 2

Any suggestions?

Thanks again,

Rob


Don W. wrote:

Rob Walker wrote:

I have a working version of GNU Radio 3.0.3 on a Cygwin system and
just tried >to install 3.1.2. I followed the instructions on the wiki
page and configure went >ok but I got the following error message
during the make:

In file included from /usr/include/python2.5/Python.h:57,
from video_sdl.cc:129:
/usr/include/python2.5/pyport.h:230:24: sys/select.h: No such file or
directory
When building under Cygwin, the SDL package specifies flags to build
native >Windows code (using MinGW include files) without the Cygwin
compatibility >library. This should work except that the flags used
(-mno-cygwin, in particular) >are stored in sdl.pc (the pkg-config
configuration file) and picked up by GNU >Radio. When these flags are
used to build the Python extension module, they >prevent
Cygwin-specific include files (e.g., <sys/select.h>) used by Python.h
from being found.

In essence, ./configure is determining what libraries are available on
one system(Cygwin) while the flags read by pkg-config for SDL are
specifying flags for a different system (native Windows, using MinGW
include files). (Note that the actual conflict here comes from
pyconfig.h, which should agree with ./configure as to what include
files are available.)

A possible workaround for this case is to override the SDL flags in
the pkg-config file:

cd gnuradio-3.1.2
export SDL_CFLAGS =I/usr/local/include/SDL
export SDL_LIBS=-lSDL
./configure …

This compiles and links without errors, but I haven’t been able to
test whether gr-video-sdl works or if SDL’s opting to bypass the
Cygwin library causes problems for this application.

Is there a better solution? Should SDL be putting flags like
-mno-cygwin in sdl.pc?

– Don W.


Rob Walker
Crane Division, Naval Surface Warfare Center (NSWC Crane)
Harnessing the Power of Technology for the Warfighter
300 Highway 361
Crane, IN 47522-5001
Ph: (812) 854-3921 (DSN 482)
Cell: (812) 617-1217
Email: [email protected]


Sent from my BlackBerry Wireless Handheld

Don - Thanks for the info. I tried this but initially had a problem with
the first export statement due to the space before the equal sign.
Apparently that’s not allowed. After that, configure went ok but I got
the following problem during make:

g++: I/usr/local/include/SDL: No such file or directory
In file included from video_sdl.cc:3585:
video_sdl_sink_uc.h:28:17: SDL.h: No such file or directory
[…]

Sorry about that. The first line got garbled. Instead of

export SDL_CFLAGS =I/usr/local/include/SDL

it should read:

export SDL_CFLAGS=-I/usr/local/include/SDL

(no space, but with “-”).

– Don W.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs