[GRASSLIST:5585] Re: GRASS 5.0.1 compilation issues

I have all the required libraries installed (tiff, png, gd, ...). Sounds like
there may be library path issues.

Running d.where also had some troubles. When I issued the command, an endless
stream of coordinate were displayed until I made the 1st mouse click. Then the
command worked as it should (1 pair of coordinates per mouse click).

I'm going to recompile and write out the make output to a file.

Wayne Gibson

From: Glynn Clements <glynn.clements@virgin.net>
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
To: grasslist@baylor.edu
Subject: [GRASSLIST:5568] Re: GRASS 5.0.1 compilation issues
X-IMID: elron.baylor.edu
X-OriginalArrivalTime: 16 Feb 2003 18:16:36.0873 (UTC)

FILETIME=[8B29CF90:01C2D5E7]

X-Listprocessor-Version: 8.2.10/991025/16:55 -- ListProc(tm) by CREN

Andreas Lange wrote:

> I'm attempting to compile GRASS 5.0.1 on a SunBlade 1000. There are quite

a few

> "failed" messages in the config.log file. I assume that is normal. When I
> "make" the package, the only errors written to "error.log" are
>
> Compilation error in module: src/raster/r.tiff (ignored)
> Compilation error in module: src/display/devices/PNGdriver (ignored)

You need to install tiff and png packages (from www.sunfreeware.com) for
the required libraries.

He didn't report an error regarding r.{in,out}.png, so I suspect that
he has the PNG libraries, and it's the lack of the GD library which is
causing PNGdriver to fail.

--
Glynn Clements <glynn.clements@virgin.net>

-----------------------
Wayne Gibson
Oregon State University
gibson@coas.oregonstate.edu
(541) 737-5696

Wayne Gibson wrote:

Running d.where also had some troubles. When I issued the command,
an endless stream of coordinate were displayed until I made the 1st
mouse click. Then the command worked as it should (1 pair of
coordinates per mouse click).

I've found the bug. FWIW, it occurs when an uninitialised variable
happens to contain -1.

You can obtain an updated version of the file from:

http://freegis.org/cgi-bin/viewcvs.cgi/*checkout*/grass/src/display/devices/XDRIVER/XDRIVER24/Get_w_pnt.c?rev=1.11&content-type=text/plain

The file in question is:

src/display/devices/XDRIVER/XDRIVER24/Get_w_pnt.c

--
Glynn Clements <glynn.clements@virgin.net>