<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
I compiled r.seg in grass 6.5 (Ubuntu 10.04) but it must be the same in
grass 6.4. Just copy r.seg directory to the raster subdirectory of the
grass source code tree.<br>
cd /usr/local/grass-6.4.0svn/ratster/r.seg<br>
make<br>
when done...<br>
cd /usr/local/grass-6.4.0svn<br>
make<br>
sudo make install.<br>
<br>
Hope it helps<br>
<br>
On 06/17/2010 08:22 AM, katrin eggert wrote:
<blockquote
 cite="mid:AANLkTimns_RTv_3FrLSZGoRgD-l7xfq49Tjq1qULn4Ea@mail.gmail.com"
 type="cite">Hi there
  <div><br>
  </div>
  <div>I have tried to compile r.seg, a Segmentation developed by
Trento University. I Know this is not part of GRASS6.4 and not even an
addon but can you help me on this? (where I got the module&nbsp;<a
 moz-do-not-send="true" href="http://www.ing.unitn.it/%7Egrass/">http://www.ing.unitn.it/~grass/</a>)</div>
  <div><br>
  </div>
  <div>This is the command:sudo make -C r.seg
MODULE_TOPDIR=/usr/local/grass-6.4.0svn</div>
  <div>The output:</div>
  <div>
  <div>make: Entering directory `/home/knrr/Desktop/GRASS_dvp/r.seg'</div>
  <div>aseglib</div>
  <div>make[1]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/aseglib'</div>
  <div>make[1]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/aseglib'</div>
  <div>src</div>
  <div>make[1]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>gcc -L/usr/local/grass-6.4.0svn/lib -Wl,--export-dynamic
-Wl,-rpath-link,/usr/local/grass-6.4.0svn/lib &nbsp; &nbsp;-o
/usr/local/grass-6.4.0svn/bin/r.seg OBJ.i686-pc-linux-gnu/main.o
&nbsp;-laseg -lgrass_gis -lgrass_datetime -lz &nbsp; &nbsp; -lm &nbsp;-lz&nbsp;</div>
  <div>make htmlcmd</div>
  <div>make[2]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make /usr/local/grass-6.4.0svn/docs/html/r.seg.html
HTMLSRC=/usr/local/grass-6.4.0svn/bin/r.seg</div>
  <div>make[3]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>if [ "/usr/local/grass-6.4.0svn/bin/r.seg" != "" ] ; then
GISRC=/usr/local/grass-6.4.0svn/demolocation/grassrc64
GISBASE=/usr/local/grass-6.4.0svn
PATH="/usr/local/grass-6.4.0svn/bin:$PATH"
LD_LIBRARY_PATH="/usr/local/grass-6.4.0svn/bin:/usr/local/grass-6.4.0svn/lib:"
LC_ALL=C /usr/local/grass-6.4.0svn/bin/r.seg --html-description &lt;
/dev/null | grep -v '&lt;/body&gt;\|&lt;/html&gt;' &gt; r.seg.tmp.html
; true ; fi</div>
  <div>/usr/local/grass-6.4.0svn/tools/mkhtml.sh r.seg ; mkdir -p
/usr/local/grass-6.4.0svn/docs/html ; /usr/bin/install -c &nbsp;-m 644
r.seg.tmp.html /usr/local/grass-6.4.0svn/docs/html/r.seg.html ; for
file in &nbsp;*.png *.jpg ; do head -n 1 $file | grep '^#!' &gt; /dev/null ;
if [ $? -ne 0 ] ; then /usr/bin/install -c &nbsp;-m 644 $file
/usr/local/grass-6.4.0svn/docs/html ; fi done 2&gt; /dev/null ; true</div>
  <div>make[3]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make[2]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make mancmd</div>
  <div>make[2]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make /usr/local/grass-6.4.0svn/man/man1/r.seg.1
MANSRC=/usr/local/grass-6.4.0svn/docs/html/r.seg.html</div>
  <div>make[3]: Entering directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>mkdir -p /usr/local/grass-6.4.0svn/man/man1</div>
  <div>GRASS_PERL=/usr/bin/perl VERSION_NUMBER=6.4.0svn sh
/usr/local/grass-6.4.0svn/tools/g.html2man/g.html2man
/usr/local/grass-6.4.0svn/docs/html/r.seg.html
/usr/local/grass-6.4.0svn/man/man1/r.seg.1 1</div>
  <div>sh: Can't open
/usr/local/grass-6.4.0svn/tools/g.html2man/g.html2man</div>
  <div>make[3]: *** [/usr/local/grass-6.4.0svn/man/man1/r.seg.1] Error 2</div>
  <div>make[3]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make[2]: *** [mancmd] Error 2</div>
  <div>make[2]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make[1]: *** [cmd] Error 2</div>
  <div>make[1]: Leaving directory
`/home/knrr/Desktop/GRASS_dvp/r.seg/src'</div>
  <div>make: Leaving directory `/home/knrr/Desktop/GRASS_dvp/r.seg'</div>
  </div>
  <div><br>
  </div>
  <div>Does it seems to all ok?</div>
  <div>At my GRASS binary folder I don't have an executable
(application/x-executable) but a&nbsp;KSeg document (application/x-kseg)
that can be runned from GRASS. Is this normal/expected?&nbsp;</div>
  <div><br>
  </div>
  <div>Thanks</div>
  <div>Katrin</div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
  </pre>
</blockquote>
<br>
</body>
</html>