[maemo-developers] [maemo-developers] SDL application compile problem

From: Jussi Kukkonen jhkukkon at cc.hut.fi
Date: Fri Mar 17 10:54:10 EET 2006
Michael wrote:
> Hi,
> 
> I try to compile an existing SDL application for Nokia770. I setup a
> development environment as it's described in Maemo doc. The compilation
> breaks with error
> 
>    SDL_ttf.h: No such file or directory
> 
> Could somebody explain me how to install package SDL_ttf under scratchbox.
> 
> Thank in advanced.
> 

You probably do not have the -dev-library installed or you're not
telling the compiler where your header files are.

1. If you're missing sdl-ttf or sdl-ttf-dev, try installing the .debs
from indt.org* with dpkg or compile them yourself (this is not difficult
IIRC). If you compile, your best bet is to use debian sources and do
"dpkg-buildpackage" -- that way you can still install the libraries with
dpkg.

2. If you have them already, add "-I/usr/include/SDL/" to your compile
options


*) http://www.indt.org.br/maemo/repository/pool/main/s/sdl-ttf/

HTH,
-- 
Jussi Kukkonen
<jhkukkon at cc.hut.fi>

More information about the maemo-developers mailing list