Usplash

Wouter Stomp wouterstomp at gmail.com
Tue Jul 19 12:09:35 CDT 2005


> I get the following error when trying to make:
> 
> wouter at ubuntu-breezy-pc:~/Desktop/usplash$ make
> cc -Os -g -D_GNU_SOURCE -Wall -D_GNU_SOURCE -DBOGL_CFB_FB=1 -o
> pngtobogl.o -c pngtobogl.c
> pngtobogl.c:22:16: error: gd.h: Onbekend bestand of map
> pngtobogl.c: In function 'main':
> pngtobogl.c:80: error: 'gdImagePtr' undeclared (first use in this function)
> pngtobogl.c:80: error: (Elke niet-gedeclareerde naam wordt slechts één
> pngtobogl.c:80: error: keer vermeld voor elke functie waarin hij staat.)
> pngtobogl.c:80: error: syntax error before 'png'
> pngtobogl.c:117: error: 'png' undeclared (first use in this function)
> pngtobogl.c:117: let op: implicit declaration of function
> 'gdImageCreateFromPng'pngtobogl.c:123: let op: implicit declaration of
> function 'gdImageColorsTotal'
> pngtobogl.c:151: let op: implicit declaration of function 'gdImageGetPixel'
> pngtobogl.c:177: let op: implicit declaration of function 'gdImageRed'
> pngtobogl.c:178: let op: implicit declaration of function 'gdImageGreen'
> pngtobogl.c:179: let op: implicit declaration of function 'gdImageBlue'
> pngtobogl.c:192: let op: implicit declaration of function
> 'gdImageGetTransparent'
> make: *** [pngtobogl.o] Fout 1
> 
> (sorry it's a bit of a mix of Dutch and English, Onbekend bestand of
> map = unknown file or directory)
> 

Ok, fixed that myself by installing libgd-gif1 and libgd-gif1-dev. But
now the following error occurs when running make:

cc -Os -g -D_GNU_SOURCE -Wall -D_GNU_SOURCE -DBOGL_CFB_FB=1 -o
pngtobogl.o -c pngtobogl.c
pngtobogl.c: In function 'main':
pngtobogl.c:117: let op: implicit declaration of function
'gdImageCreateFromPng'pngtobogl.c:117: let op: assignment makes
pointer from integer without a cast
cc -Os -g -D_GNU_SOURCE -Wall -D_GNU_SOURCE -DBOGL_CFB_FB=1 -o
pngtobogl pngtobogl.o -lgd -lpng -lm
/usr/bin/ld: cannot find -lpng
collect2: ld gaf exit-status 1 terug
make: *** [pngtobogl] Fout 1

Wouter.



More information about the ubuntu-devel mailing list