skycat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
skycat [2008/09/06 20:54] – external edit 127.0.0.1 | skycat [2010/03/26 02:35] – old revision restored (wasn't able to compile it undet Ubuntu 9.10) jstrobl | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Introduction ====== | ||
+ | |||
+ | This document is ment as a simple howto for installing [[http:// | ||
+ | |||
+ | The original version from Petr Kubanek was only for Ubuntu 08.10, now it's extended to Debian 4.0 Etch, Debian 5.0 Lenny and Ubuntu 09.04. | ||
+ | |||
====== Downloads ====== | ====== Downloads ====== | ||
- | From [[http:// | + | From [[http:// |
Then install required libraries: | Then install required libraries: | ||
+ | * Ubuntu <= 08.10: | ||
<code bash> | <code bash> | ||
user@host: | user@host: | ||
user@host: | user@host: | ||
+ | </ | ||
+ | |||
+ | * Ubuntu 09.04: | ||
+ | <code bash> | ||
+ | user@host: | ||
+ | user@host: | ||
+ | </ | ||
+ | * Debian: | ||
+ | <code bash> | ||
+ | user@host: | ||
+ | user@host: | ||
</ | </ | ||
====== Patching ====== | ====== Patching ====== | ||
+ | * Ubuntu & Debian: | ||
+ | If you installed tcl8.4: | ||
<code bash> | <code bash> | ||
- | user@host: | + | user@host: |
+ | user@host: | ||
user@host: | user@host: | ||
+ | </ | ||
+ | |||
+ | If you installed tcl8.5: | ||
+ | <code bash> | ||
+ | user@host: | ||
+ | user@host: | ||
+ | user@host: | ||
</ | </ | ||
Line 27: | Line 55: | ||
< | < | ||
- | BLT_LIBNAME=libBLT.2.4${SHLIB_SUFFIX}.8.4 | + | BLT_LIBNAME=libBLT${SHLIB_SUFFIX} |
BLT_LIBFLAG=-lBLT | BLT_LIBFLAG=-lBLT | ||
</ | </ | ||
- | in case you have ///usr/lib/libBLT.2.4.so.8.4// | + | Also if you installed tcl8.5, change 8.4 to 8.5 in //skycat/skycat.in//: |
+ | |||
+ | <code bash> | ||
+ | exec wish8.5 $SKYCAT_BASE/lib/skycat@PACKAGE_VERSION@/ | ||
+ | </ | ||
+ | |||
+ | * Seems as case only for Ubuntu and Debian 5.0 Lenny | ||
+ | |||
+ | You need to edit // | ||
+ | |||
+ | <code c++> | ||
+ | #include < | ||
+ | #include < | ||
+ | #include " | ||
+ | </ | ||
+ | |||
+ | Also edit // | ||
+ | |||
+ | <code c++> | ||
+ | // reverse the effect of bzero and bscale | ||
+ | double unScaleValue(double d) const {return (d-bzero_)/ | ||
+ | |||
+ | // return the size in bytes of a raw image pixel | ||
+ | int pixelSize() const {return abs((float) bitpix_)/8;} | ||
+ | |||
+ | // member access | ||
+ | </ | ||
+ | |||
+ | and in // | ||
+ | |||
+ | <code c++> | ||
+ | // Fix for Tk clipping coordinates to short range: See CanvasWindowCoordsNoClip() below. | ||
+ | #ifdef HAVE_TKCANVAS_H | ||
+ | #include " | ||
+ | #else | ||
+ | // The structure we need hasn't changed for a long time, so just include a local copy. | ||
+ | #include " | ||
+ | #define HAVE_TKCANVAS_H | ||
+ | #endif | ||
+ | </code> | ||
+ | |||
+ | becomes | ||
+ | |||
+ | <code c++> | ||
+ | #ifndef MODULE_SCOPE | ||
+ | #define MODULE_SCOPE extern | ||
+ | #endif | ||
+ | |||
+ | // Fix for Tk clipping coordinates to short range: See CanvasWindowCoordsNoClip() below. | ||
+ | #ifdef HAVE_TKCANVAS_H | ||
+ | #include " | ||
+ | #else | ||
+ | // The structure we need hasn't changed for a long time, so just include a local copy. | ||
+ | #include " | ||
+ | #define HAVE_TKCANVAS_H | ||
+ | </ | ||
+ | |||
+ | * Debian (seems to be not a problem in ubuntu?): | ||
+ | There is one more problem in these files: | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | ./ | ||
+ | |||
+ | It is the redundant single quote mark (') in the end of the line: | ||
+ | system=MP-RAS-`awk ' | ||
+ | |||
+ | You can use this simple pipeline to repair | ||
+ | <code bash> | ||
+ | for i in ./ | ||
+ | </ | ||
====== Make ====== | ====== Make ====== | ||
+ | * Debian, Ubuntu <= 08.10: | ||
<code bash> | <code bash> | ||
user@host: | user@host: | ||
+ | user@host: | ||
+ | user@host: | ||
+ | </ | ||
+ | |||
+ | * Ubuntu 09.04: | ||
+ | <code bash> | ||
+ | user@host: | ||
user@host: | user@host: | ||
user@host: | user@host: |
skycat.txt · Last modified: 2010/03/26 00:00 (external edit)