Hi,

Keyman Nets <[EMAIL PROTECTED]> writes:

> Well i can compile every kind of DirectFB app except those who'll
> load a object like fonts or images.  When i try to compile this kind
> of app, i get:
> 
> keyman@fastdebian:~/direcfb_force/> gcc `pkg-config
> --cflags directfb` -o image image.c `pkg-config --libs directfb`
> image.c: In function `main':
> image.c:85: `DATADIR' undeclared (first use in this function)
> image.c:85: (Each undeclared identifier is reported only once
> image.c:85: for each function it appears in.)
> image.c:85: parse error before string constant

you need to add a define for DATADIR to the code or pass it on
the compiler command-line like this:

 gcc -DDATADIR=\"/whatever/directory/\" `pkg-config ...

> I have a dir called data inside this dir, but it seens that DirectFB
> cannot find it.  Are there any other option in the comand line that
> i have to pass??  Am I missing something??  I tryied it in the
> DFBTutorials and i had the same error, any ideas??

you should use (or at least have a look at) the generated Makefiles
from the tutorials tarball. I have recently linked the tarball to
the tutorials page on directfb.org.


Salut, Sven


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to