Re: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

2019-10-23 Thread Steve Lime
Any chance there are multiple versions of libpng and libjpeg?

On Wed, Oct 23, 2019 at 1:31 AM Flavio Hendry  wrote:

> Hi Steve
>
> Thanks for the answer ... the issue we see, is that png and jpeg do not
> work as PIXMAP symbols - such as the below throws an error:
>
> SYMBOL
>   NAME "cablecar"
>   TYPE PIXMAP
>   IMAGE 'symbols/cablecar.png'
> END
>
> The error it throws:
> "Image handling error. Failed to draw layer named 'Aerialway Points'."
>
> Using TYPE PIXMAP with gif or TYPE SVG works ...
>
> We have:
> - libpng-dev1.6.34
> - libjpeg-dev 8c
>
>
> --
> Mit freundlichem Gruss / Best regards
> Flavio Hendry
>
> 
> TYDAC Inc.  - http://www.tydac.ch
> Swiss Maps  - http://www.mapplus.ch
> 
>   Mit freundlichen Gruessen / Kind Regards
>  Flavio Hendry, CEO - mailto:fla...@tydac.ch
>  TYDAC AG - http://www.tydac.ch
> Geographic Information Solutions
>    Optingenstrasse 27 -- CH-3013 Bern
> 
>  Tel +41 (0)31 368 0180
> 
> Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27
> 
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

2019-10-22 Thread Flavio Hendry

Hi Steve

Thanks for the answer ... the issue we see, is that png and jpeg do not 
work as PIXMAP symbols - such as the below throws an error:


SYMBOL
 NAME "cablecar"
 TYPE PIXMAP
 IMAGE 'symbols/cablecar.png'
END

The error it throws:
"Image handling error. Failed to draw layer named 'Aerialway Points'."

Using TYPE PIXMAP with gif or TYPE SVG works ...

We have:
- libpng-dev1.6.34
- libjpeg-dev 8c


--
Mit freundlichem Gruss / Best regards
Flavio Hendry


TYDAC Inc.  - http://www.tydac.ch
Swiss Maps  - http://www.mapplus.ch

  Mit freundlichen Gruessen / Kind Regards
 Flavio Hendry, CEO - mailto:fla...@tydac.ch
 TYDAC AG - http://www.tydac.ch
Geographic Information Solutions
   Optingenstrasse 27 -- CH-3013 Bern
 Tel +41 (0)31 368 0180

   Location: http://www.mapplus.ch/adr/bern/optingenstrasse/27

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

2019-10-22 Thread Lime, Steve D (MNIT)
The warnings look legit. I did a quick search and neither of those global 
variables are being used anywhere in the source (PNGsig is actually defined 
twice in 7.4, once in mapsymbol.c and again in mapogcsld.c). I assume that 
means they can be removed and/or the warnings can safely be ignored. Perhaps 
your compiler is just newer and therefore smarter?

Are you seeing issues beyond the warnings?

--Steve

-Original Message-
From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of Flavio Hendry
Sent: Tuesday, October 22, 2019 3:17 AM
To: mapserver-users@lists.osgeo.org
Subject: [mapserver-users] PIXMAP Symbols png and jpeg not recongnized

Hi all

Never had a problem with PIXMAP symbols, this is on a new install (tried
to recompile several times and several versions, Ubuntu 18.04.3 LTS).

We see the following that  might cause the problem, any idea???

[ 21%] Building C object CMakeFiles/mapserver.dir/mapsymbol.c.o
/tmp/mapserver-7.4.2/mapsymbol.c:52:28: warning: ‘JPEGsig’ defined but
not used [-Wunused-const-variable=]
  static const unsigned char JPEGsig[3] = {255, 216, 255}; /* FF D8 FF
hex */
 ^~~
/tmp/mapserver-7.4.2/mapsymbol.c:51:28: warning: ‘PNGsig’ defined but
not used [-Wunused-const-variable=]
  static const unsigned char PNGsig[8] = {137, 80, 78, 71, 13, 10, 26,
10}; /* 89 50 4E 47 0D 0A 1A 0A hex */


THX.


--
Mit freundlichem Gruss / Best regards
Flavio Hendry


TYDAC Inc.  - https://www.tydac.ch/
Swiss Maps  - https://www.mapplus.ch/

  Mit freundlichen Gruessen / Kind Regards
 Flavio Hendry, CEO - mailto:fla...@tydac.ch
 TYDAC AG - https://www.tydac.ch
Geographic Information Solutions
   Optingenstrasse 27 -- CH-3013 Bern
 Tel +41 (0)31 368 0180

Location: 
https://www.mapplus.ch/?lang=en&srch=solrsearch&name=bern%20optingenstrasse%2027

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users