[GRASS-user] LSMetrics - addon development

Markus Metz markus.metz.giswork at gmail.com
Thu Feb 15 10:49:01 PST 2018


On Thu, Feb 15, 2018 at 5:57 PM, Markus Neteler <neteler at osgeo.org> wrote:
>
> On Thu, Feb 15, 2018 at 5:43 PM, Moritz Lennert
> <mlennert at club.worldonline.be> wrote:
> > On 12/02/18 18:01, Bernardo Santos wrote:
> ...
> >> Regarding the comparison with the other GRASS tools, LSMetrics is
> >> complementary to many of the functions the r.li suite offers. I still
could
> >> not test r.pi since I had some trouble installing it, but I'll try it
again
> >> so that I can compare both packages. I believe they are also somehow
> >> complementary in many of the functions.
> >
> >
> > Yes, r.pi installation is still an issue.
>
> I have probably fixed it in r72243. Please try.
>
> But: I get this compilation error (probably easy to fix but I have no
> time right now):
>
> [mneteler at oboe r.pi.library ]$ make MODULE_TOPDIR=~/software/grass74
> gcc -shared -o
/home/mneteler/software/grass74/dist.x86_64-pc-linux-gnu/lib/
libgrass_rpi.7.4.1svn.so
> -L/home/mneteler/software/grass74/dist.x86_64-pc-linux-gnu/lib
> -L/home/mneteler/software/grass74/dist.x86_64-pc-linux-gnu/lib
> -Wl,--no-undefined -Wl,-z,now -Wl,--export-dynamic
>
-Wl,-rpath-link,/home/mneteler/software/grass74/dist.x86_64-pc-linux-gnu/lib
> -Wl,-soname,libgrass_rpi.7.4.1svn.so OBJ.x86_64-pc-linux-gnu/draw.o
> OBJ.x86_64-pc-linux-gnu/frag.o OBJ.x86_64-pc-linux-gnu/helpers.o
> OBJ.x86_64-pc-linux-gnu/stat_method.o  -lgrass_gis.7.4.1svn -lm  -lm
> OBJ.x86_64-pc-linux-gnu/draw.o: In function `draw_line':
>
/home/mneteler/software/grass-addons/grass7/raster/r.pi/r.pi.library/draw.c:38:
> undefined reference to `swap'
>
/home/mneteler/software/grass-addons/grass7/raster/r.pi/r.pi.library/draw.c:39:
> undefined reference to `swap'
>
/home/mneteler/software/grass-addons/grass7/raster/r.pi/r.pi.library/draw.c:43:
> undefined reference to `swap'
>
/home/mneteler/software/grass-addons/grass7/raster/r.pi/r.pi.library/draw.c:44:
> undefined reference to `swap'
> collect2: error: ld returned 1 exit status
> make: *** [/home/mneteler/software/grass74/include/Make/Shlib.make:10:
> /home/mneteler/software/grass74/dist.x86_64-pc-linux-gnu/lib/
libgrass_rpi.7.4.1svn.so]
> Error 1

swap is in draw.c L3-9

I can not reproduce this error. Do you have any changes in your local copy?
Maybe also try make clean, then make again, because

[mneteler at oboe r.pi.library ]$ make MODULE_TOPDIR=~/software/grass74

should produce a lot more output.

Markus M

>
> Then g.extension will probably work with r.pi.
>
> Markus
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20180215/1f5e414d/attachment.html>


More information about the grass-user mailing list