<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Hello, Jennifer</tt><tt><br>
      </tt><tt><br>
      </tt><tt>output from</tt><tt><br>
      </tt><tt><br>
      </tt><tt>  > ldd /usr/util/grads/lib/libgxpCairo.so | grep png</tt><tt><br>
      </tt><tt><br>
      </tt><tt>is</tt><tt><br>
      </tt><tt><br>
      </tt><tt>    libpng15.so.15 =>
        /usr/util/grads/libpng-1.5.12/lib/libpng15.so.15
        (0x00002b2420612000)</tt><tt><br>
      </tt><tt>    libpng12.so.0 => /usr/lib64/libpng12.so.0
        (0x00002b242289e000)</tt><tt><br>
      </tt><tt><br>
      </tt><tt>So libgxpCairo.so uses two version of the libpng,
        libpng15 that is the one I have compiled, libpng12 that is the
        system one. Should the problem related version conflict?</tt><tt><br>
      </tt><tt><br>
      </tt><tt>Output from </tt><tt><br>
      </tt><tt><br>
      </tt><tt>  > ldd -v /usr/util/grads/lib/libgxpCairo.so | grep
        png</tt><tt><br>
      </tt><tt><br>
      </tt><tt>show that lib</tt><tt>png12 is used by system libcairo:</tt><tt><br>
      </tt><tt><br>
      </tt><tt>    Version information:</tt><tt><br>
      </tt><tt><br>
      </tt><tt>    ...</tt><tt><br>
      </tt><tt>    /usr/lib64/libcairo.so.2:</tt><tt><br>
      </tt><tt>        libm.so.6 (GLIBC_2.2.5) => /lib64/libm.so.6</tt><tt><br>
      </tt><tt>        libc.so.6 (GLIBC_2.4) => /lib64/libc.so.6</tt><tt><br>
      </tt><tt>        libc.so.6 (GLIBC_2.3) => /lib64/libc.so.6</tt><tt><br>
      </tt><tt>        libc.so.6 (GLIBC_2.3.4) => /lib64/libc.so.6</tt><tt><br>
      </tt><tt>        libc.so.6 (GLIBC_2.11) => /lib64/libc.so.6</tt><tt><br>
      </tt><tt>        libc.so.6 (GLIBC_2.2.5) => /lib64/libc.so.6</tt><tt><br>
      </tt><tt>        libpng12.so.0 (PNG12_0) =>
        /usr/lib64/libpng12.so.0</tt><tt><br>
      </tt><tt>     ...</tt><tt><br>
        <br>
        Thanks<br>
      </tt><tt>Marco</tt></p>
    <br>
    <div class="moz-cite-prefix">Il 15/03/2018 17:16, Jennifer M Adams
      ha scritto:<br>
    </div>
    <blockquote type="cite"
      cite="mid:32359C0F-6BDF-4D56-A18F-6500372479AD@gmu.edu">
      <pre wrap="">Hi, Marco — 
Did you see this post <a class="moz-txt-link-freetext" href="http://gradsusr.org/pipermail/gradsusr/2017-December/041377.html">http://gradsusr.org/pipermail/gradsusr/2017-December/041377.html</a> ?

What is the output from 
</pre>
      <blockquote type="cite">
        <pre wrap="">ldd /usr/util/grads/lib/libgxpCairo.so | grep png
</pre>
      </blockquote>
      <pre wrap="">
Also, what size image are you trying to create? 

#     define PNG_USER_HEIGHT_MAX 1000000
#     define PNG_USER_WIDTH_MAX 1000000

—Jennifer

</pre>
      <blockquote type="cite">
        <pre wrap="">On Mar 15, 2018, at 11:46 AM, Marco Biordi - PODOS3D <a class="moz-txt-link-rfc2396E" href="mailto:marcobiordi@podos3d.sm"><marcobiordi@podos3d.sm></a> wrote:

Hello users,

when I run grads and make an hardcopy with the command gxprint I get an empty PNG image and GrADS return the following error


libpng warning: Image width exceeds user limit in IHDR
libpng warning: Image height exceeds user limit in IHDR
gd-png:  fatal libpng error: Invalid IHDR data


I run GrADS 2.2.0, pre-built grads-2.2.0-bin-rhel6.4-x86_64.tar.gz.

My system (Centos-6.5-x86_64) is still on libpng-1.2.49; when I run grads, it fails with error "GX Package Error: dlopen failed to get a handle on gxprint plug-in named "Cairo", "libpng15.so.15: cannot open shared object file: No such file or directory".

So I have build myself libpng-1.15.12 and all commands except gxprint now seem to work.


Before to run grads I do commands:

</pre>
        <blockquote type="cite">
          <pre wrap="">setenv LD_LIBRARY_PATH /usr/util/grads/libpng-1.5.12/lib
</pre>
        </blockquote>
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <pre wrap="">setenv GADDIR /usr/util/grads/data
</pre>
        </blockquote>
        <pre wrap="">
</pre>
        <blockquote type="cite">
          <pre wrap="">setenv GAUDPT /usr/util/grads/udpt [ maybe redundant ]
</pre>
        </blockquote>
        <pre wrap="">
File udpt contains these lines:

# Type     Name     Full path to shared object file
# ----     ----     -------------------------------
gxdisplay  Cairo    /usr/util/grads/lib/libgxdCairo.so
gxdisplay  X11      /usr/util/grads/lib/libgxdX11.so
gxdisplay  gxdummy  /usr/util/grads/lib/libgxdummy.so
*
gxprint    Cairo    /usr/util/grads/lib/libgxpCairo.so
gxprint    GD       /usr/util/grads/lib/libgxpGD.so
gxprint    gxdummy  /usr/util/grads/lib/libgxdummy.so


Folder /usr/util/grads/lib contains these files:

/usr/wrfems/util/grads/lib/libgxdCairo.la
/usr/wrfems/util/grads/lib/libgxdCairo.so
/usr/wrfems/util/grads/lib/libgxdCairo.so.0
/usr/wrfems/util/grads/lib/libgxdCairo.so.0.0.0
/usr/wrfems/util/grads/lib/libgxdummy.la
/usr/wrfems/util/grads/lib/libgxdummy.so
/usr/wrfems/util/grads/lib/libgxdummy.so.0
/usr/wrfems/util/grads/lib/libgxdummy.so.0.0.0
/usr/wrfems/util/grads/lib/libgxdX11.la
/usr/wrfems/util/grads/lib/libgxdX11.so
/usr/wrfems/util/grads/lib/libgxdX11.so.0
/usr/wrfems/util/grads/lib/libgxdX11.so.0.0.0
/usr/wrfems/util/grads/lib/libgxpCairo.la
/usr/wrfems/util/grads/lib/libgxpCairo.so
/usr/wrfems/util/grads/lib/libgxpCairo.so.0
/usr/wrfems/util/grads/lib/libgxpCairo.so.0.0.0
/usr/wrfems/util/grads/lib/libgxpGD.la
/usr/wrfems/util/grads/lib/libgxpGD.so
/usr/wrfems/util/grads/lib/libgxpGD.so.0
/usr/wrfems/util/grads/lib/libgxpGD.so.0.0.0

Please can anybody help?

Thanks in advance

Marco
_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://secure-web.cisco.com/1Q04si8BmlHol2T-Zo_GyLZ_jUTLPsD4uBPja_b4sPLFkOeCjdUUc8v4w0KCH2_XywFnbkvo9fF1O6LF2Jq7PbEPjI49yc_qQIsMyK8kNqgDRubNlI5EP5mqiCAYg-M_hsMNjFpzuT5gEXnLxYoVIyev-Qr7eazIyqvGwBoJ8CjuOaFNrmeuqMIxXtLY3NJU6nWsNAhf22LgMw7LFeLwMo2dAHeSdZ32LLjkoKvZ0zvwjR64aL_dBxHq0zt1_TXp9HBeON0yzqt-HJgBRc5l-gt5fG-xLl1iLwx6IsFXj6kb5sUuxndY4zE-_dkH2nhfj2Pwow2dQYoFDa2wBLNIMmc4m-Tw47HaFOgV3ucdHdlwi9UExbEOy8hGtVYzI_22lxIaPxXXEPSrW2cMCrsNISLTAeDoU-5KEHmEFaUKaEXUxAblC2QZ3b-m4BXP0Omyi/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr">http://secure-web.cisco.com/1Q04si8BmlHol2T-Zo_GyLZ_jUTLPsD4uBPja_b4sPLFkOeCjdUUc8v4w0KCH2_XywFnbkvo9fF1O6LF2Jq7PbEPjI49yc_qQIsMyK8kNqgDRubNlI5EP5mqiCAYg-M_hsMNjFpzuT5gEXnLxYoVIyev-Qr7eazIyqvGwBoJ8CjuOaFNrmeuqMIxXtLY3NJU6nWsNAhf22LgMw7LFeLwMo2dAHeSdZ32LLjkoKvZ0zvwjR64aL_dBxHq0zt1_TXp9HBeON0yzqt-HJgBRc5l-gt5fG-xLl1iLwx6IsFXj6kb5sUuxndY4zE-_dkH2nhfj2Pwow2dQYoFDa2wBLNIMmc4m-Tw47HaFOgV3ucdHdlwi9UExbEOy8hGtVYzI_22lxIaPxXXEPSrW2cMCrsNISLTAeDoU-5KEHmEFaUKaEXUxAblC2QZ3b-m4BXP0Omyi/http%3A%2F%2Fgradsusr.org%2Fmailman%2Flistinfo%2Fgradsusr</a>
</pre>
      </blockquote>
      <pre wrap="">
--
Jennifer Miletta Adams
Center for Ocean-Land-Atmosphere Studies (COLA)
George Mason University




_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <i><b><small><font face="TrebuchetMS" color="#000000">Marco Biordi</font></small></b></i><br>
      <font color="#006600">——————————————————————————</font><br>
      <a href="http://www.podos3d.sm"><img title="PODOS3D di Marco
          Biordi" alt="podos3d"
          src="cid:part1.A814E850.C02171C7@podos3d.sm" align="middle"
          height="25" border="0"></a><br>
      <small><small><font color="#000099">Dati Geografici</font> | <font
            color="#000099">Cartografia Digitale</font> | <font
            color="#000099">G.I.S.</font> | <font color="#006600">Modellistica
            Ambientale</font> | <font color="#006600">Meteorologia</font><br>
          <font color="#666666">Indirizzo Sede: viale Antonio Onofri 16
            - 47890 S. Marino Città - Repubblica S. Marino<br>
            Codice Operatore Economico: 20035<br>
            Tel / FAX: (+378) 0549 995487 | Email: <a
              href="mailto:marcobiordi@podos3d.sm">marcobiordi@podos3d.sm</a>
            | Web: <a href="http://www.podos3d.sm">podos3d.sm</a></font></small></small><br>
      <font color="#006600">——————————————————————————</font></div>
  </body>
</html>