[GRASS-user] Problem configuring grass-7.0.0 related to OpenGL glX functions on Mac OS X 10.5.4, Xcode-3.1.1

2008-09-21 Thread Elvis Dowson
Hi, I am having problems configuring grass-7.0.0 specifically with the OpenGL glX functions. What should I do? Here is the output of the configure command ./configure --with-cxx --prefix=/Applications --enable-macosx-app checking whether to use OpenGL... yes checking for location

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi Michael, Thanks for the reply. Could you please tell me what I should do to make it work with X11? I am not planning to use TclTk. I am planning to use vtk-5.2.0 and Qt-4.4.1. What I need to do is to link grass-6.4.0 or 7.0.0 with X11 and then get it to work inside

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi Michael, Here is a copy of the specific error message that I am getting (cd /Users/elvis/Tool/grass-6.4.0/dist.i386-apple-darwin9.4.0/lib; ln -f -s libgrass_nviz.6.4.svn.dylib /Users/elvis/Tool/grass-6.4.0/dist.i386-apple-darwin9.4.0/lib/libgrass_nviz.dylib)

[GRASS-user] Call script automatically when launching Grass-GIS

2008-09-21 Thread Richard Chirgwin
Hi all, I have a few user machines with lots of maps to deal with, and I want to centralize the map catalogues. So what I would like to do is: - start Grass-GIS in text mode in a location (/home/user/grassdata/location) - automatically launch the script (which is a simple bash loop on g.mlist,

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi Michael, I have three copies of libGL.dylib. They are in the following folders: /usr/X11/lib /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries /System/Library/Frameworks/OpenGL.framework/Libraries/Libraries Which is the correct

Re: [GRASS-user] Call script automatically when launching Grass-GIS]

2008-09-21 Thread Luís Ferreira
Dom, 2008-09-21 às 16:53 +1000, Richard Chirgwin escreveu: Hi all, I have a few user machines with lots of maps to deal with, and I want to centralize the map catalogues. So what I would like to do is: - start Grass-GIS in text mode in a location (/home/user/grassdata/location) -

Re: [GRASS-user] Call script automatically when launching Grass-GIS

2008-09-21 Thread Hamish
Richard Chirgwin wrote: I have a few user machines with lots of maps to deal with, and I want to centralize the map catalogues. So what I would like to do is: - start Grass-GIS in text mode in a location (/home/user/grassdata/location) - automatically launch the script (which is a simple

[GRASS-user] Problems creating new map with r.mapcalc

2008-09-21 Thread Lars Forseth
Hi! I wonder if anyone could explain to me how to create a new map (raster) from two pre-existing maps, in mapcalc. Because I have problems with understanding how to do this in r.mapcalc I have two raster datasets that I would like to combine like so; if the cell is in map a, assign the value

Re: [GRASS-user] Problems creating new map with r.mapcalc

2008-09-21 Thread Lars Forseth
Argh! The NULL's were biting me ;-) Did this; [EMAIL PROTECTED] = if(isnull([EMAIL PROTECTED]), 0, 1) And lo and behold this did work; R_test14 = if([EMAIL PROTECTED], 7, [EMAIL PROTECTED]) And produced the wanted map! But could someone enlighten me as to what exactly is the reason why this

Re: [GRASS-user] Running batch files

2008-09-21 Thread John C. Tull
On Sep 20, 2008, at 1:25 PM, Kris Nackaerts wrote: Dear all, I'm new to GRASS and am interested in running analysis from the command line. My idea is to make a batch script that creates for example png files. I did search for documentation, but could not find the right information to

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread John C. Tull
On Sep 20, 2008, at 1:15 PM, Michael Barton wrote: Elvis, You can compile GRASS 6.4 with TclTk for X11 for Mac with a bit of tweaking, but I now recommend that you compile it for TclTk 8.5 aqua. You can still have X11 if you need it (e.g., for old GRASS display commands). TclTk 8.5 has

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
On Sep 21, 2008, at 10:21 AM, John C. Tull wrote: ld: cycle in dylib re-exports with /usr/X11/lib/libGL.dylib collect2: ld returned 1 exit status make: *** [/Users/jctull/sources/grass6.4.0/dist.i386-apple- darwin9.5.0/lib/libgrass_ogsf.6.4.svn.dylib] Error 1 Thanks, John This is a

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
On Sep 21, 2008, at 1:23 AM, Elvis Dowson wrote: Hi Michael, Thanks for the reply. Could you please tell me what I should do to make it work with X11? I am not planning to use TclTk. I am planning to use vtk-5.2.0 and Qt-4.4.1. What I need to do is to link grass-6.4.0 or

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Michael Barton
I'm now remembering that you discovered that we had to install the iPhone SDK to solve this. Is this included in Xcode 3.1? Michael On Sep 21, 2008, at 8:58 AM, [EMAIL PROTECTED] wrote: Date: Sun, 21 Sep 2008 10:58:27 -0500 From: William Kyngesburye [EMAIL PROTECTED] Subject: Re:

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
It was the other way around - the iphone SDK beta included Xcode 3.1. Now Xcode 3.1 is available on its own. But it doesn't look like Elvis's problem. On Sep 21, 2008, at 11:28 AM, Michael Barton wrote: I'm now remembering that you discovered that we had to install the iPhone SDK to solve

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, Here is how my PATH looks like /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/ qt-4.4.1/bin that's it. It's a new installation. The only thing that I modified was to create that new symbolic link, but I just deleted it. Do you know if

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, Upon looking more closely at the config.log configure:11340: gcc -o conftest -g -O2 conftest.c-lGL 15 ld: library not found for -lGL collect2: ld returned 1 exit status configure: failed program was: I see that ld could not find the GL libraries

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
On Sep 21, 2008, at 12:20 PM, Elvis Dowson wrote: Hi William, Upon looking more closely at the config.log configure:11340: gcc -o conftest -g -O2 conftest.c-lGL 15 ld: library not found for -lGL collect2: ld returned 1 exit status configure: failed program was:

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, Ok, I've taken your suggestions and tried it, but with identical results.Here are my export option. I still get the same error without the -g optionexport CFLAGS="-arch i386 -Os"export CXXFLAGS="-arch i386 -Os"export LDFLAGS="-arch i386 -Os"export

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, I tried all this with the latest grass-7.0.0 sources from svn, but I still get the same error. So this error exists for both grass-6.4.0 and grass-7.0.0. Best regards, Elvis Dowson On Sep 21, 2008, at 10:20 PM, William Kyngesburye wrote:

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
On Sep 21, 2008, at 1:32 PM, Elvis Dowson wrote: checking for gluBeginCurve in -lGLU... yes checking for glXCreatePbuffer... no configure: error: *** Unable to locate . I have attached the config.log file here. Please note that configure command did not complete successfully. So, I haven't

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, Here's what I've done. I downloaded the latest svn snapshot 20080920 and then did the following. Here are my environment variables export CFLAGS=-arch i386 -Os export CXXFLAGS=-arch i386 -Os export LDFLAGS=-arch i386 -Os export

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi, I even tried changing the linker options to fix this, but no such luck export LDFLAGS=-arch i386 -Os -L/usr/X11/lib -lXm -lGLU -lGL -lGLw - lX11 -lXext -lXt -lm What could be going wrong? Why can't the linked find the correct glX symbols? Best regards, Elvis Dowson On Sep

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, I think I know the reason for the glX linker errors. If I look at libGL.dylib in the /usr/X11/lib folder, it is actually a symbolic link to /System/Library/Frameworks/OpenGL.framework/Versions/ A/Libraries/libGL.dylib whose size is only 568kb. However, I

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
On Sep 21, 2008, at 3:34 PM, Elvis Dowson wrote: I get the following errors: /Users/elvis/Tool/grass-6.4.0/lib/nviz cc -dynamiclib -compatibility_version 6.4 -current_version 6.4 - install_name /usr/local/grass-6.4.svn/lib/libgrass_nviz.dylib -o /

[GRASS-user] Re: grass-user Digest, Vol 29, Issue 45

2008-09-21 Thread Michael Barton
Elvis, There is some confusion over a couple of different things here. See below. Michael On Sep 21, 2008, at 2:05 PM, [EMAIL PROTECTED] wrote: Date: Mon, 22 Sep 2008 00:34:27 +0400 From: Elvis Dowson [EMAIL PROTECTED] Subject: Re: [GRASS-user] Problems with OpenGL when compiling

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread Elvis Dowson
Hi William, Could you please tell me how to do this? This is my first time with the grass library. I don't understand where I'm going wrong or what I'm doing wrong. I dont't want nviz under python. What should I do? Best regards, Elvis Dowson On Sep 22, 2008, at

Re: [GRASS-user] Problems with OpenGL when compiling grass-6.4.0 on Mac OS X 10.5.4

2008-09-21 Thread William Kyngesburye
You mentioned at some point that there were errors in visualization/ nviz. Do you get that now? The GL problems from your system would have affected that also. If it's compiling now, you're set. On Sep 21, 2008, at 4:49 PM, Elvis Dowson wrote: Hi William, Could you

Re: [GRASS-user] error in grass 7.0 configure file

2008-09-21 Thread Hamish
Jarekj: There is a problem with grass configure sript: checking whether to use Motif... yes checking for location of Motif includes... checking for Xm/Xm.h... no configure: error: *** Unable to locate Motif includes while Xm.h is located in /usr/include/Xm and

Re: [GRASS-user] Call script automatically when launching Grass-GIS

2008-09-21 Thread Glynn Clements
Richard Chirgwin wrote: I have a few user machines with lots of maps to deal with, and I want to centralize the map catalogues. So what I would like to do is: - start Grass-GIS in text mode in a location (/home/user/grassdata/location) - automatically launch the script (which is a simple

Re: [GRASS-user] Problems creating new map with r.mapcalc

2008-09-21 Thread Glynn Clements
Lars Forseth wrote: The NULL's were biting me ;-) Did this; [EMAIL PROTECTED] = if(isnull([EMAIL PROTECTED]), 0, 1) And lo and behold this did work; R_test14 = if([EMAIL PROTECTED], 7, [EMAIL PROTECTED]) And produced the wanted map! But could someone enlighten me as to what

Re: [GRASS-user] Call script automatically when launching Grass-GIS

2008-09-21 Thread Richard Chirgwin
Glynn Clements wrote: Richard Chirgwin wrote: I have a few user machines with lots of maps to deal with, and I want to centralize the map catalogues. So what I would like to do is: - start Grass-GIS in text mode in a location (/home/user/grassdata/location) - automatically launch the