<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 3, 2018 at 9:50 AM, Vidura Dantanarayana <span dir="ltr"><<a href="mailto:vidurada@gmail.com" target="_blank">vidurada@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi all,</div><div><div> I have installed ubuntu, downloaded the source code from <a href="https://grass.osgeo.org/grass74/source/grass-7.4.1.tar.gz" target="_blank">https://grass.osgeo.org/<wbr>grass74/source/grass-7.4.1.<wbr>tar.gz</a>
and installed grass-dev package. Since I do not have experience with c
can you again briefly explain how to do changes and compile the code. Is the workflow following is correct to do what I
intended.</div><div><br></div><div>1) copy r.ros folder from grass-7.4.1/raster and rename it as r.new.ros</div><div>2) make relevant changes to main.c file in r.new.ros</div></div></div></blockquote><div><br></div><div><br></div><div>Yes and yes.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>3) compile the code with 'make' command.<br></div></div></div></blockquote><div><br></div><div>You will need to provide parameters to help make find the GRASS GIS installation and where to put the compiled module. The g.extension module will do this for you if you do something like this:<br></div><div><br></div><div>g.extension extension=r.new.ros url=/path/to/r.new.ros<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><br></div><div>* can you explain what the grass-dev package does.</div></div></div></blockquote><div><br></div><div>Usually, for most packages on Linux, the files needed for development, e.g. linking with the library, are not distributed together with the library and program in the package without -dev (since unless you do development you don't need them). If you install the grass-dev package you get, for example the C header files for the libraries (that's actually most of what you get). You can list all these files using:<br></div><div><br></div><div>dpkg --listfiles grass-dev<br></div><div><br></div><div>Additionally, you should also get all the compile-time dependencies of GRASS GIS not only the runtime ones which is very useful.<br></div><div><br></div><div>HTH,<br></div><div>Vaclav<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div>Thank you. Have a nice day.<br><br></div><div>BR,</div><div>Vidura Dantanarayana</div></div></div>
<br>______________________________<wbr>_________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/grass-dev</a><br></blockquote></div><br></div></div>