Hello <br>
<br>
Thanks for answering :-)<br>
<br>
I've succeeded to compile the raster example with the following commands :<br>
<br>
gcc -c -I /usr/lib/grass/include main.c<br>
gcc -o main -L/usr/lb/grass/lib main.o -lgrass_lib -lm<br>
<br>
But I had to remove '_' in lines such as <br>
G_fatal_error(<span style="color: rgb(255, 0, 0); font-weight: bold;">_</span>("Cannot open cell file [%s]"), name);<br>
<br>
Otherwise I would still get the PACKAGE error.<br>
And it works! (I have no idea why... :-( <br>
<br>
Thanks for your help ! It was difficult at first for me to understand
GRASS programming, but now I think I'm getting the hang of it! :-D<br><br><div><span class="gmail_quote">2006/3/30, Markus Neteler <<a href="mailto:neteler@itc.it">neteler@itc.it</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ana Soares wrote:<br><br>> Hello<br>><br>> I've installed<br>><br>>libgrass-dev <<a href="http://packages.debian.org/unstable/libdevel/libgrass-dev">http://packages.debian.org/unstable/libdevel/libgrass-dev
</a>><br>><br>>using synaptic on ubuntu.<br>><br>>But, even as root, don't have the directory<br>><br>>/usr/lib/grass/include/Make<br>><br>>so I don't have the<br>>Module.make file<br>><br>
><br>>root@ubuntu:/usr/lib/grass/include# ls<br>>CC.h cdhc.h dlg.h graph.h la.h proto_dbmi.h site.h<br>>D.h
codes.h dlg_bm.h
grass label_bm.h<br>>qtree.h sitelib.h<br>>G3d.h
colors.h edit.h
gstypes.h lapack.h raster.h spawn.h<br>>P_datetime.h config.h form.h
gsurf.h libtrans.h readsites.h
sqlp.h<br>>P_site.h<br>>dataquad.h geo.h help.h
linkm.h region_bm.h
std_incs.h<br>>Paintlib.h datetime.h geom.h
ibtree.h
lock.h rowio.h
symbol.h<br>>V_.h dbmi.h gis.h icon.h<br>>monitors.h rtree transform.h<br>>Vect.h devlib.h gisdefs.h icon_bm.h ogsf_proto.h rtree.h
vask.h<br>>bdlg_bm.h
dgl
glocale.h imagedefs.h ortholib.h search.h vbuildlib.h<br>><br>>bitmap.h dgl.h
gmath.h imagery.h patterns.h segment.h
vect<br>>blas.h dig_atts.h gproj_api.h keyframe.h
pbmplus.h
shapefil.h version.h<br>>btree.h display.h gprojects.h<br>> kftypes.h portable.h shhopt.h winname.h<br>><br>>-----<br>><br>> Can anyone help me with this problem ? Please ?<br>>
<br>><br>><br><br>Apparently you want to compile GRASS commands without having the GRASS<br>source code.<br>This wasn't possible so far, but there is a new "GRASS Extension<br>Manager" in the works<br>which should probably do what you want:
<br> <a href="http://www.uni-kiel.de/ufg/ufg_BerDucke.htm">http://www.uni-kiel.de/ufg/ufg_BerDucke.htm</a><br><br>Maybe you give it a try and report back?<br><br>Markus<br><br></blockquote></div><br>