Hi Glynn
I had ran the "make" file, and I have a directory
(OBJ.x86_64-unknown-linux-gnu) in r.example (together with the main.c,
makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory I found
and object file (main.o). Excuse me, but I don't know what to do with
this file. Can I execute it from grass??? Compile it with gcc??? Run it
directly???
Again, thanks for your help, and again, excuse me for the insistence.
Juan Diego Giraldo Osorio
UPCT
España
Juan Diego Giraldo Osorio wrote:
> Thanks for your help. The question about the folder permission is
> overcome. Now, when I had compiled the r.example code, I had followed
> the next procedure:
>
> - Get in to the dir
> cd /usr/COMPILA_GRASS62/doc/raster/r.example
>
> - in this folder is located the code. And I try to compile here:
> gcc main.c -o main
>
> You're telling me about a makefile. Is it necessary? If is necessary,
> how do I use the makefile???
Run "make" from the r.example directory, i.e.:
cd /usr/COMPILA_GRASS62/doc/raster/r.example
make
--
Glynn Clements <glynn@gclements.plus.com>
On 29/05/07 15:30, Juan Diego Giraldo Osorio wrote:
Hi Glynn
I had ran the "make" file, and I have a directory
(OBJ.x86_64-unknown-linux-gnu) in r.example (together with the main.c,
makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory I found
and object file (main.o). Excuse me, but I don't know what to do with
this file. Can I execute it from grass??? Compile it with gcc??? Run it
directly???
You should also find an executable r.example in
dist.i486-pc-linux-gnu/bin
This is the module you can run.
Moritz
Hi everybody
Thanks for help me. But, the problems are new. I had found the r.example
executable file in the directory:
/home/jdgiraldo/grass-6.2.1/dist.x86_64-unknown-linux-gnu/bin
I access in this directory (cd /home/...) and try to execute the r.example:
./r.example
the mistakes are the next:
./r.example: error while loading shared libraries: libgrass_gis.so:
cannot open shared object file: No such file or directory
I have this file (libgrass_gis.so) in
/usr/local/grass-6.2.1/lib/libgrass_gis.so
Thanks again.
Juan Diego Giraldo Osorio
UPCT
España
On 29/05/07 15:30, Juan Diego Giraldo Osorio wrote:
> Hi Glynn
>
> I had ran the "make" file, and I have a directory
> (OBJ.x86_64-unknown-linux-gnu) in r.example (together with the main.c,
> makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory I found
> and object file (main.o). Excuse me, but I don't know what to do with
> this file. Can I execute it from grass??? Compile it with gcc??? Run it
> directly???
You should also find an executable r.example in
dist.i486-pc-linux-gnu/bin
This is the module you can run.
Moritz
Hi Juan,
you have to run GRASS commands *inside* GRASS, means, that
you have to launch GRASS first. Then all paths will be
defined.
There are some possibilities to call GRASS commands from
"outside", see:
http://grass.gdf-hannover.de/wiki/GRASS_and_Shell
http://grass.gdf-hannover.de/wiki/Category:Linking_to_other_languages
Markus
On Tue, May 29, 2007 at 05:10:17PM +0200, Juan Diego Giraldo Osorio wrote:
Hi everybody
Thanks for help me. But, the problems are new. I had found the r.example
executable file in the directory:
/home/jdgiraldo/grass-6.2.1/dist.x86_64-unknown-linux-gnu/bin
I access in this directory (cd /home/...) and try to execute the r.example:
./r.example
the mistakes are the next:
./r.example: error while loading shared libraries: libgrass_gis.so:
cannot open shared object file: No such file or directory
I have this file (libgrass_gis.so) in
/usr/local/grass-6.2.1/lib/libgrass_gis.so
Thanks again.
Juan Diego Giraldo Osorio
UPCT
España
> On 29/05/07 15:30, Juan Diego Giraldo Osorio wrote:
> > Hi Glynn
> >
> > I had ran the "make" file, and I have a directory
> > (OBJ.x86_64-unknown-linux-gnu) in r.example (together with the main.c,
> > makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory I found
> > and object file (main.o). Excuse me, but I don't know what to do with
> > this file. Can I execute it from grass??? Compile it with gcc??? Run it
> > directly???
>
> You should also find an executable r.example in
>
> dist.i486-pc-linux-gnu/bin
>
> This is the module you can run.
>
> Moritz
>
>
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
Thanks Markus, I'll see the web pages and I'll continue trying with
grass programing.
Juan.
Hi Juan,
you have to run GRASS commands *inside* GRASS, means, that
you have to launch GRASS first. Then all paths will be
defined.
There are some possibilities to call GRASS commands from
"outside", see:
http://grass.gdf-hannover.de/wiki/GRASS_and_Shell
http://grass.gdf-hannover.de/wiki/Category:Linking_to_other_languages
Markus
On Tue, May 29, 2007 at 05:10:17PM +0200, Juan Diego Giraldo Osorio wrote:
> Hi everybody
>
> Thanks for help me. But, the problems are new. I had found the r.example
> executable file in the directory:
>
> /home/jdgiraldo/grass-6.2.1/dist.x86_64-unknown-linux-gnu/bin
>
> I access in this directory (cd /home/...) and try to execute the
r.example:
>
> ./r.example
>
> the mistakes are the next:
>
> ./r.example: error while loading shared libraries: libgrass_gis.so:
> cannot open shared object file: No such file or directory
>
> I have this file (libgrass_gis.so) in
>
> /usr/local/grass-6.2.1/lib/libgrass_gis.so
>
> Thanks again.
>
> Juan Diego Giraldo Osorio
> UPCT
> España
>
>
>
> > On 29/05/07 15:30, Juan Diego Giraldo Osorio wrote:
> > > Hi Glynn
> > >
> > > I had ran the "make" file, and I have a directory
> > > (OBJ.x86_64-unknown-linux-gnu) in r.example (together with the
main.c,
> > > makefile, ... files). In OBJ.x86_64-unknown-linux-gnu directory
I found
> > > and object file (main.o). Excuse me, but I don't know what to do
with
> > > this file. Can I execute it from grass??? Compile it with gcc???
Run it
> > > directly???
> >
> > You should also find an executable r.example in
> >
> > dist.i486-pc-linux-gnu/bin
> >
> > This is the module you can run.
> >
> > Moritz
> >
> >
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev@grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass-dev
_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev
Markus Neteler wrote:
you have to run GRASS commands *inside* GRASS, means, that
you have to launch GRASS first. Then all paths will be
defined.
To start the version of GRASS which has just been compiled, without
having to install it, run "bin.i486-pc-linux-gnu/grass62".
--
Glynn Clements <glynn@gclements.plus.com>