From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,d3b2a0f87e6bf4f5 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-05-09 10:37:29 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!sgiblab!cs.uoregon.edu!reuter.cse.ogi.edu!netnews.nwnet.net!news.u.washington.edu!grover.stat.washington.edu!neal From: neal@grover.stat.washington.edu (Phil Neal) Newsgroups: comp.sys.dec Subject: Re: tiff,xv on alpha ? Date: 9 May 1994 17:27:05 GMT Organization: U. Washington Dept. of Statistics Distribution: world Message-ID: <2qlrp9$phb@news.u.washington.edu> References: <2q3kjq$l0t@news.u.washington.edu> NNTP-Posting-Host: grover.stat.washington.edu X-Newsreader: TIN [version 1.2 PL1] Dear alpha/tiff people, I received a lot of responses to my question: "How do I get my hands on a tiff library for the Alpha or XV for the alpha that handles tiff files. The following people responded: David Abbott Ken Miller Grant Denkinson "Magnus Persson, Lunds datacentral" L.Rosenthaler" "Richard L. Dyson" rsalz@osf.org Thanks to you all. I took the tack suggested by David Abbott. Which essentially boiled down to a 4 step process described below, taken almost verbatim from David Abbots suggestions: 1. ftp Sam Lefler's tifflib v3.3beta002 which has 64 bit support. ftp ftp.sgi.com cd graphics/tiff binary get v3.3beta002.src.tar.Z 2. INSTALLATION: cp -p Makefile.sun Makefile edit tif_write.c and change at end of file TIFFSetWriteOffset(TIFF* tif, off_t off) to TIFFSetWriteOffset(TIFF* tif, toff_t off) then do the make. 3. Then grab xv-3.0a from: ftp.cis.upenn.edu directory: pub/xv 4. INSTALLATION untar etc.. cd jpeg cp -p makefile.ansi makefile cd .. edit xv.h and add following... #ifdef __alpha # include # for PATH_MAX (MAXPATHLEN) #endif ... somewhere before MAXPATHLEN is used. Note that according to the xv 3.0 docs, the TIFF library does NOT work on 64 bit machines such as the Alpha. This is only true for TIFF libraries at v3.2 or earlier. v3.3 beta works, so replace the tiff directory with the contents of libtiff from v3.3 (or make a soft link). Then edit xvtiff.c and add near the start: #ifdef __alpha typedef unsigned int U_long; typedef int Long; #else #define U_long u_long typedef long Long; #endif and then change all u_long refrences to U_long and long to Long. If you like, you can edit the Makefile and add -Olimit 1300 to the CCOPTS line to get all functions to be optimised. That should do it. Another big thanks, especially to David Abbott. Phil Neal Phil Neal (neal@grover.stat.washington.edu) wrote: : Dear DEC Alpha 3000-800 osf1/motif people, : Has anyone ported xv to the alpha. Does anyone know : of any code, c or fortran, that runs on alphas, : that writes out tiff files ? : Thanks, : Phil : -- : ---------------------------------------------------------------- : Phil Neal, Systems Programmer, Statistics Department GN-22 : University of Washington, Seattle, Wa. 98195 USA | 206-685-1627 : ---------------------------------------------------------------- -- ---------------------------------------------------------------- Phil Neal, Systems Programmer, Statistics Department GN-22 University of Washington, Seattle, Wa. 98195 USA | 206-685-1627 ---------------------------------------------------------------- "Mother Nature always bats last." Old CNR mantra