trouble dealing in astrometry.net

231 views
Skip to first unread message

Sapna Mishra

unread,
Aug 16, 2017, 9:54:27 AM8/16/17
to astrometry
Dear All,
I am using astrometry.net for the first time and I found it very useful for me. However, I want to get for my Linux ubuntu 64-bit system.

I followed all the steps of installation given on http://astrometry.net/doc/build.html#build.

Now I want to convert some x,y coordinate in my file " test.fits" to RA and DEC so when I am running the line:

 wcs-xy2rd -w test.fits -i xy-list -o radec-list

I am getting the error like this:

nwcs.c:1039:anwcs_open_wcslib: Wcslib support was not compiled in
anwcs.c:1061:anwcs_open_wcstools: WCStools support was not compiled in
wcs-xy2rd.c:42:wcs_xy2rd: Failed to read WCS file "test.fits", extension 0
wcs-xy2rd-main.c:167:main: wcs-xy2rd failed

Can anyone tell me how to proceed? It will be very needful for me.

Thanks in advance to all.

Dustin Lang

unread,
Aug 16, 2017, 10:03:47 AM8/16/17
to astrometry
Hi,

Try doing:

sudo apt-get install wcslib-dev

and then, in the astrometry.net code directory,

make reconfig
make

It looks like wcslib wasn't installed or found by the astrometry.net makefile.

cheers,
--dustin


Sapna Mishra

unread,
Aug 16, 2017, 10:10:46 AM8/16/17
to astrometry
I got error after doing make :

 /home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1020: undefined reference to `wcs_errmsg'
../util/libanutils.a(anwcs.o): In function `wcslib_radec2pixelxy':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:273: undefined reference to `wcss2p'
collect2: error: ld returned 1 exit status
Makefile:368: recipe for target 'solve-field' failed
make[1]: *** [solve-field] Error 1
make[1]: Leaving directory '/home/sap/astrometry/astrometry.net-0.72/blind'
Makefile:61: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2

Dustin Lang

unread,
Aug 16, 2017, 10:27:48 AM8/16/17
to astrometry
Hi,

Strange...

Could you please try:

make clean
make config      <--- send the output from this, please
make

and if the 'make' fails, please send the gcc command it was running before it failed.

Thanks!
--dustin

Sapna Mishra

unread,
Aug 16, 2017, 10:36:28 AM8/16/17
to astrometry
the last gcc command:

 gcc -o solve-field  -g -Wall -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.72"' -DAN_GIT_DATE='"Mon_Jul_10_14:37:28_2017_-0400"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"' -I../catalogs    -DWCSLIB_EXISTS      -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib    -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I../util -I. -I/home/sap/Ureka/python/include -I/home/sap/Ureka/python/include/libpng15 -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  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline solve-field.o augment-xylist.o image2xy-files.o libastrometry.a ../catalogs/libcatalogs.a ../util/libanfiles.a ../libkd/libkd.a ../util/libanutils.a ../qfits-an/libqfits.a ../util/libanbase.a ../gsl-an/libgsl-an.a -L/home/sap/Ureka/python/lib -lcfitsio          -lwcs -lm -lm       -lwcs -lm -lm
../util/libanutils.a(anwcs.o): In function `wcslib_write_to':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:389: undefined reference to `wcshdo'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:391: undefined reference to `wcshdr_errmsg'
../util/libanutils.a(anwcs.o): In function `wcslib_print':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:349: undefined reference to `wcsprt'
../util/libanutils.a(anwcs.o): In function `wcslib_radec2pixelxy':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:273: undefined reference to `wcss2p'
../util/libanutils.a(anwcs.o): In function `wcslib_pixelxy2radec':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:245: undefined reference to `wcsp2s'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:254: undefined reference to `wcs_errmsg'
../util/libanutils.a(anwcs.o): In function `anwcs_wcslib_to_string':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:944: undefined reference to `wcshdo'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:946: undefined reference to `wcshdr_errmsg'
../util/libanutils.a(anwcs.o): In function `anwcs_wcslib_from_string':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1003: undefined reference to `wcspih'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1013: undefined reference to `wcssub'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1014: undefined reference to `wcsvfree'
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:1020: undefined reference to `wcs_errmsg'
../util/libanutils.a(anwcs.o): In function `wcslib_radec2pixelxy':
/home/sap/astrometry/astrometry.net-0.72/util/anwcs.c:273: undefined reference to `wcss2p'
collect2: error: ld returned 1 exit status
Makefile:368: recipe for target 'solve-field' failed
make[1]: *** [solve-field] Error 1
make[1]: Leaving directory '/home/sap/astrometry/astrometry.net-0.72/blind'
Makefile:61: recipe for target 'subdirs' failed
make: *** [subdirs] Error 2

Out put of make config 

sap@sap-ThinkPad-E470:~/astrometry/astrometry.net-0.72$ make config  
make: *** No rule to make target 'config  '.  Stop.


Dustin Lang

unread,
Aug 16, 2017, 10:59:46 AM8/16/17
to astrometry
Oh, I'm sorry, I meant

make reconfig


Thanks,
--dustin

Ole Streicher

unread,
Aug 17, 2017, 3:27:41 AM8/17/17
to astro...@googlegroups.com
Hi Sapna,

Sapna Mishra <sapna....@gmail.com> writes:
> I am using astrometry.net for the first time and I found it very
> useful for me. However, I want to get for my Linux ubuntu 64-bit
> system.
>
> I followed all the steps of installation given on
> http://astrometry.net/doc/build.html#build.

Depending on the Ubuntu release you have, you may even have
astrometry.net available as a package. On Ubuntu Xenial (16.04), it is
version 0.67. To have an update for Ubuntu Trusty (14.04), I just build
a backport package on my personal launchpad repository:

https://launchpad.net/~olebole/+archive/ubuntu/astro-trusty

which has version 0.72. If you need 0.72 for Xenial, please drop me a
note, I can build it as well.

Best regards

Ole
Reply all
Reply to author
Forward
0 new messages