Well, the file does not exist. I don't know if it ever did (I can't find it in the older versions in trac). Could you just try without that include line ?
Well, the file does not exist. I don't know if it ever did (I can't find it in the older versions in trac). Could you just try without that include line ?
I only see it mentioned in the make file in the line
Well, the file does not exist. I don't know if it ever did (I can't
find it in the older versions in trac). Could you just try without
that include line ?
I only see it mentioned in the make file in the line
No, actually, looking closer at this, the file should be created during compilation, but isn't.
If you run bison -d v.mapcalc.y in the directory the file is created and compilation works. So it needs some Makefile magic to provoke the creation of the file before the compilation of the rest.
The following patch seems to do the trick, but I'm not familiar enough with make to judge whether this is the right solution:
On Fri, Sep 11, 2015 at 4:56 AM, Paulo van Breugel <p.vanbreugel@gmail.com>
wrote:
I am trying to install v.mapcalc through g.extension, but I am getting the
following error message:
Fetching <v.mapcalc> from GRASS GIS Addons repository (be patient)...
Have you tried t.vect.algebra module in trunk (7.1)? I'm not sure if it
works on single vectors but it supports the following operations on a
single vector: AND, OR, DISJOINT OR, XOR, NOT, buffer_p, buffer_l, buffer_a.
On 11 September 2015 15:46:41 CEST, Vaclav Petras <wenzeslaus@gmail.com> wrote:
On Fri, Sep 11, 2015 at 4:56 AM, Paulo van Breugel
<p.vanbreugel@gmail.com>
wrote:
I am trying to install v.mapcalc through g.extension, but I am
getting the
following error message:
Fetching <v.mapcalc> from GRASS GIS Addons repository (be patient)...
Have you tried t.vect.algebra module in trunk (7.1)? I'm not sure if it
works on single vectors but it supports the following operations on a
single vector: AND, OR, DISJOINT OR, XOR, NOT, buffer_p, buffer_l,
buffer_a.
On Mon, Sep 28, 2015 at 10:48 AM, Markus Neteler <neteler@osgeo.org> wrote:
On Fri, Sep 11, 2015 at 2:40 PM, Moritz Lennert
<mlennert@club.worldonline.be> wrote:
>
> The following patch seems to do the trick, but I'm not familiar enough
with
> make to judge whether this is the right solution:
>
> Index: Makefile
> ===================================================================
> --- Makefile (révision 66168)
> +++ Makefile (copie de travail)
> @@ -13,6 +13,8 @@
>
> default: cmd
>
> +$(OBJDIR)/v.mapcalc.tab.o: v.mapcalc.tab.h
> +
> yylex.c: v.mapcalc.tab.h
>
> .INTERMEDIATE: v.mapcalc.tab.c v.mapcalc.tab.h v.mapcalc.output
For the record: submitted in r66361 (otherwise we'll never figure it out).
Paulo, please test.
The header is a dependency of the object file; the source file doesn't
have dependencies (it's a source file, not generated).
Committed in r66392.
Thanks for the fix and the explanation ! It works for me now.
Sorry for the late follow up. The add-on installs now. When trying to run it, however, nothing happens. I don't know if it has anything to do with the error/warning message I got when installing (below)?
Fetching <v.mapcalc> from GRASS GIS Addons repository (be patient)...
Compiling...
yylex.c: In function ‘yylex’:
yylex.c:32:7: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lf", &yylval.dbl);
^
Installing...
Updating addons metadata file...
WARNING: No addons metadata available. Addons metadata file not updated.
Installation of <v.mapcalc> successfully finished
The 'no addons metadata available' is something I see more often, and is probably a problem at the server side if I understood well from other email treads.
On Fri, Oct 9, 2015 at 12:30 PM, Markus Neteler <neteler@osgeo.org> wrote:
On Fri, Oct 9, 2015 at 9:54 AM, Paulo van Breugel
<p.vanbreugel@gmail.com> wrote:
...
> Sorry for the late follow up. The add-on installs now. When trying to run
> it, however, nothing happens.
It does not have a parser (yet?), so I suppose it reads from stdin.
<p.vanbreugel@gmail.com> wrote:
...
> Sorry for the late follow up. The add-on installs now. When trying to run
> it, however, nothing happens.
It does not have a parser (yet?), so I suppose it reads from stdin.
Yes.
But it doesn't have any code to read or write GRASS vectors, either.
v.mapcalc appears to be a work-in-progress which hasn't actually made
noticeable progress since it was added.
Sorry for the late follow up. The add-on installs now. When trying to run
it, however, nothing happens.
It does not have a parser (yet?), so I suppose it reads from stdin.
Yes.
But it doesn’t have any code to read or write GRASS vectors, either.
v.mapcalc appears to be a work-in-progress which hasn’t actually made
noticeable progress since it was added.
Then I suggest to remove it from the Makefile parent directory and also disable it in the addons build scripts if there is something more needed than r66406 [1] which is blacklisting it somehow already. It does not fulfill what user would expect (at least some functionality). Those who want to continue development will get it through svn.
I’m not sure happened [2] with the v.mapcalc implemented as a test case in GSoC [3] and if the functionality can be still used. But this seems like a good alternative to the code in addons.