Re: Cannot build without triangle.h

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Tue, 13 Nov 2007 14:50:15 -0700

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

_______________________________________________
ncl-install mailing list
ncl-install_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue Nov 13 2007 - 14:50:15 MST

This archive was generated by hypermail 2.2.0 : Thu Nov 15 2007 - 11:02:08 MST