[Kst] CFITSIO Problem

Peter Kümmel syntheticpp at gmx.net
Fri Aug 2 21:31:22 UTC 2013


On 26.07.2013 18:29, Nicholas Chapman wrote:
> Hello, I am working on writing a plugin to read binary FITS tables,
> specifically for HAWCPol, an instrument which will fly on SOFIA,
> http://www.sofia.usra.edu/.  Currently I am testing by attempting to
> read data from a different instrument called SHARP (hence the name
> SHARP appearing in the output below).
>
> I downloaded the kst source code using git (and just confirmed with a
> 'git pull' that this is the most current version).  I have written a
> plugin, however I cannot compile kst with my new plugin to test it.
> Based on the errors in the compile output, I think the problem is with
> linking to the CFITSIO library.  However, when I ran cmake, it seemed
> to find the CFITSIO library, so I am baffled.  I would appreciate any
> suggestions on what might be causing this problem.  Details on my
> steps taken are below.

I assume the installed cfitsio doesn't work with kst. You could try to
also build cfitsio while building kst:

cmake -G"CodeBlocks - Unix Makefiles" ../kst --Dkst_3rdparty_build=1


>
> I am running Mac OS X 10.6.8 and I am using QtCreator 4.8.4.  I have
> enabled my plugin by editing kst/cmake/src/datasources/CMakeLists.txt
> as follows:
> kst_add_plugin(. sharp)
> if(sharp) # NLC - Added to support raw sharp data
> 	include_directories(${SHARP_INCLUDE_DIR} ${CFITSIO_INCLUDE_DIR})
> 	kst_add_plugin(. sharp)
> 	kst_link(${SHARP_LIBRARIES} ${CFITSIO_LIBRARIES})
> endif()
>
> Now, to compile kst, I started Qt Creator and opened the project by
> selecting kst/cmake/CMakeLists.txt.  I then ran cmake.  Part of the
> output contains:
> Found CFITSIO:
> --      includes : /opt/local/include;/opt/local/include/..
> --      libraries: /opt/local/lib/libcfitsio.a;m
>



More information about the Kst mailing list