rm -f util/os-features-config.h util/makefile.os-features
make -C util config
make[1]: Entering directory '/home/mike/code/astrometry.net/util'
Makefile:75: makefile.os-features: No such file or directory
---- Error messages in the next few commands are not necessarily bugs ----
(we're checking how things works on your computer)
rm -f os-features-makefile.log
( \
echo "# This file is generated by util/Makefile."; \
((gcc -o os-features-test-netpbm-make \
-g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.57"' -DAN_GIT_DATE='"Wed_Sep_2_11:53:22_2015_-0400"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"' -I../util -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libpng12 -I../include -I../include/astrometry -I../gsl-an -I../include -I../include/astrometry -I../gsl-an -I. -DTEST_NETPBM_MAKE os-features-test.c -g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -L. -lnetpbm >> os-features-makefile.log && \
./os-features-test-netpbm-make >> os-features-makefile.log && \
echo "HAVE_NETPBM := yes") \
|| (echo "# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM."; \
echo "# See os-features-makefile.log for details."; \
echo "# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)"; \
echo "# Or to do it yourself, just uncomment this line:"; \
echo "# HAVE_NETPBM := yes")) \
; \
echo) > makefile.os-features.tmp
os-features-test.c:88:24: fatal error: netpbm/pam.h: No such file or directory
#include <netpbm/pam.h>
^
compilation terminated.
--------------- End of expected error messages -----------------
mv makefile.os-features.tmp makefile.os-features
Config results:
------------------------------
cat makefile.os-features
# This file is generated by util/Makefile.
# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM.
# See os-features-makefile.log for details.
# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)
# Or to do it yourself, just uncomment this line:
# HAVE_NETPBM := yes
------------------------------
And, by the way, is WCSlib support being compiled in?
pkg-config --exists wcslib && echo yes || echo no
no
WCSLIB_INC:
WCSLIB_LIB:
------------------------------
make[1]: Nothing to be done for 'config'.
make[1]: Leaving directory '/home/mike/code/astrometry.net/util'
I build netpbm from source (apparently there's a problem with the debian packages for netpbm)
os-features-test.c:88:24: fatal error: netpbm/pam.h: No such file or directory
#include <netpbm/pam.h>
^
compilation terminated.
--- a/util/an-pnmtofits.c
+++ b/util/an-pnmtofits.c
@@ -22,7 +22,7 @@
#include "os-features-config.h" // for HAVE_NETPBM.
#if HAVE_NETPBM
-#include <netpbm/pam.h>
+#include <pam.h>
#else
#include
#endif
--- a/util/os-features-test.c
+++ b/util/os-features-test.c
@@ -85,7 +85,7 @@
#endif
#if defined(TEST_NETPBM) || defined(TEST_NETPBM_MAKE)
-#include <netpbm/pam.h>
+#include <pam.h>
int main(int argc, char** args) {
struct pam img;
pm_init(args[0], 0);
--- a/util/cairoutils.c
+++ b/util/cairoutils.c
@@ -32,7 +32,7 @@
#include "os-features.h"
#if HAVE_NETPBM
-#include
<netpbm/ppm.h>
+#include <ppm.h>
#endif
#include "ioutils.h"
Testing netpbm...
NETPBM_INC_ORIG is -I/usr/local/netpbm/include
NETPBM_LIB_ORIG is -L/usr/local/netpbm/lib -lnetpbm
mike@tesla:~/code/astrometry.net$ make reconfig
rm -f util/os-features-config.h util/makefile.os-features
make -C util config
make[1]: Entering directory '/home/mike/code/astrometry.net/util'
Makefile:61: makefile.os-features: No such file or directory
---- Error messages in the next few commands are not necessarily bugs ----
(we're checking how things works on your computer)
rm -f os-features-makefile.log
Testing netpbm...
NETPBM_INC_ORIG is -I/usr/local/netpbm/include
NETPBM_LIB_ORIG is -L/usr/local/netpbm/lib -lnetpbm
( \
echo "# This file is generated by util/Makefile."; \
((gcc -o os-features-test-netpbm-make \
-g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.57-4-gb2fabc3"' -DAN_GIT_DATE='"Wed_Sep_9_11:29:08_2015_-0400"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"' -I../util -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libpng12 -I../include -I../include/astrometry -I../gsl-an -I../include -I../include/astrometry -I../gsl-an -I. -DTEST_NETPBM_MAKE -I/usr/local/netpbm/include os-features-test.c -g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -L/usr/local/netpbm/lib -lnetpbm >> os-features-makefile.log && \
./os-features-test-netpbm-make >> os-features-makefile.log && \
echo "HAVE_NETPBM := yes") \
|| (echo "# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM."; \
echo "# See os-features-makefile.log for details."; \
echo "# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)"; \
echo "# Or to do it yourself, just uncomment this line:"; \
echo "# HAVE_NETPBM := yes")) \
; \
echo) > makefile.os-features.tmp
os-features-test.c:75:24: fatal error: netpbm/pam.h: No such file or directory
#include <netpbm/pam.h>
^
compilation terminated.
--------------- End of expected error messages -----------------
mv makefile.os-features.tmp makefile.os-features
Config results:
------------------------------
cat makefile.os-features
# This file is generated by util/Makefile.
# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM.
# See os-features-makefile.log for details.
# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)
# Or to do it yourself, just uncomment this line:
# HAVE_NETPBM := yes
------------------------------
And, by the way, is WCSlib support being compiled in?
pkg-config --exists wcslib && echo yes || echo no
no
WCSLIB_INC:
WCSLIB_LIB:
------------------------------
make[1]: Nothing to be done for 'config'.
make[1]: Leaving directory '/home/mike/code/astrometry.net/util'
Makefile:61: makefile.os-features: No such file or directory - is that not slightly alarming?/usr/local/netpbm/include
is there a "netpbm" directory, or just the files?
If it's just the files, try the symlink hack I mentioned.
The "missing" makefile.os-features isn't alarming -- that's the file it's building.
cheers,
--dustin
./os-features-test-netpbm-make: error while loading shared libraries: libnetpbm.so.10: cannot open shared object file: No such file or directory
export NETPBM_LIB="-L/usr/local/netpbm/lib/libnetpbm.a"
rm -f util/os-features-config.h util/makefile.os-features
make -C util config
make[1]: Entering directory '/home/mike/code/astrometry.net/util'
Makefile:61: makefile.os-features: No such file or directory
---- Error messages in the next few commands are not necessarily bugs ----
(we're checking how things works on your computer)
rm -f os-features-makefile.log
Testing netpbm...
NETPBM_INC_ORIG is -I/usr/local/netpbm/include
NETPBM_LIB_ORIG is -L/usr/local/netpbm/lib/libnetpbm.a
( \
echo "# This file is generated by util/Makefile."; \
((gcc -o os-features-test-netpbm-make \
-g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.57-4-gb2fabc3"' -DAN_GIT_DATE='"Wed_Sep_9_11:29:08_2015_-0400"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"' -I../util -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libpng12 -I../include -I../include/astrometry -I../gsl-an -I../include -I../include/astrometry -I../gsl-an -I. -DTEST_NETPBM_MAKE -I/usr/local/netpbm/include os-features-test.c -g -Wall -std=gnu89 -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -L/usr/local/netpbm/lib/libnetpbm.a >> os-features-makefile.log && \
./os-features-test-netpbm-make >> os-features-makefile.log && \
echo "HAVE_NETPBM := yes") \
|| (echo "# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM."; \
echo "# See os-features-makefile.log for details."; \
echo "# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)"; \
echo "# Or to do it yourself, just uncomment this line:"; \
echo "# HAVE_NETPBM := yes")) \
; \
echo) > makefile.os-features.tmp
/tmp/ccvlqWD5.o: In function `main':
/home/mike/code/astrometry.net/util/os-features-test.c:78: undefined reference to `pm_init'
collect2: error: ld returned 1 exit status
--------------- End of expected error messages -----------------
mv makefile.os-features.tmp makefile.os-features
Config results:
------------------------------
cat makefile.os-features
# This file is generated by util/Makefile.
# Astrometry.net didn't find netpbm; not setting HAVE_NETPBM.
# See os-features-makefile.log for details.
# To re-run this test, do 'make reconfig; make makefile.os-features' (in the 'util' directory)
# Or to do it yourself, just uncomment this line:
# HAVE_NETPBM := yes
------------------------------
And, by the way, is WCSlib support being compiled in?
pkg-config --exists wcslib && echo yes || echo no
no
WCSLIB_INC:
WCSLIB_LIB:
------------------------------
make[1]: Nothing to be done for 'config'.
make[1]: Leaving directory '/home/mike/code/astrometry.net/util'
export NETPBM_LIB="/usr/local/netpbm/lib/libnetpbm.a"
and if you do that, you don't need to set LD_LIBRARY_PATH.
cheers,
--dustin
mike@tesla:~$ solve-field M57.png
Reading input file 1 of 1: "M57.png"...
pngtopnm: symbol lookup error: pngtopnm: undefined symbol: overflow2
Command failed: pngtopnm M57.png > /tmp/tmpx_LH2C.pnm
augment-xylist.c:588:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.SH8tBY --fix-sdss --infile M57.png --uncompressed-outfile /tmp/tmp.uncompressed.ymJTTG --outfile /tmp/tmp.ppm.sLJjcp --ppm
ioutils.c:566:run_command_get_outputs Command failed: return value 255
mike@tesla:~$ solve-field M57.png
Reading input file 1 of 1: "M57.png"...
pngtopnm: symbol lookup error: pngtopnm: undefined symbol: overflow2
Command failed: pngtopnm M57.png > /tmp/tmp5ZXYA8.pnm
augment-xylist.c:588:backtick Failed to run command: /usr/local/astrometry/bin/image2pnm.py --sanitized-fits-outfile /tmp/tmp.sanitized.cO48YC --fix-sdss --infile M57.png --uncompressed-outfile /tmp/tmp.uncompressed.aKcODs --outfile /tmp/tmp.ppm.kRItii --ppm
ioutils.c:566:run_command_get_outputs Command failed: return value 255
linux-vdso.so.1 (0x00007ffc7a3e9000)
libnetpbm.so.10 => /usr/local/netpbm/lib/libnetpbm.so.10 (0x00007f3395123000)
libpng12.so.0 => /lib/x86_64-linux-gnu/libpng12.so.0 (0x00007f3394efc000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f3394ce1000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f33949e0000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3394637000)
/lib64/ld-linux-x86-64.so.2 (0x00007f3395358000)