I now tried on Debian Lenny, 64 bit which did not work out of the box. After installing fits libs, I get the following output: octave:3> pkg install fits.tar.gz Package cfitsio was not found in the pkg-config search path. Perhaps you should add the directory containing `cfitsio.pc' to the PKG_CONFIG_PATH environment variable No package 'cfitsio' found Package cfitsio was not found in the pkg-config search path. Perhaps you should add the directory containing `cfitsio.pc' to the PKG_CONFIG_PATH environment variable No package 'cfitsio' found Package cfitsio was not found in the pkg-config search path. Perhaps you should add the directory containing `cfitsio.pc' to the PKG_CONFIG_PATH environment variable No package 'cfitsio' found
I think this is related to the Debian package not containing the library . Replacing MKOCT_FLAGS = $(shell pkg-config --libs cfitsio) with MKOCT_FLAGS = -lcfitsio in src/Makefile makes it run on debian. I attach the modified package. Can someone else test it? (or provide a more general solution to the mkoctflags problem) Paul asdfsadfd skrev: > Thanks for supplying this code! > I tried the toolbox on mac os x leopard (from macports, 3.2.4). > I installed the cfitsio library via macports first. The toolbox compiled > without problems for me. > I tried with the file > http://fits.gsfc.nasa.gov/samples/WFPC2u5780205r_c0fx.fits > which loaded ok. Viewing it with imagesc(img(:,:,1)) looks something > like the picture on > http://fits.gsfc.nasa.gov/cgi-bin/browse?file=/samples/WFPC2u5780205r_c0fx.fits > although I have no idea what is portrayed... > > I think we should accept Dirk as a developer and add this toolbox. The > licens and description files seem to be correct to me. > > Paul Dreik (earlier Sundvall) > > Dirk Schmidt skrev 2010-08-23 20.55: >> Dear Octave developers, >> >> first, let me thank you for your great piece of software. >> >> Since octave has been lacking functions for basic reading and writing of >> FITS >> files (Flexible Image Transport System) which are often used in astronomy, I >> wrote some code (based on the cfitsio library, >> <http://heasarc.gsfc.nasa.gov/docs/software/fitsio/>) which provides these >> features for octave. >> >> I think it is already usable for others, so I'd like to share it. If you >> like >> it, please upload it to the repository, and add me as developer (sourceforge >> name "dreisamrd"). >> >> The directory tree should be compliant with package structure policy, so >> that >> 'pkg install "fits.tar.gz"' should be ok, once you have libcfitsio3-dev >> installed. >> >> >> Thanks, >> >> Dirk >> >> >> >> ------------------------------------------------------------------------------ >> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program >> Be part of this innovative community and reach millions of netbook users >> worldwide. Take advantage of special opportunities to increase revenue and >> speed time-to-market. Join now, and jumpstart your future. >> http://p.sf.net/sfu/intel-atom-d2d >> >> >> >> _______________________________________________ >> Octave-dev mailing list >> Octave-dev@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/octave-dev > > ------------------------------------------------------------------------------ > Sell apps to millions through the Intel(R) Atom(Tm) Developer Program > Be part of this innovative community and reach millions of netbook users > worldwide. Take advantage of special opportunities to increase revenue and > speed time-to-market. Join now, and jumpstart your future. > http://p.sf.net/sfu/intel-atom-d2d > _______________________________________________ > Octave-dev mailing list > Octave-dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/octave-dev
fits_wo_pkgconfig.tar.gz
Description: GNU Zip compressed data
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev