[GRASSLIST:5482] Re: v.in.dgn compile with error (new error)

Forward the message for problems in mail service. Excuse me if several times
recieve it

---------- Mensaje reenviado ----------

Subject: Re: [GRASSLIST:5408] v.in.dgn compile with error (new error)
Date: Mon, 3 Feb 2003 17:09:02 +0100
From: Miguel Cordero <migcordero@yahoo.es>
To: GRASSLIST@baylor.edu

Subject: Re: [GRASSLIST:5408] v.in.dgn compile with error (new error)
Date: Mon, 3 Feb 2003 17:01:52 +0100
From: Miguel Cordero <mcordero@lugo.usc.es> (by way of Miguel Cordero
<migcordero@yahoo.es>)
To: GRASSLIST@baylor.edu
Cc: warmerdam@pobox.com

El Jue 30 Ene 2003 22:14, escribió:

Hi,

I'm getting error when compile v.in.dgn.

I used grass50src_cvs_snapshot_exp_2003_01_24.tar.gz and gdal-1.1.8.tar.gz
too, but error continue:

The file "cpl_conv.h" is missing;

--------------------
miguel@kiwi:~/tmp/grass50_exp_2003_01_24$ gmake5 -i src/mapdev/v.in.dgn
  SRC = /home/miguel/tmp/grass50_exp_2003_01_24/src
  CMD = /home/miguel/tmp/grass50_exp_2003_01_24/src/CMD
  UNUSED = /home/miguel/tmp/grass50_exp_2003_01_24/unused
  HEADER = head.i586-pc-linux-gnu
  ARCH = i586-pc-linux-gnu
  GISBASE = /home/miguel/tmp/grass50_exp_2003_01_24/dist.i586-pc-linux-gnu
  VERSION = 5.0.1-cvs October 2002
#################################################################
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn
  make -f OBJ.i586-pc-linux-gnu/make.rules

gcc -I/home/miguel/tmp/grass50_exp_2003_01_24/src/include -g -O2 -c
main.c -o OBJ.i586-pc-linux-gnu/main.o

Thanks, now this is OK.
but... I get a new error !!!

I tried with
gdal-1.1.8.tar.gz in http://remotesensing.org/gdal/
dgnlib-1.6.zip in http://gdal.velocet.ca/projects/dgn/
but the result is the same.

With grass5.0.1 and grass50_exp_2003_01_24 there are some differences, but
talk about the same funcitions.

Thanks,

Miguel

With grass5.0.1:
-----------------------------------------------------------------------------
--------------- miguel@kiwi:~/tmp/grass5.0.1/src/mapdev/v.in.dgn$ gmake5 -i
  SRC = /home/miguel/tmp/grass5.0.1/src
  CMD = /home/miguel/tmp/grass5.0.1/src/CMD
  UNUSED = /home/miguel/tmp/grass5.0.1/unused
  HEADER = head.i586-pc-linux-gnu
  ARCH = i586-pc-linux-gnu
  GISBASE = /home/miguel/tmp/grass5.0.1/dist.i586-pc-linux-gnu
  VERSION = 5.0.1 January 2003
#################################################################
/home/miguel/tmp/grass5.0.1/src/mapdev/v.in.dgn
  make -f OBJ.i586-pc-linux-gnu/make.rules

gcc -I/home/miguel/tmp/grass5.0.1/src/include -g -O2 -c main.c -o
OBJ.i586-pc-linux-gnu/main.o
main.c: In function `main':
main.c:142: too few arguments to function `DGNOpen'
make: *** [OBJ.i586-pc-linux-gnu/main.o] Error 1
miguel@kiwi:~/tmp/grass5.0.1/src/mapdev/v.in.dgn$
-------------------------------------------------------------------------

and with grass50src_cvs_snapshot_exp_2003_01_24.tar.gz

-----------------------------------------------------------------------------
-------------------------

miguel@kiwi:~/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn$ gmake5 -i
  SRC = /home/miguel/tmp/grass50_exp_2003_01_24/src
  CMD = /home/miguel/tmp/grass50_exp_2003_01_24/src/CMD
  UNUSED = /home/miguel/tmp/grass50_exp_2003_01_24/unused
  HEADER = head.i586-pc-linux-gnu
  ARCH = i586-pc-linux-gnu
  GISBASE = /home/miguel/tmp/grass50_exp_2003_01_24/dist.i586-pc-linux-gnu
  VERSION = 5.0.1-cvs October 2002
#################################################################
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn
  make -f OBJ.i586-pc-linux-gnu/make.rules

gcc -L/home/miguel/tmp/grass50_exp_2003_01_24/src/libes/LIB.i586-pc-linux-gnu
-o
/home/miguel/tmp/grass50_exp_2003_01_24/dist.i586-pc-linux-gnu/etc/bin/cmd/v.
in.dgn OBJ.i586-pc-linux-gnu/main.o -lvect -ldig2 -lgis -ldl -lm -lz
OBJ.i586-pc-linux-gnu/main.o: En la función `main':
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:164:
referencia a `DGNOpen' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:170:
referencia a `DGNClose' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:176:
referencia a `DGNClose' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:194:
referencia a `DGNGetElementIndex' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:202:
referencia a `DGNFreeElement' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:204:
referencia a `DGNReadElement' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:211:
referencia a `DGNClose' sin definir
OBJ.i586-pc-linux-gnu/main.o: En la función `read_element':
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:248:
referencia a `DGNGetLinkage' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:302:
referencia a `DGNStrokeArc' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:321:
referencia a `DGNStrokeCurve' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:425:
referencia a `DGNTypeToName' sin definir
/home/miguel/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn/main.c:429:
referencia a `DGNTypeToName' sin definir
collect2: ld returned 1 exit status
make: ***
[/home/miguel/tmp/grass50_exp_2003_01_24/dist.i586-pc-linux-gnu/etc/bin/cmd/v
.in.dgn] Error 1
miguel@kiwi:~/tmp/grass50_exp_2003_01_24/src/mapdev/v.in.dgn$

-----------------------------------------------------------------------------
-------------------------------

-------------------------------------------------------

Miguel Cordero wrote:

Thanks, now this is OK.
but... I get a new error !!!

I tried with
gdal-1.1.8.tar.gz in http://remotesensing.org/gdal/
dgnlib-1.6.zip in http://gdal.velocet.ca/projects/dgn/
but the result is the same.

With grass5.0.1 and grass50_exp_2003_01_24 there are some differences, but
talk about the same funcitions.

Miguel,

I haven't been following this thread closely. Note that gdal-1.1.8 *includes*
all of dgnlib so you shouldn't generally need both. If you can force
v.in.dgn to link against libgdal.1.1.so you should be fine. The only
caveat is the need to "install" the dgnlib include files somewhere they
can be found. This can be achieved by copying the contents of
../gdal-1.1.8/ogr/ogrsf_frmts/dgn/*.h to /usr/local/include or whereever
the other gdal include files were installed.

Best regards,

--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent