Paul,
Using the PROJ.4 nad2bin worked. I needed to delete the empty etc/nad directory first.
I think it's better to get the nad2bin and project.h from the external PROJ.4.
Thanks for your help.
- Bev
-----Original Message-----
From: Paul Kelly [SMTP:paul-grass@stjohnspoint.co.uk]
Sent: Wednesday, September 17, 2003 8:31 AM
To: Wallace, Beverly T
Subject: RE: [GRASS5] Solaris, GRASS 5.1, and ProjHello
I will look into that, but it's not important for now as we can use the
installed nad2bin from PROJ.4 (the Makefile assumes it is somewhere in
your path and it can just run it as 'nad2bin'; maybe you need to change
that if you have installed it somewhere else.Just have
NAD2BIN = /path/to/nadbin
and
$(NAD2BIN): #in the Makefile. If you were cross-compiling for another architecture then
the nad2bin that had just been compiled would not run on the compiling
computer, hence it is quite important to use the installed version.But I will have a look at it anyway. Maybe need to copy projects.h back.
Paul
On Tue, 16 Sep 2003, Wallace, Beverly T wrote:
> Hi Paul,
>
> I tried the new Makefile. It makes the lib OK. But when it is making nad2bin, it can't find projects.h.
> Below, ellipse.c has the proj include path from PROJINC (/sim/home1/Grass/proj/sol/include), but nad2bin.c does not.
>
> gcc -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/include
> -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/include
> -g -Wall -Wall -Wconversion -Wno-implicit-int -fPIC
> -I/sim/home1/Grass/proj/sol/include
> -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/include
> -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/include \
> -o OBJ.sparc-sun-solaris2.9/ellipse.o -c ellipse.c
> ellipse.c: In function `GPJ_get_ellipsoid_by_name':
> ellipse.c:148: warning: unused variable `i'
> ellipse.c: At top level:
> /sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/include/gis.h:36: warning:
> `GRASS_copyright' defined but not used
>
> gcc -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/include
> -I/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/include
> -g -Wall -Wall -Wconversion -Wno-implicit-int -fPIC
> -L/sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/lib
> nad2bin.c -o nad2bin
> nad2bin.c:8: projects.h: No such file or directory
> make: *** [nad2bin] Error 1
>
> - Bev
>
> > -----Original Message-----
> > From: Paul Kelly [SMTP:paul-grass@stjohnspoint.co.uk]
> > Sent: Tuesday, September 16, 2003 12:29 PM
> > To: Wallace, Beverly T
> > Cc: grass5@grass.itc.it
> > Subject: RE: [GRASS5] Solaris, GRASS 5.1, and Proj
> >
> > Yes, that was a bug in the lib/proj/Makefile in 5.1. I fixed it on the 8th
> > September so your snapshot is just two days too old...you can get the
> > updated file from
> > http://freegis.org/cgi-bin/viewcvs.cgi/*checkout*/grass51/lib/proj/Makefile
> >
> > There were actually two bugs in the file, which is why you were having so
> > much trouble: you correctly saw that the NAD_DIR= line should be above the
> > $(NAD_DIR): line, but also all references to $(NAD2BIN) should have been
> > replaced by nad2bin, as in 5.1/5.7 we use the installed nad2bin command
> > from the PROJ.4 distribution and don't compile it from source (I had
> > copied the Makefile over from 5.0 and forgot to change some things).
> >
> > Paul
> >
> > > If I modify the Makefile to move the "NAD_DIR =" line after the "NT_TABLE=" line, I get a different error message:
> > > mkdir: Failed to make directory "/etc/nad"; Permission denied
> > > make: *** [/etc/nad] Error 2
> > > It seems to have lost $(GISBASE).
> >
> > Don't know how that would happen---must be something to do with the order>
> > of things in the Makefile again
> >
> > >
> > > If I also change $@ to $(NAD_DIR) in the $(NAD_DIR) target, the error messages are:
> > > wallace<640> make
> > > for i in FL.lla MD.lla TN.lla WI.lla WO.lla alaska.lla conus.lla hawaii.lla
> > > prvi.lla stgeorge.lla stlrnc.lla stpaul.lla ; do < $i
> > > /sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/etc/n
> > > ad/`echo $i | sed 's/.lla//'`; done
> > > /bin/sh:
> > > /sim/home1/Grass/grass5.1/grass51_exp_2003_09_06/dist.sparc-sun-solaris2.9/etc/n
> > > ad/FL: not found
> >
> > Yes nothing was subtituted for $(NAD2BIN) in the above command line so it
> > didn't make sense---the Makefile rules for compiling nad2bin from the 5.0
> > Gmakefile don't seem to work here (I don't understand why) but it doesn't
> > matter anyway as the installed nad2bin from PROJ.4 is used now.
> >
>