Hi all,
i try to compile my new command but i get some errors regarding the LAPACK/BLAS numerical math interface.
Can someone help me?
Here is my Gmakefile:
PGM=r.temperature.rst
LIBES = $(GMATHLIB) $(GISLIB) $(BLASLIB) $(LAPACKLIB) $(VECTLIB) $(DATETIMELIB) -lblas -llapack -lg2c
DEEPLIBS = $(DEPGISLIB) $(DEPVECTLIB) $(DEPDIG_ATTLIB) $(DEPDATETIMELIB)
LIST = main.o calculus.o
$(HOME)/$(PGM): $(LIST) $(DEPLIBS)
$(CC) $(LDFLAGS) -o $@ $(LIST) $(LIBES) $(MATHLIB) $(XDRLIB)
$(DEPGISLIB): #
when i compile i get this sort of message:
OBJ.i686-pc-linux-gnu/main.o(.text+0x3c4):/home/mcannata/tmp/grass5.0.2/src/ModelloIST/temperatura/main.c:165: undefined reference to `G_matrix_set_element'
and my include in my C file:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gmath.h"
#include "la.h"
#include "gis.h"
#include "site.h"
#include "local_proto.h"
int main(int argc, char *argv)
{
.......
math_struct *A;
A=G_matrix_init(3,3,3);
Thanks you all!
--------------------------------------
Eng. Massimiliano Cannata
Phd student
www.supsi.ch
Cannata, Massimiliano wrote:
i try to compile my new command but i get some errors
regarding the LAPACK/BLAS numerical math interface.
Can someone help me?
Here is my Gmakefile:
PGM=r.temperature.rst
LIBES = $(GMATHLIB) $(GISLIB) $(BLASLIB) $(LAPACKLIB)
$(VECTLIB) $(DATETIMELIB) -lblas -llapack -lg2c
You don't need the "-lblas -llapack -lg2c"; that's what $(BLASLIB)
and $(LAPACKLIB) are for.
DEEPLIBS = $(DEPGISLIB) $(DEPVECTLIB) $(DEPDIG_ATTLIB)
$(DEPDATETIMELIB)
LIST = main.o calculus.o
$(HOME)/$(PGM): $(LIST) $(DEPLIBS)
$(CC) $(LDFLAGS) -o $@ $(LIST) $(LIBES) $(MATHLIB)
$(XDRLIB)
$(DEPGISLIB): #
when i compile i get this sort of message:
OBJ.i686-pc-linux-gnu/main.o(.text+0x3c4):/home/mcannata/tmp/grass5.0.2/src/ModelloIST/temperatura/main.c:165:
undefined reference to `G_matrix_set_element'
You need to use "configure --with-blas --with-lapack ...", otherwise
those functions will be missing from libgmath.
--
Glynn Clements <glynn.clements@virgin.net>
Hello,
i'm here again, becouse I did't solve my problem.
I run:
./configure --with-blas --with-lapack libs="/usr/lib/ /usr/include/"
then i run:
make
then i run:
make install
everythings seems rigth, so i try to compile my command and there was no problem..... (gmake5 -i & gmakelinks5 -i)
...but when I try to call this command by GRASS even if it recognize the command it give me an error:
GRASS:~ > s.temperature.rst
ERROR: program 's.temperature.rst' cannot be executed because: Neither a command line (cmd) or interactive (inter) version was found
i can see that my OBJ now is .unknown and no more .i368.......
i try also to recompile an old command changing folder and command name but it give me the same error.....
have you any idea about this error and how to solve it?
Thanks a lot,
Maxi
On Wed, 13 Aug 2003 16:19:16 +0100
Glynn Clements <glynn.clements@virgin.net> wrote:
Cannata, Massimiliano wrote:
i try to compile my new command but i get some errors regarding the LAPACK/BLAS numerical math interface.
Can someone help me?
Here is my Gmakefile:
PGM=r.temperature.rst
LIBES = $(GMATHLIB) $(GISLIB) $(BLASLIB) $(LAPACKLIB) $(VECTLIB) $(DATETIMELIB) -lblas -llapack -lg2c
You don't need the "-lblas -llapack -lg2c"; that's what $(BLASLIB)
and $(LAPACKLIB) are for.
DEEPLIBS = $(DEPGISLIB) $(DEPVECTLIB) $(DEPDIG_ATTLIB) $(DEPDATETIMELIB)
LIST = main.o calculus.o
$(HOME)/$(PGM): $(LIST) $(DEPLIBS)
$(CC) $(LDFLAGS) -o $@ $(LIST) $(LIBES) $(MATHLIB) $(XDRLIB)
$(DEPGISLIB): #
when i compile i get this sort of message:
OBJ.i686-pc-linux-gnu/main.o(.text+0x3c4):/home/mcannata/tmp/grass5.0.2/src/ModelloIST/temperatura/main.c:165: undefined reference to `G_matrix_set_element'
You need to use "configure --with-blas --with-lapack ...", otherwise
those functions will be missing from libgmath.
--
Glynn Clements <glynn.clements@virgin.net>
_
--------------------------------------
Eng. Massimiliano Cannata
Phd student
www.supsi.ch
Cannata, Massimiliano wrote:
i'm here again, becouse I did't solve my problem.
I run:
./configure --with-blas --with-lapack libs="/usr/lib/
/usr/include/"
then i run:
make
then i run:
make install
everythings seems rigth, so i try to compile my command
and there was no problem..... (gmake5 -i & gmakelinks5 -i)
...but when I try to call this command by GRASS even if it
recognize the command it give me an error:
GRASS:~ > s.temperature.rst
ERROR: program 's.temperature.rst' cannot be executed
because: Neither a command line (cmd) or interactive
(inter) version was found
i can see that my OBJ now is .unknown and no more
.i368.......
i try also to recompile an old command changing folder and
command name but it give me the same error.....
have you any idea about this error and how to solve it?
Odd.
Start by cleaning out the build tree with "make distclean"; this
should be done whenever you re-run configure. Then re-build everything
with "make". At that point, you can run the completed build using the
"grass5" script in bin.<arch> (e.g. bin.i686-pc-linux-gnu).
--
Glynn Clements <glynn.clements@virgin.net>