[Mapserver-users] JPEG input
Ed McNierney
ed at topozone.com
Wed Apr 2 07:12:21 PST 2003
This is a multi-part message in MIME format.
------_=_NextPart_001_01C2F92A.423925B2
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Jan -
I believe these are all references to the same problem. If you =
recompiled MapServer and got the same result, then you are still =
building with two different JPEG libraries in there somewhere.
Check your MapServer makefile for references to the jpeg-6b library, and =
check all the makefiles for supporting libraries, as well. Be sure you =
are linking against GDAL.LIB rather than a custom JPEG library created =
in the frmts\jpeg directory.
I have attached my GD-2.0.11 Windows VC++ makefile for your reference.
- Ed
-----Original Message-----
From: Jan Hartmann [mailto:jhart at frw.uva.nl]
Sent: Wednesday, April 02, 2003 10:06 AM
To: Ed McNierney
Cc: mapserver-users at lists.gis.umn.edu
Subject: Re: [Mapserver-users] JPEG input
No, that didn't work either. I created a library in=20
gdal-1.1.8\frmts\jpeg (lib out:libjpeg.lib *.obj) and linked GD 2.0.11=20
against this library, instead of the original libjpeg.lib. Then I=20
recompiled MapServer, and got the same result.
Norman Vine pointed me to a recent posting by Daniel Morissette on this=20
problem,
http://lists.gis.umn.edu/pipermail/mapserver-users/2003-January/000657.ht=
ml
and a bugzilla item in
http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=3D203
The problem is more difficult than stated there: recompiling MapServer=20
without -DUSE_JPEG didn't help. Neither did compiling GD with the JPEG=20
routines from GDAL. Finally, it is NOT a Windows problem: Apache on=20
Linux came with the same error, although with a different size (464=20
instead of 520)
>> JPEG parameter struct mismatch: library thinks size is 464, caller
>> expects 464
As a last resort I completely removed GDAL from the build and tried to=20
display the jpeg image. This time I got the error message:
>> msDrawRasterLayer(): General error message. Attempt to render raster
>> layer to IMAGEMODE RGB or RGBA but without GDAL available. 24bit
>> output requires GDAL
I'm out of my depth.
Jan
Ed McNierney wrote:
> Jan -
>=20
> No, you need to eliminate the two different JPEG libraries from the =
build. In your case, that means modifying the GD build to link with the =
GDAL JPEG library.
>=20
> - Ed
>=20
> -----Original Message-----
> From: Jan Hartmann [mailto:jhart at frw.uva.nl]
> Sent: Wednesday, April 02, 2003 8:28 AM
> To: Ed McNierney
> Cc: mapserver-users at lists.gis.umn.edu
> Subject: Re: [Mapserver-users] JPEG input
>=20
>=20
> I did that too! I commented out the three lines for JPEG support in=20
> MapServer's Makefile.vc, but the result was the same.
>=20
> Jan
>=20
> Ed McNierney wrote:
>=20
>>Jan -
>>
>>Please forgive my incomplete recollection, but I ran into this same =
problem a long time ago. It appears that the JPEG library inside GDAL =
is built slightly differently than the default jpeg-6b library (although =
it's the same version), and the two are not compatible. I suspected it =
was a structure packing/alignment issue (i.e. the files are the same but =
they're compiled differently). I decided not to look into it and simply =
use the JPEG support from GDAL and remove the jpeg-6b library from my =
build. That fixed the problem.
>>
>> - Ed
>>
>>Ed McNierney
>>President and Chief Mapmaker
>>TopoZone.com / Maps a la carte, Inc.
>>73 Princeton Street, Suite 305
>>North Chelmsford, MA 01863
>>ed at topozone.com
>>(978) 251-4242=20
>>
>>-----Original Message-----
>>From: Jan Hartmann [mailto:jhart at frw.uva.nl]
>>Sent: Wednesday, April 02, 2003 6:19 AM
>>To: mapserver-users at lists.gis.umn.edu
>>Subject: [Mapserver-users] JPEG input
>>
>>
>>Hello,
>>
>>I'm trying to display a jpeg input image and get the following error=20
>>message:
>>
>>JPEG parameter struct mismatch: library thinks size is 432, caller=20
>>expects 464
>>
>>Platform: Win2000, VC++
>>Mapserver: CVS, compiled with and without JPEG input support (jpeg-6b)
>>GD: 2.0.11, compiled with jpeg-6b
>>GDAL: 1.1.8
>>
>>I diffed the jpeg files under GDAL with the jpeg-6b distribution and=20
>>found no differences. Yet there seems to be a version mismatch=20
>>somewhere. Outputting JPEG is no problem. Has anyone any ideas?
>>
>>Jan
>>
>>_______________________________________________
>>Mapserver-users mailing list
>>Mapserver-users at lists.gis.umn.edu
>>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>>
>=20
>=20
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>=20
------_=_NextPart_001_01C2F92A.423925B2
Content-Type: application/octet-stream;
name="Makefile.nt"
Content-Transfer-Encoding: base64
Content-Description: Makefile.nt
Content-Disposition: attachment;
filename="Makefile.nt"
I05NQUtFIG1ha2VmaWxlIGZvciBXaW5kb3dzIDk1Lzk4L05UIGRldmVsb3BlcnMuDQojUHJvZHVj
ZXMgYSBzdGF0aWMgbGlicmFyeSAobGliZ2QubGliKS4gVGhhbmtzIHRvIEpvZSBHcmVnb3Jpby4N
Cg0KQ09NUElMRVI9Y2wNCkdEQUxfRElSID0gLi5cZ2RhbC0xLjEuOA0KDQojSWYgdGhlIGFyIGNv
bW1hbmQgZmFpbHMgb24geW91ciBzeXN0ZW0sIGNvbnN1bHQgdGhlIGFyIG1hbnBhZ2UNCiNmb3Ig
eW91ciBzeXN0ZW0uIA0KQVI9TElCDQoNCiNJZiB0aGUgaW5zdGFsbCBjb21tYW5kIGlzIG5vdCBp
biB5b3VyIHBhdGgsIHByb3ZpZGUNCiNhbiBleHBsaWNpdCBwYXRoIGZvciBpdCBoZXJlLCBvciBp
bnN0YWxsIG1hbnVhbGx5Lg0KSU5TVEFMTD1pbnN0YWxsDQoNCiNJZiB5b3UgZG9uJ3QgaGF2ZSBG
cmVlVHlwZSBhbmQvb3IgWHBtIGluc3RhbGxlZCwgaW5jbHVkaW5nIHRoZQ0KI2hlYWRlciBmaWxl
cywgdW5jb21tZW50IHRoaXMgKGRlZmF1bHQpLg0KI0NGTEFHUz0tT3ggLUdYIA0KDQojSWYgeW91
IGRvIGhhdmUgRnJlZVR5cGUgYW5kL29yIFhwbSBmdWxseSBpbnN0YWxsZWQsIHVuY29tbWVudCBh
DQojdmFyaWF0aW9uIG9mIHRoaXMgYW5kIGNvbW1lbnQgb3V0IHRoZSBsaW5lIGFib3ZlLiBTZWUg
YWxzbyBMSUJTIGJlbG93Lg0KI0NGTEFH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HAub2JqIGdkX2lvX2ZpbGUub2JqIGdkX3NzLm9i
aiBcDQoJZ2RfaW9fc3Mub2JqIGdkX3BuZy5vYmogZ2R4cG0ub2JqIGdkZm9udHQub2JqIGdkZm9u
dHMub2JqIGdkZm9udG1iLm9iaiBnZGZvbnRsLm9iaiBcDQoJZ2Rmb250Zy5vYmogZ2RoZWxwZXJz
Lm9iaiBnZHRhYmxlcy5vYmogZ2RmdC5vYmogZ2RjYWNoZS5vYmogZ2RrYW5qaS5vYmogZ2RfanBl
Zy5vYmogXA0KCWdkX3dibXAub2JqIHdibXAub2JqDQoNCmdkLmxpYjogICQoT0JKUykgZ2QuaCBn
ZGZvbnR0LmggZ2Rmb250cy5oIGdkZm9udG1iLmggZ2Rmb250bC5oIGdkZm9udGcuaAkNCgkkKEFS
KSAkKE9CSlMpICQoR0RMSUJTKSANCg0KY2xlYW46DQoJZGVsICoub2JqICoubGliICQoUFJPR1JB
TVMpDQoNCg==
------_=_NextPart_001_01C2F92A.423925B2--
More information about the MapServer-users
mailing list