[Kstars-devel] kstars linking problem

Nicolas Dubuit ndubuit at yahoo.com
Wed Mar 6 17:56:15 UTC 2013


Commit e25b3eea670c6e1b2555c2b67459b6ede4b25d2c should fix the issue (first 
reported as KDE bug 313517 (https://bugs.kde.org/show_bug.cgi?id=313517)

Could you please check it?

Nicolas

Le mardi 5 mars 2013 21:31:54 slehti a écrit :
> 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
> _______________________________________________
> Kstars-devel mailing list
> Kstars-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kstars-devel


More information about the Kstars-devel mailing list