LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2006, 02:30 PM   #1
swodniw
Member
 
Registered: Jan 2006
Posts: 35

Rep: Reputation: 16
making SDL_ttf


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: 
...

Last edited by swodniw; 05-02-2006 at 07:43 AM.
 
Old 05-04-2006, 01:35 PM   #2
swodniw
Member
 
Registered: Jan 2006
Posts: 35

Original Poster
Rep: Reputation: 16
Bump.
I could adjust the source to find the files needed, but this would still leave the problem which is causing this. Can anybody suggest anything?
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question/Problem with SDL_ttf program I made... RHLinuxGUY Programming 6 04-26-2006 11:38 PM
SDL_ttf e6767593 Linux - Software 3 05-12-2005 04:48 PM
SDL_ttf complains about freetype2 plz help LavaDevil94 Linux - Software 3 08-28-2004 05:41 AM
Making an OS... eam Programming 4 01-27-2004 03:46 AM
How to install SDL_ttf under slack9.1 preswang Linux - Software 0 10-28-2003 08:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration