Hello,
I am trying to compile the v.example for Grass 7. I have downloaded it and compile with make. However, it doesn’t work, I obtain the following error:
gcc -g -Wall -I/usr/local/grass-7.0.0beta1/include -I/usr/local/grass-7.0.0beta1/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/local/include -DPACKAGE="“grassmods”" -I/usr/local/grass-7.0.0beta1/include -I/usr/local/grass-7.0.0beta1/include -o OBJ.i686-pc-linux-gnu/main.o -c main.c
main.c: In function ‘main’:
main.c:132:9: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘struct dbDriver *’ [-Wformat=]
Fi->database, driver);
^
: && gcc -L/usr/local/grass-7.0.0beta1/lib -L/usr/local/grass-7.0.0beta1/lib -Wl,–export-dynamic -L/usr/lib -Wl,-rpath-link,/usr/local/grass-7.0.0beta1/lib -o /usr/local/grass-7.0.0beta1/bin/v.example OBJ.i686-pc-linux-gnu/main.o -lgrass_vector.7.0.0beta1 -lgrass_gis.7.0.0beta1 -lm
/usr/bin/ld: OBJ.i686-pc-linux-gnu/main.o: referencia sin definir al símbolo ‘db_fetch’
/usr/local/grass-7.0.0beta1/lib/libgrass_dbmiclient.7.0.0beta1.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [/usr/local/grass-7.0.0beta1/bin/v.example] Error 1
The dynamic library dbmiclient.7.0.0beta1.so is not installed in my lib directory.
Any help? I am using Ubuntu 14.04.
Thanks in advance,