Joined: 23 Apr 2004
Location: Walla Walla, WA
|Posted: Tue Feb 18, 2014 9:37 pm Post subject: Building astrometry.net code
|This is more of a hint to myself, but it may help other astronomers trying to get the astrometry.net suite to actually build correctly. As it is, the code seemingly can't find the netpbm libraries that it really needs and the documentation seems to have at least one hole in it.
Here are the steps to build
Astrometry.net isn't in portage, so download it from astrometry.net
1) Make sure you have all the dependencies
emerge cairo netpbm libpng libjpet-turbo zlib python numpy pyfits cfitsio -pv
Of course, only install what you don't have. For pyfits and cfitsio, I'd unmask the most recent versions. It's probably better to use astropy and virtual/pyfits too.
2) You have to specifically point to the netpbm libraries and includes, it won't find them. Then everything works as expected
make NETPBM_INC="-I/usr/include/netpbm/" NETPBM_LIB="-L/usr/lib/ -lnetpbm"
Then follow the instructions to get all of the index files and you'll be set to put nice WCSs into all your fits!
quick edit: you seem to need the NETPBM stuff on all of the make lines.
Last edited by npaust on Thu May 15, 2014 6:00 pm; edited 1 time in total