Toon posts:

[Mac OS X 10.6] GD compilen

Pagina: 1
Acties:

Verwijderd

Topicstarter
Beste tweakers,

Ik probeer voor een project gd te compilen op een installatie van Mac OS X Snow Leopard. Daarbij heb ik deze guide gevolgd: http://www.libgd.org/DOC_INSTALL_OSX

Dit resulteert echter in de volgende meldingen als ik het probeer te testen:

code:
1
2
3
4
5
./gdtest test/gdtest.png
libpng warning: Application was compiled with png.h from libpng-1.4.1
libpng warning: Application  is  running with png.c from libpng-1.2.41
gd-png:  fatal libpng error: Incompatible libpng version in application and library
Segmentation fault


Hier haal ik uit dat er een conflict tussen de standaard aanwezige versie van libpng en een eigen gecompilede versie van libpng (voor een installatie van imagemagick). Ik heb echter geen idee hoe ik dit probleem op moet lossen op dit moment. Kan iemand mij in de juiste richting wijzen?

Verwijderd

Topicstarter
Ik heb het ondertussen zelf op kunnen lossen :)

Ik heb in de terminal mijn PATH aangepast zodat /usr/local/bin niet meer in mijn PATH stond en toen opnieuw het configure/make proces uitgevoerd. Dat resulteert dan in het volgende resultaat bij het testen:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
./gdtest test/gdtest.png
Reference File has 5 Palette entries
%Initial Versions: OK
%GD->PNG File->GD: OK
%GD->PNG ptr->GD: OK
%GD->GD2 File->GD: OK
%GD->GD2 ptr->GD: OK
%GD->GD File->GD: OK
%GD->GD ptr->GD: OK
%GD Source: OK
%GD Sink: OK
%GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part)): WARNING images differ: WARNING - Probably OK
-GD2Part (gdtest_200_300_150_100.png, gdtest.gd2(part)): INFO number of pallette entries differ 5 Vs. 9
[Merged Image has 21 colours]
%Merged (gdtest.png, gdtest_merge.png): OK
Created test/gdtest.jpg successfully. Compare this image
to the input image manually. Some difference must be
expected as JPEG is a lossy file format.
NOTE: the WBMP output image will NOT match the original unless the original
is also black and white. This is OK!
Foreground index is 0
WBMP has 2 colors
WBMP colors are:
FFFFFF
000000
%WBMP test (gdtest.png, gdtest.wbmp): ERROR images differ: BAD
-WBMP test (gdtest.png, gdtest.wbmp): INFO number of pallette entries differ 5 Vs. 2
-WBMP test (gdtest.png, gdtest.wbmp): INFO actual colours of pixels differ


Wat in ieder geval een stuk beter is dan eerst :)