Problem configuring gr-video-sdl on Cygwin

Hey,

I have installed almost every component of gnuradio succesfully on
cygwin except gr-video-sdl.
I have already installed the sdl libraries but ./config
on gnuradio fails on gr-video-sdl.

I am attaching config.log

Any thoughts as to what is wrong?

Thanks,
Achilleas

Achilleas A. wrote:

Any thoughts as to what is wrong?

| #define PACKAGE_VERSION “”
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_SHM_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_MMAP 1
| #define HAVE_SCHED_SETSCHEDULER 1
| #define HAVE_IO_H 1
| #define HAVE_SRANDOM 1
| #define HAVE_SYS_TIME_H 1
| /* end confdefs.h. */
| main ()
| {
| return 0;
| ;
| return 0;
| }
configure:32057: result: gr-video-sdl requires library sdl, not found or failed test.
configure:32073: result: Not building component gr-video-sdl.

The programs config builds to check SDL functionality are not compiling;
it looks like there is some problem with Cygwin and alloca.h; looking
online as of October 2006,
http://lists.libsdl.org/pipermail/sdl-libsdl.org/2006-October/058471.html,

"ALLOCA Patch for SDL-1.2

…As alloca.h is not available on CYGWIN and MinGW32
it should not be checked there or it should be checked
with -mno-cygwin using…"

I would see if you can upgrade and/or downgrade your version of SDL to
fix the problem?

-Dan

Achilleas A. wrote:

Hey,

I have installed almost every component of gnuradio succesfully on
cygwin except gr-video-sdl.
I have already installed the sdl libraries but ./config
on gnuradio fails on gr-video-sdl.

I am attaching config.log

Any thoughts as to what is wrong?

The problem seems to be in:
conftest.c -lwinmm -L/usr/local/lib -lmingw32 -lSDLmain -lSDL
-mno-cygwin -mwindows >&5
In file included from /usr/local/include/SDL/SDL_main.h:26,
from /usr/local/include/SDL/SDL.h:28,
from conftest.c:106:
/usr/local/include/SDL/SDL_stdinc.h:165:22: alloca.h: No such file or
directory

This probably has to do with how SDL is compiled on your cygwin.
(Was it a cygwin buils or a mingw build (-mno-cygwin))
Cygwin has alloca.h, mingw has not.
I found this discussion using google:
http://blog.gmane.org/gmane.comp.lib.sdl/month=20061201

Greetings,
Martin