[Mapserver-users] GD Library compile problem...

Phil Maskell maskellp at ntlworld.com
Tue Oct 14 06:45:20 EDT 2003


This is a multi-part message in MIME format.

------=_NextPart_000_006C_01C39248.A5845680
Content-Type: text/plain;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I am currently trying to connect to MapServer via a Java Servlet, I am
hoping to use Java MapScript.
=20
For me to test the Java MapScript does anyone know of a site with this
and the windows dll compiled for MapServer 4.0?
=20
As at present I can=92t find a precompiled Java version of MapServer 4.0
to test with I am trying to compile MapServer with the Java support. Up
until now I have used the CGI precompiled win32 version for testing.
=20
To start with I am trying to compile all of the libraries etc...
=20
I think I am getting somewhere; this open Source project set-up is a
very steep learning curve, which doesn't help as I'm new to Unix/Linux
and C++.
=20
I have compiled gdal-1.1.9 with ECW support, this all seemed fine, I
have yet to find out if this works.
=20
I am now trying to compile gd-2.0.15(with gif) from HYPERLINK
"http://downloads.rhyme.com.au/gd/"http://downloads.rhyme.com.au/gd/ . I
also want to add PNG to give more flexibility in the future so I have
downloaded and compiled zlib and libpng, the question I have is using
cygwin I run ./configure --with-png=3Dlibpng with the dir libpng having =
an
include (with png.h) dir and a lib (with libpng13.lib) dir in the gd
dir. I get the following from the configure:
=20
checking for libpng-config... no
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for png_create_read_struct in -lpng... no
configure: WARNING: libpng is required - see HYPERLINK
"http://www.libpng.org/pub/png/"http://www.libpng.org/pub/png/ checking
for freetype-config... no checking for FT_Init_FreeType in -lfreetype...
no
configure: WARNING: not found - disabling freetype support checking
freetype/freetype.h usability... no checking freetype/freetype.h
presence... no checking for freetype/freetype.h... no checking for
jpeg_set_defaults in -ljpeg... no checking for XpmReadFileToXpmImage in
-lXpm... no
=20
** Configuration summary for gd 2.0.15:
=20
   Support for PNG library:          no
   Support for JPEG library:         no
   Support for Freetype 2.x library: no
   Support for Xpm library:          no
=20
It seems to be finding the png.h, but is having problems with
png_create_read_struct.
=20
Any help or ideas would be greatfully received as I feel like I am out
of my depth at the moment.
=20
Thanks in advance.
=20
Phil Maskell.
=20
=20

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003
=20

------=_NextPart_000_006C_01C39248.A5845680
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DWindows-1252">


<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 10">
<meta name=3DOriginator content=3D"Microsoft Word 10">
<link rel=3DFile-List href=3D"cid:filelist.xml at 01C39248.A548D420">
<!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>130</w:Zoom>
  <w:SpellingState>Clean</w:SpellingState>
  <w:GrammarState>Clean</w:GrammarState>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:Compatibility>
   <w:BreakWrappedTables/>
   <w:SnapToGridInCell/>
   <w:ApplyBreakingRules/>
   <w:WrapTextWithPunct/>
   <w:UseAsianBreakRules/>
  </w:Compatibility>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]-->
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{mso-style-parent:"";
	margin:0cm;
	margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:12.0pt;
	font-family:"Times New Roman";
	mso-fareast-font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;
	text-underline:single;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;
	text-underline:single;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	mso-style-noshow:yes;
	mso-ansi-font-size:10.0pt;
	mso-bidi-font-size:10.0pt;
	font-family:Arial;
	mso-ascii-font-family:Arial;
	mso-hansi-font-family:Arial;
	mso-bidi-font-family:Arial;
	color:windowtext;}
span.SpellE
	{mso-style-name:"";
	mso-spl-e:yes;}
span.GramE
	{mso-style-name:"";
	mso-gram-e:yes;}
@page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	mso-header-margin:35.4pt;
	mso-footer-margin:35.4pt;
	mso-paper-source:0;}
div.Section1
	{page:Section1;}
-->
</style>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";}
</style>
<![endif]-->
</head>

<body lang=3DEN-GB link=3Dblue vlink=3Dpurple =
style=3D'tab-interval:36.0pt'>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>Hi,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>I am currently trying to connect to MapServer via a =
Java <span
class=3DGramE>Servlet,</span> I am hoping to use Java =
MapScript.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>For me to test the Java MapScript does anyone know of =
a site
with this and the windows dll compiled for MapServer =
4.0?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>As at present I can=92t find a precompiled Java =
version
of MapServer 4.0 to test with I am trying to compile MapServer with the =
Java
support. Up until now I have used the CGI precompiled win32 version for
testing.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>To start with I am trying to compile all of the =
libraries
etc...<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>I think I am getting somewhere; this open Source =
project
set-up is a very steep learning curve, which doesn't help as I'm new to
Unix/Linux and C++.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>I have compiled gdal-1.1.9 with ECW support, this all =
seemed
fine, <span class=3DGramE>I</span> have yet to find out if this =
works.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>I am now trying to compile gd-2.0.15(with gif) from =
<a
href=3D"http://downloads.rhyme.com.au/gd/">http://downloads.rhyme.com.au/=
gd/</a>
. I also want to add PNG to give more flexibility in the future so I =
have
downloaded and compiled zlib and libpng, the question I have is using =
cygwin I
run ./configure --with-png=3Dlibpng with the dir libpng having an =
include (with
png.h) dir and a lib (with libpng13.lib) dir in the gd dir. I get the =
following
from <span class=3DGramE>the =
configure</span>:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>checking</span></font></span=
><font
face=3DArial><span style=3D'font-family:Arial'> for libpng-config... =
no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>checking</span></font></span=
><font
face=3DArial><span style=3D'font-family:Arial'> png.h usability... =
yes<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>checking</span></font></span=
><font
face=3DArial><span style=3D'font-family:Arial'> png.h presence... =
yes<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>checking</span></font></span=
><font
face=3DArial><span style=3D'font-family:Arial'> for png.h... =
yes<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>checking</span></font></span=
><font
face=3DArial><span style=3D'font-family:Arial'> for =
png_create_read_struct in
-lpng... no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><span class=3DGramE><font size=3D3 =
face=3DArial><span
style=3D'font-size:12.0pt;font-family:Arial'>configure</span></font></spa=
n><font
face=3DArial><span style=3D'font-family:Arial'>: WARNING: libpng is =
required - see <a
href=3D"http://www.libpng.org/pub/png/">http://www.libpng.org/pub/png/</a=
>
checking for freetype-config... no checking for FT_Init_FreeType in
-lfreetype... no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>configure: WARNING: not found - disabling freetype =
support
checking freetype/freetype.h usability... no checking =
freetype/freetype.h
presence... no checking for freetype/freetype.h... no checking for
jpeg_set_defaults in -ljpeg... no checking for XpmReadFileToXpmImage in
-lXpm... no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>** Configuration summary for <span =
class=3DGramE>gd</span>
2.0.15:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp; =
</span>Support
for PNG library:<span
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;
</span>no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp; =
</span>Support
for JPEG library:<span
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;
</span>no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp; =
</span>Support
for Freetype 2.x library: no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><span style=3D'mso-spacerun:yes'>&nbsp;&nbsp; =
</span>Support
for Xpm library:<span
style=3D'mso-spacerun:yes'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;
</span>no<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>It seems to be finding the png.h, but is having =
problems
with png_create_read_struct.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>Any help or ideas would be greatfully received as I =
feel
like I am out of my depth at the moment.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>Thanks in advance.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3DArial><span =
style=3D'font-size:12.0pt;
font-family:Arial'>Phil Maskell.<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-layout-grid-align:none;text-autospace:none'><font
size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier =
New"'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>
<BR>

<P><FONT SIZE=3D2>---<BR>
Outgoing mail is certified Virus Free.<BR>
Checked by AVG anti-virus system (http://www.grisoft.com).<BR>
Version: 6.0.525 / Virus Database: 322 - Release Date: 09/10/2003<BR>
</FONT> </P>

------=_NextPart_000_006C_01C39248.A5845680--





More information about the mapserver-users mailing list