[Kstars-devel] kstars linking problem
slehti
slehti at mail.cern.ch
Tue Mar 5 20:31:54 UTC 2013
Dear kstars developers,
I have a linking problem with kstars:
(using commit a251d504911e99da7a2f04c11386f779b99d2aea from Sun Feb 24
12:12:09 2013 on Kubuntu 12.10, gcc version 4.7.2)
Scanning dependencies of target kstars
[ 98%] Building CXX object kstars/CMakeFiles/kstars.dir/kstars.o
Linking CXX executable kstars
../lib/libKStarsLib.a(fitsimage.o): In function `FITSImage::checkWCS()':
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1043:
undefined reference to `wcspih'
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1045:
undefined reference to `wcshdr_errmsg'
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1063:
undefined reference to `wcsset'
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1065:
undefined reference to `wcs_errmsg'
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1082:
undefined reference to `wcsp2s'
/home/slehti/public/Programs/kstars/kstars/fitsviewer/fitsimage.cpp:1085:
undefined reference to `wcs_errmsg'
collect2: error: ld returned 1 exit status
make[2]: *** [kstars/kstars] Error 1
make[1]: *** [kstars/CMakeFiles/kstars.dir/all] Error 2
make: *** [all] Error 2
This is fixed by changing line L481 in kstars/kstars/CMakeLists.txt:
if (WCSLIB_FOUND)
- target_link_libraries(kstars ${WCSLIB_LIBRARIES})
+ target_link_libraries(KStarsLib ${WCSLIB_LIBRARIES})
endif (WCSLIB_FOUND)
I don't have any Developer Access, so could someone please take care of
fixing this?
Cheers,
Sami
More information about the Kstars-devel
mailing list