[ncl-install] Cannot build without triangle.h
David Brown
dbrown at ucar.edu
Tue Nov 13 14:50:15 MST 2007
Hi Orion,
You are right. There is a bug in our conditional code. You can fix it
by editing
CnTriMeshRenderer.c in <yourpath>ncarg/ni/src/lib/hlu with this diff:
RCS file: /fs/scd/home1/ncargd/CVS/ncarg/ni/src/lib/hlu/
CnTriMeshRenderer.c,v
retrieving revision 1.9
diff -r1.9 CnTriMeshRenderer.c
32a33
> #ifdef BuildTRIANGLE
34a36
> #endif
Essentially that just puts
#ifdef BuildTRIANGLE
#endif
around the lines
#define REAL double
#include <ncarg/hlu/triangle.h>
Thanks for finding this.
-dave
On Nov 13, 2007, at 12:46 PM, Orion Poplawski wrote:
> I'm trying to build NCL without triangle support. I set:
>
> #define BuildTRIANGLE FALSE
>
> in my Site.local file, but I still get:
>
> gcc -ansi -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -
> fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -
> march=i386 -mtune=generic -fasynchronous-unwind-tables -O
> -I../../../.././include -I/usr/include/netcdf-3 -DLinux -
> D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -
> o CnTriMeshRenderer.o CnTriMeshRenderer.c
> CnTriMeshRenderer.c:34:32: error: ncarg/hlu/triangle.h: No such
> file or directory
>
> Looks like BuildTRIANGLE does not properly disable triangle support.
>
> --
> Orion Poplawski
> Technical Manager 303-415-9701 x222
> NWRA/CoRA Division FAX: 303-415-9702
> 3380 Mitchell Lane orion at cora.nwra.com
> Boulder, CO 80301 http://www.cora.nwra.com
> _______________________________________________
> ncl-install mailing list
> ncl-install at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list