User Tools

Site Tools


skycat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
skycat [2009/05/11 02:48] pkubanekskycat [2009/05/11 03:11] pkubanek
Line 31: Line 31:
  
   * Ubuntu & Debian:   * Ubuntu & Debian:
 +If you installed tcl8.4:
 <code bash> <code bash>
 user@host:~$ tar -xzf skycat-3.0.2.src.tar.gz user@host:~$ tar -xzf skycat-3.0.2.src.tar.gz
 user@host:~$ cd skycat-3.0.2/ user@host:~$ cd skycat-3.0.2/
 user@host:~$ ./configure --with-tcl=/usr/lib/tcl8.4/ --with-tk=/usr/lib/tk8.4/ --with-tkinclude=/usr/include/tcl8.4/  --with-blt=/usr/lib user@host:~$ ./configure --with-tcl=/usr/lib/tcl8.4/ --with-tk=/usr/lib/tk8.4/ --with-tkinclude=/usr/include/tcl8.4/  --with-blt=/usr/lib
 +</code>
 +
 +If you installed tcl8.5:
 +<code bash>
 +user@host:~$ tar -xzf skycat-3.0.2.src.tar.gz
 +user@host:~$ cd skycat-3.0.2/
 +user@host:~$ ./configure --with-tcl=/usr/lib/tcl8.5/ --with-tk=/usr/lib/tk8.5/ --with-tkinclude=/usr/include/tcl8.5/  --with-blt=/usr/lib
 </code> </code>
  
Line 47: Line 55:
  
 <code> <code>
-    BLT_LIBNAME=libBLT.2.4${SHLIB_SUFFIX}.8.4+    BLT_LIBNAME=libBLT${SHLIB_SUFFIX}
     BLT_LIBFLAG=-lBLT     BLT_LIBFLAG=-lBLT
 </code> </code>
  
-in case you have ///usr/lib/libBLT.2.4.so.8.4//. If you have some different version, please use it.+Also if you installed tcl8.5, change 8.4 to 8.5 in //skycat/skycat.in//:
  
-  * Seems as case only for Ubuntu 09.04+<code bash> 
 +exec wish8.5 $SKYCAT_BASE/lib/skycat@PACKAGE_VERSION@/main.tcl ${1+"$@"} | tee -a $HOME/.skycat/log 2>&
 +</code> 
 + 
 +  * Seems as case only for Ubuntu
  
 You need to edit //cat/generic/AstroQuery.h// and put //#include <string.h>// to it, right after //#include <cstdio>// You need to edit //cat/generic/AstroQuery.h// and put //#include <string.h>// to it, right after //#include <cstdio>//
Line 63: Line 75:
 </code> </code>
  
-Also edit //astrotcl/generic/ImageIO.h//, around line 307 should be:+Also edit //astrotcl/generic/ImageIO.h//, around line 307 should abs((float)bitpix_).. instead of abs( bitpix_):
  
 <code c++> <code c++>
Line 73: Line 85:
  
     // member access     // member access
 +</code>
 +
 +and in //rtd/generic/RtdImage.C// around line 915 add define for MODULE_SCOPE, so
 +
 +<code c++>
 +// Fix for Tk clipping coordinates to short range: See CanvasWindowCoordsNoClip() below.
 +#ifdef HAVE_TKCANVAS_H
 +#include "tkCanvas.h"
 +#else
 +// The structure we need hasn't changed for a long time, so just include a local copy.
 +#include "tkCanvas.h-tk8.4.11"
 +#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 "tkCanvas.h"
 +#else
 +// The structure we need hasn't changed for a long time, so just include a local copy.
 +#include "tkCanvas.h-tk8.4.11"
 +#define HAVE_TKCANVAS_H
 </code> </code>
  
skycat.txt · Last modified: 2010/03/26 00:00 (external edit)