Re: LSMetrics - addon development

Markus Metz <[email protected]>
Newsgroups gmane.comp.gis.grass.user
Message-ID <CAG+h=FFrEcib4ZhYG6Bt0BCe1M60vv13icWtaaYRZZRQ4+u0_w@mail.gmail.com>
On Thu, Feb 15, 2018 at 5:57 PM, Markus Neteler <[email protected]> wrote:
>
> On Thu, Feb 15, 2018 at 5:43 PM, Moritz Lennert
> <[email protected]> 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@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@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
> [email protected]
> https://lists.osgeo.org/mailman/listinfo/grass-user

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.