[GRASS-user] bwidget

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.
After some time, compiling grass from cvs leaves me with non-executable
files in the bwidget directory. The problem is easily fixed (chmod +x),
but annoying nevertheless. Is this only my problem, or others are having
it? Does anybody have an explanation/solution for this?
All the best.
pc
- --
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmM3r/NedwLUzIr4RAqeEAJ9v0cti7JvMNlfjiHR6nwiJIGM3jACcC2A0
mgm+Ek6DeFeF/32njsjP0aE=
=vB+n
-----END PGP SIGNATURE-----

On Wed, 21 Jun 2006 06:41:15 +0200
Paolo Cavallini <cavallini@faunalia.it> wrote:

After some time, compiling grass from cvs leaves me with
non-executable files in the bwidget directory.

I didn't know they were supposed to be executable. On both my Grass
6.1 CVS 2006-06-19 and 6.02 CVS 2006_01_28 they are not. ?

Maciek

------------------------------------------------------------------------
CIEP?E KRAJE - CIEP?E MORZA. Szukasz atrakcyjnego wypoczynku w przyst?pnej cenie, zapoznaj si? z nasz? ofert?.
ZAPRASZAMY

www.skarpatravel.pl

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

If they're not executable, I get:

Error in startup script: can't find package BWidget 1.2.1
    while executing
"package require -exact BWidget 1.2.1"
    (file "/usr/lib/grass-6.1.cvs/etc/gm/gm.tcl" line 23)

BTW, with latest cvs I get:

GRASS 6.1.cvs (Toscana):~ > Error in startup script: can't read
"monitor_zooms(1,1,n)": no such variable
    while executing
"lappend region $monitor_zooms($mon,1,$attr)"
    (procedure "MapCanvas::currentzoom" line 11)
    invoked from within
"MapCanvas::currentzoom $mon"
    (procedure "MapCanvas::coordconv" line 24)
    invoked from within
"MapCanvas::coordconv $mon "
    (procedure "MapCanvas::create" line 67)
    invoked from within
"MapCanvas::create"
    (procedure "Gm::startmon" line 11)
    invoked from within
"Gm::startmon"
    (procedure "Gm::create" line 71)
    invoked from within
"Gm::create"
    (procedure "main" line 29)
    invoked from within
"main $argc $argv"
    (file "/usr/lib/grass-6.1.cvs/etc/gm/gm.tcl" line 518)

and the GIS monitor does not start.
Am I the only unlucky one?
All the best.
pc

Maciek Sieczka wrote:

On Wed, 21 Jun 2006 06:41:15 +0200
Paolo Cavallini <cavallini@faunalia.it> wrote:

After some time, compiling grass from cvs leaves me with
non-executable files in the bwidget directory.

I didn't know they were supposed to be executable. On both my Grass
6.1 CVS 2006-06-19 and 6.02 CVS 2006_01_28 they are not. ?

Maciek

- --
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmUCD/NedwLUzIr4RAs/0AJ9YU6SV0juH4OIxnpjLzTCZCGbD/wCgtlZx
2Cb+NWS2HVlE1B7JIcQWvgg=
=qgRf
-----END PGP SIGNATURE-----

Paolo Cavallini wrote on 06/21/2006 02:50 PM:

If they're not executable, I get:

Error in startup script: can't find package BWidget 1.2.1
    while executing
"package require -exact BWidget 1.2.1"
    (file "/usr/lib/grass-6.1.cvs/etc/gm/gm.tcl" line 23)

OK, fixed in CVS (lib/external/bwidget/Makefile).

=======
BTW, with latest cvs I get:

GRASS 6.1.cvs (Toscana):~ > Error in startup script: can't read
"monitor_zooms(1,1,n)": no such variable
    while executing

... no such error here.

Markus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Good!

Markus Neteler wrote:

Paolo Cavallini wrote on 06/21/2006 02:50 PM:

If they're not executable, I get:

Error in startup script: can't find package BWidget 1.2.1
    while executing
"package require -exact BWidget 1.2.1"
    (file "/usr/lib/grass-6.1.cvs/etc/gm/gm.tcl" line 23)

OK, fixed in CVS (lib/external/bwidget/Makefile).

OK, now it works - thanks!

=======
BTW, with latest cvs I get:

GRASS 6.1.cvs (Toscana):~ > Error in startup script: can't read
"monitor_zooms(1,1,n)": no such variable
    while executing

... no such error here.

The only (unrelated?) error I could spot in ./configure is:
checking whether to use GLw... yes
checking for location of GLw includes...
checking for GL/GLwMDrawA.h... no
checking for X11/GLw/GLwMDrawA.h... no
configure: error: *** Unable to locate GLwM includes.

For the rest, compilation seems to run smoothly, and this is the first
time I see this error.
Any hints?

All the best.
pc
- --
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmVBK/NedwLUzIr4RAhr1AJ9C8Pmvkjyi6ryWmFCueNA6Vi7wwACgrNor
a2alAnG0GnrqZLcsXMx8BxY=
=jF4M
-----END PGP SIGNATURE-----

Paolo,

On Wed, 21 Jun 2006 15:57:30 +0200
Paolo Cavallini <cavallini@faunalia.it> wrote:

Markus Neteler wrote:
> Paolo Cavallini wrote on 06/21/2006 02:50 PM:
>
>> If they're not executable, I get:
>> =======
>> Error in startup script: can't find package BWidget 1.2.1
>> while executing
>> "package require -exact BWidget 1.2.1"
>> (file "/usr/lib/grass-6.1.cvs/etc/gm/gm.tcl" line 23)

Just to make things clear, do you mean the tcl files
in /usr/local/grass-6.1.cvs/bwidget ?

I really never have had them executable, and all was fine. Strange.

>> =======
>> BTW, with latest cvs I get:
>> =======
>> GRASS 6.1.cvs (Toscana):~ > Error in startup script: can't read
>> "monitor_zooms(1,1,n)": no such variable
>> while executing
>
> ... no such error here.

The only (unrelated?) error I could spot in ./configure is:
checking whether to use GLw... yes
checking for location of GLw includes...
checking for GL/GLwMDrawA.h... no
checking for X11/GLw/GLwMDrawA.h... no
configure: error: *** Unable to locate GLwM includes.

For the rest, compilation seems to run smoothly, and this is the first
time I see this error.
Any hints?

I don't have this error at ./configure, unless I specify
--with-glw=yes, not having the GLw installed. Please note GLw is not
enabled by default. If you you haven't requested it, the error you
are getting is strange.

I also wonder what we need GLw for in Grass anyway? It's not even
mentioned on http://grass.itc.it/grass60/source/REQUIREMENTS.html nor
in README and INSTALL files. I've never used it.

Maciek

------------------------------------------------------------------------
CIEP?E KRAJE - CIEP?E MORZA. Szukasz atrakcyjnego wypoczynku w przyst?pnej cenie, zapoznaj si? z nasz? ofert?.
ZAPRASZAMY

www.skarpatravel.pl

Paolo Cavallini wrote:

After some time, compiling grass from cvs leaves me with non-executable
files in the bwidget directory. The problem is easily fixed (chmod +x),
but annoying nevertheless. Is this only my problem, or others are having
it? Does anybody have an explanation/solution for this?

My BWidget Tcl files don't have execute permission, and I don't have a
problem.

Or do the directories lack execute permission? That will certainly
cause problems.

Are you running with a bogus umask value (type "umask" in the shell to
find out)?

--
Glynn Clements <glynn@gclements.plus.com>

Maciek Sieczka wrote:

> The only (unrelated?) error I could spot in ./configure is:
> checking whether to use GLw... yes
> checking for location of GLw includes...
> checking for GL/GLwMDrawA.h... no
> checking for X11/GLw/GLwMDrawA.h... no
> configure: error: *** Unable to locate GLwM includes.
>
> For the rest, compilation seems to run smoothly, and this is the first
> time I see this error.
> Any hints?

I don't have this error at ./configure, unless I specify
--with-glw=yes, not having the GLw installed. Please note GLw is not
enabled by default. If you you haven't requested it, the error you
are getting is strange.

I also wonder what we need GLw for in Grass anyway? It's not even
mentioned on http://grass.itc.it/grass60/source/REQUIREMENTS.html nor
in README and INSTALL files. I've never used it.

It's only used by r3.showdspf, which is no longer compiled even if you
do use --with-glw; AFAIK, it has been superseded by the inclusion of
3D raster functionality into NVIZ.

Note that GLw requires Motif, so the test will fail if you don't have
Motif (either OpenMotif or Lesstif) installed.

--
Glynn Clements <glynn@gclements.plus.com>

Paolo Cavallini wrote:

checking for GL/GLwMDrawA.h... no
checking for X11/GLw/GLwMDrawA.h... no
configure: error: *** Unable to locate GLwM includes.

$ apt-file search GLwMDrawA.h
xlibmesa-gl-dev: usr/X11R6/include/GL/GLwMDrawA.h
xlibmesa-gl-dev: usr/include/GL/GLwMDrawA.h
[Debian/stable]

Hamish

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I know, but I'm on etch.
Anyway, Glynn explained glw is not necessary (it is compiled in the
debian package, though, and it has just been the object of a fix in the
packaging).
Thanks.
pc

Hamish wrote:

Paolo Cavallini wrote:

checking for GL/GLwMDrawA.h... no
checking for X11/GLw/GLwMDrawA.h... no
configure: error: *** Unable to locate GLwM includes.

$ apt-file search GLwMDrawA.h
xlibmesa-gl-dev: usr/X11R6/include/GL/GLwMDrawA.h
xlibmesa-gl-dev: usr/include/GL/GLwMDrawA.h
[Debian/stable]

Hamish

- --
Paolo Cavallini
email+jabber: cavallini@faunalia.it
www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEmh3U/NedwLUzIr4RAjDOAJ954woIn29sVVAGHZuNLEWTrX99nACdGyh8
5ndr9OK/0jSVu1usaxxXN/w=
=boqG
-----END PGP SIGNATURE-----

Hamish wrote:

> checking for GL/GLwMDrawA.h... no
> checking for X11/GLw/GLwMDrawA.h... no
> configure: error: *** Unable to locate GLwM includes.

$ apt-file search GLwMDrawA.h
xlibmesa-gl-dev: usr/X11R6/include/GL/GLwMDrawA.h
xlibmesa-gl-dev: usr/include/GL/GLwMDrawA.h
[Debian/stable]

That isn't sufficient; that header will try to include <Xm/Xm.h>,
which will fail if the Motif headers aren't installed.

Lacking the Motif headers is far more likely than lacking the GLw
headers; on some systems (e.g. Gentoo), the GLw headers are part of
the base X.org-X11 installation.

--
Glynn Clements <glynn@gclements.plus.com>