cairoutils_read_ppm_stream: Netpbm is not available

589 views
Skip to first unread message

Jean-Eric Campagne

unread,
Oct 20, 2014, 10:24:46 AM10/20/14
to astro...@googlegroups.com
Hi,
I'm running on MAC OS X mavericks

using solve-field I get the following mesages:
cairoutils.c:728:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM imagescairoutils.c:728:cairoutils_read_ppm_stream:
Netpbm is not available; can't read PPM images
cairoutils.c:728:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images
cairoutils.c:728:cairoutils_read_ppm_stream: Netpbm is not available; can't read PPM images

But
1) netpbm is on my machine thanks to "port"
2) I have set the environment variable NETPBM_INC and NETPBM_LIB

export NETPBM_INC="-I/opt/local/include/netpbm" 

export NETPBM_LIB="-L/opt/local/lib -lnetpbm"


An idea?
JE

Dustin Lang

unread,
Oct 20, 2014, 10:43:03 AM10/20/14
to astro...@googlegroups.com
Were those environment variables set when you built the astrometry.net code?

In the astrometry code directory, you can do "make reconfig" to see it test for netpbm and other things.

cheers,
--dstn


Jean-Eric Campagne

unread,
Oct 20, 2014, 10:47:49 AM10/20/14
to astro...@googlegroups.com
The environment variables were those aI have mentionned in my post.

Now "make reconfig" output is the following (omitting tests functions output)

HAVE_NETPBM := yes
 WCSLIB_INC: -I/opt/local/include/wcslib
 WCSLIB_LIB: -L/opt/local/lib -lwcs -lm

Dustin Lang

unread,
Oct 20, 2014, 10:50:43 AM10/20/14
to astro...@googlegroups.com
Ok, so now if you re-run "make" and "make install" you should have netpbm support.

--dstn


Dustin Lang

unread,
Oct 20, 2014, 11:11:28 AM10/20/14
to astro...@googlegroups.com

Netpbm support is determined at *compile time*.  If netpbm is found during "make reconfig", it will be linked in.  Nothing you do after compile time will change that.

If you run solve-field with "-v", when does it complain about missing netpbm?  In your listing before I saw a test-image-objs.png, so it looks like at least some of the plots are being made.  Is it failing to run one of the other plotting programs?

cheers,
--dstn

Reply all
Reply to author
Forward
0 new messages