I have installed cygwin on a windows box and build and installed sdl with no probs, yet i can not make sdl_ttf.
The first two errors I get are:
Quote:
SDL_ttf.c:31:20: alloca.h: No such file or directory
SDL_ttf.c:42:22: ft2build.h: No such file or directory
|
Now both of these headers are in /usr/include so it's not like I dont have them. I edited the cygwin/etc/profile and added the "/usr/include" path but this makes no difference to the errors.
Quote:
PATH=/usr/include:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH
export PATH
|
Anybody got any ideas of how to fix this?
thanks.
ok there some of the output from configure and make, you can see it does look in usr/include and checks theres a valid alloca
Code:
$ configure
...
checking for a BSD-compatible install... /usr/bin/install -c
checking for working alloca.h... yes
checking for alloca... yes
checking for freetype-config... /usr/bin/freetype-config
checking for sdl-config... /usr/local/bin/sdl-config
checking for SDL - version >= 1.2.4... yes
checking for OpenGL support... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating SDL_ttf.spec
config.status: executing depfiles commands
Code:
$ make
if /bin/sh ./libtool --mode=compile gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"
\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKA
GE=\"SDL_ttf\" -DVERSION=\"2.0.7\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_
SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRING
S_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -
DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I. -I. -g -O2 -I/usr/include/freetype2 -I
/usr/local/include/SDL -Dmain=SDL_main -I/usr/include/mingw -DWIN32 -Uunix -mno-
cygwin -DHAVE_OPENGL -MT SDL_ttf.lo -MD -MP -MF ".deps/SDL_ttf.Tpo" -c -o SDL_tt
f.lo SDL_ttf.c; \
then mv -f ".deps/SDL_ttf.Tpo" ".deps/SDL_ttf.Plo"; else rm -f ".deps/SDL_ttf.Tp
o"; exit 1; fi
mkdir .libs
gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE
_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"SDL_ttf\" -DVERSION=\"2.0.7\"
-DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHA
VE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_ST
DINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -I
. -I. -g -O2 -I/usr/include/freetype2 -I/usr/local/include/SDL -Dmain=SDL_main -
I/usr/include/mingw -DWIN32 -Uunix -mno-cygwin -DHAVE_OPENGL -MT SDL_ttf.lo -MD
-MP -MF .deps/SDL_ttf.Tpo -c SDL_ttf.c -DPIC -o .libs/SDL_ttf.o
SDL_ttf.c:31:20: alloca.h: No such file or directory
SDL_ttf.c:42:22: ft2build.h: No such file or directory
SDL_ttf.c:43:10: #include expects "FILENAME" or <FILENAME>
SDL_ttf.c:44:10: #include expects "FILENAME" or <FILENAME>
SDL_ttf.c:45:10: #include expects "FILENAME" or <FILENAME>
In file included from SDL_ttf.c:51:
/usr/include/freetype2/freetype/internal/ftobjs.h:30:10:
...