[GRASS-user] Compiling addons
Dear all, I have compiled grass using the instructions available at http://trac.osgeo.org/grass/wiki/CompileOnWindows But now I need to compile some Addons, and I must confess that I have no idea of how to do that. I know that I need to download the addons sources, but I can't figure out what steps I need to do to get it compiled and installed on the proper direction. I am using OSGeo4W/MSYS under Vista. I need to compile the full grass again or I can just compile the add-ons? Case the answer is to compile only the add-ons, what steps/command I need to run under Msys to get it compiled/installed. Thanks in advance, milton ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons
compile the addons - I put them into the raster folder of the grass sources make make install then recompile grass. hth Stephen On Mon, Dec 28, 2009 at 3:48 PM, Milton Cezar Ribeiro miltinho.astrona...@gmail.com wrote: Dear all, I have compiled grass using the instructions available at http://trac.osgeo.org/grass/wiki/CompileOnWindows But now I need to compile some Addons, and I must confess that I have no idea of how to do that. I know that I need to download the addons sources, but I can't figure out what steps I need to do to get it compiled and installed on the proper direction. I am using OSGeo4W/MSYS under Vista. I need to compile the full grass again or I can just compile the add-ons? Case the answer is to compile only the add-ons, what steps/command I need to run under Msys to get it compiled/installed. Thanks in advance, milton ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user -- Stephen Sefick Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons - description.html
On Mon, Aug 17, 2009 at 4:50 PM, John A Stevensonjohn.steven...@manchester.ac.uk wrote: Markus Neteler wrote: John: you can simply copy the file tools/mkhtml.sh manually to /usr/local/grass-6.5.svn/tools/ and don't have to wait for a new release. Please tell me if it solves the problem. Hi Markus, It works now. Magic! Great! I cleared my old installation directory, ran svn up on develbranch_6, compiled and reinstalled. So that's finally done - perhaps not in an exciting way but that's what we have GRASS 7 for :) cheers, Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons - description.html
On Fri, Aug 14, 2009 at 10:55 PM, Markus Netelernete...@osgeo.org wrote: ... if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html ; fi done 2 /dev/null ; true /bin/sh: /usr/local/grass-6.5.svn/tools/mkhtml.sh: not found make[2]: Leaving directory ... Doh! mkhtml.sh: not found! That's no good. Fixed in 6.4 and 6.5. John: you can simply copy the file tools/mkhtml.sh manually to /usr/local/grass-6.5.svn/tools/ and don't have to wait for a new release. Please tell me if it solves the problem. Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons - description.html
Hi John, On Thu, Aug 13, 2009 at 1:12 PM, John A Stevensonjohn.steven...@manchester.ac.uk wrote: Markus Neteler wrote: g.extension r.denoise g.extension r.surf.volcano and everything should be installed. If also g.extension fails, there might be a bug in the install part. Hi Markus, I tried with g.extension. I had to change the permissions so that I owned the directory (previously I'd done all my installation via sudo, (I personally never install but just use GRASS from the compile directory, for convenience I added a link to /usrlocal/bin/) but sudo doesn't work with GRASS commands). I darkly remember some discussion on this but don't recall the tricks (see mailing list archive). It says that it was successful, but I don't think that it has changed the files for r.denoise or r.surf.volcano. While you have 2730 bytes for r.surf.volcano.html, I have 5244. It's strange that you don't see an error but also no complete file. Apparently the install part fails when using a real installation like you. Frankly, my take at getting make install working may be flawed since I am no (good) Makefile programmer but so far noone else picked it up. In GRASS 7 things are organized differently, so we cannot easily borrow from there. The HTML pages are dated from when I was testing yesterday. I tried with v.krige, received a success message, but neither module or manual page were installed. I've attached sample output below. ... /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts/r.surf.volcano --html-description /dev/null | grep -v '/body\|/html' r.surf.volcano.tmp.html ; true ; fi ... above should create the complete manual page. then it is installed: ... /usr/bin/install -c -m 644 r.surf.volcano.tmp.html /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html ; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html ; fi done 2 /dev/null ; true /bin/sh: /usr/local/grass-6.5.svn/tools/mkhtml.sh: not found make[2]: Leaving directory ... Doh! mkhtml.sh: not found! That's no good. So I see that I have a local copy in my dist directory but that the Makefile doesn't reflect this (so apparently I copied it over manually and then forgot about this). @devs: how is tools/mkhtml.sh best copied into the binary tree? Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons - description.html
Markus Neteler wrote: but sudo doesn't work with GRASS commands). I darkly remember some discussion on this but don't recall the tricks (see mailing list archive). sudo will reset the environment unless -E is used (and the setenv option is enabled in the sudoers file). Also, the loader will typically clear any variables related to dynamic loading (LD_LIBRARY_PATH etc) when running a setuid/setgid binary such as sudo. That's why $GISBASE/etc/grass-run.sh exists: to run a command with LD_LIBRARY_PATH restored from $GRASS_LD_LIBRARY_PATH (this is necessary when running a GRASS command in an xterm, as the xterm binary may be setuid/setgid). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons - description.html
Markus Neteler wrote: g.extension r.denoise g.extension r.surf.volcano and everything should be installed. If also g.extension fails, there might be a bug in the install part. Hi Markus, I tried with g.extension. I had to change the permissions so that I owned the directory (previously I'd done all my installation via sudo, but sudo doesn't work with GRASS commands). It says that it was successful, but I don't think that it has changed the files for r.denoise or r.surf.volcano. The HTML pages are dated from when I was testing yesterday. I tried with v.krige, received a success message, but neither module or manual page were installed. I've attached sample output below. Cheers John GRASS 6.5.svn (thingy):~/laptop/grassdata/thingy g.extension r.surf.volcano Fetching r.surf.volcano from GRASS-Addons SVN (be patient)... Ar.surf.volcano/r.surf.volcano Ar.surf.volcano/description.html Ar.surf.volcano/Makefile Checked out revision 38709. Compiling r.surf.volcano... /usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: overriding commands for target `install' /usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring old commands for target `install' if [ ! -d /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts ]; then mkdir -p /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts; fi /usr/bin/install -c r.surf.volcano /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts/r.surf.volcano make htmlscript scriptstrings make[1]: Entering directory `/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano' /usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: overriding commands for target `install' /usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring old commands for target `install' make /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html HTMLSRC=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts/r.surf.volcano make[2]: Entering directory `/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano' /usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: overriding commands for target `install' /usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring old commands for target `install' if [ /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts/r.surf.volcano != ] ; then GISRC=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/demolocation/.grassrc65 GISBASE=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu PATH=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/bin:$PATH LD_LIBRARY_PATH=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/bin:/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/lib:/usr/local/grass-6.5.svn/lib LC_ALL=C /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/scripts/r.surf.volcano --html-description /dev/null | grep -v '/body\|/html' r.surf.volcano.tmp.html ; true ; fi /usr/local/grass-6.5.svn/tools/mkhtml.sh r.surf.volcano ; mkdir -p /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html ; /usr/bin/install -c -m 644 r.surf.volcano.tmp.html /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html/r.surf.volcano.html ; for file in *.png *.jpg ; do head -n 1 $file | grep '^#!' /dev/null ; if [ $? -ne 0 ] ; then /usr/bin/install -c -m 644 $file /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/docs/html ; fi done 2 /dev/null ; true /bin/sh: /usr/local/grass-6.5.svn/tools/mkhtml.sh: not found make[2]: Leaving directory `/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano' GISRC=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/demolocation/.grassrc65 GISBASE=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu PATH=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/bin:$PATH LD_LIBRARY_PATH=/usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/lib:/usr/local/grass-6.5.svn/lib g.parser -t r.surf.volcano | sed s/\/\/g | sed 's/.*/_()/' /usr/local/grass-6.5.svn/locale/scriptstrings/r.surf.volcano_to_translate.c ; true /bin/sh: cannot create /usr/local/grass-6.5.svn/locale/scriptstrings/r.surf.volcano_to_translate.c: Directory nonexistent make[1]: Leaving directory `/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano' make mancmd make[1]: Entering directory `/media/OS/Users/mbessjs3/Documents/grassdata/thingy/PERMANENT/.tmp/mbessjs3-pc/18662.0/r.surf.volcano' /usr/local/grass-6.5.svn/include/Make/Script.make:47: warning: overriding commands for target `install' /usr/local/grass-6.5.svn/include/Make/Rules.make:82: warning: ignoring old commands for target `install' make /usr/local/src/grass/develbranch_6/dist.i686-pc-linux-gnu/man/man1/r.surf.volcano.1
[GRASS-user] Compiling addons - description.html
Hi, When compiling addons, how do I make the description.html file that comes with the addon be installed as the help page that loads with g.manual? Currently, I am getting a short page with just the commands as generated by g.parser. e.g. in grass-addons/raster/r.denoise, or r.surf.volcano sudo make MODULE_TOPDIR=/usr/local/grass-6.5.svn sudo make MODULE_TOPDIR=/usr/local/grass-6.5.svn install Cheers John -- Dr John Stevenson Postdoctoral Research Associate School of Earth, Atmospheric and Environmental Sciences Williamson Building University of Manchester Manchester M13 9PL UK tel. +44(0)161 306 9360; fax. +44(0)161 306 9361; john.steven...@manchester.ac.uk ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
On 04/08/08 14:52, gianluca massei wrote: Thanks Moritz , great tip! I'm working in a module that implemented ELECTRE algorithm. I've just finisced a module named /r.roughset/ for knowledg discovery with rough set based on rough set library. You can download the source code from grass wiki (http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy if sameone caould try it and report me tips or bugs. It would be easier to test if the module description was a bit more elaborate. You should add a description.html with at least a 'Notes' section to explain the module and its parameters. [BTW, you might want to clean up the source tar ball a bit and delete the temporary files it includes, i.e. r.roughset.tmp.html and the ~ files.] Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Compiling addons from svn repository
I've clean up a little bit r.roughset and I've write some explanation note. In the next weeks I'll improve documentation (and the English !) Thanks Gianluca Moritz Lennert ha scritto: On 04/08/08 14:52, gianluca massei wrote: Thanks Moritz , great tip! I'm working in a module that implemented ELECTRE algorithm. I've just finisced a module named /r.roughset/ for knowledg discovery with rough set based on rough set library. You can download the source code from grass wiki (http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy if sameone caould try it and report me tips or bugs. It would be easier to test if the module description was a bit more elaborate. You should add a description.html with at least a 'Notes' section to explain the module and its parameters. [BTW, you might want to clean up the source tar ball a bit and delete the temporary files it includes, i.e. r.roughset.tmp.html and the ~ files.] Moritz Database dei virus interno non c aggiornato. Controllato da AVG - http://www.avg.com Versione: 8.0.138 / Database dei virus: 270.5.10/1584 - Data di rilascio: 31/07/2008 12.00 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Compiling addons from svn repository
Dear all: I would like to install an add-on for GRASS 6.3.1 called i.pr that appears to be available on the svn repository. I never used the svn repository so I find it a bit challenging (I cannot fully understand the instructions on http://www.hpcc.nectec.or.th/grass/download/addons.php). Could anyone tell me which code should I write at the bash in order to download and compile the add-on? (any detailed link would do). Thank you very much Eduardo Corbelle PS: I'm not sure whether it is relevant, but I'm running grass on Debian Lenny and I have the Subversion client installed. ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user