[ncl-install] error compiling ncl/ncar graphics (missing hdf files?)
Mary Haley
haley at ucar.edu
Thu Jan 12 11:00:42 MST 2012
Hi Ana,
Just for the record: if you are not using NCGMs as an output format for your graphics, then it is not necessary that you get ctrans or ictrans built.
The issue is likely that when you installed HDF, you didn't include the "--includedir" option to tell it to install the HDF include files in a subdirectory called "hdf". This is necessary in order to keep the HDF files from clashing with the NetCDF include files.
Please see the "important note" at:
http://www.ncl.ucar.edu/Download/build_from_src.shtml#HDF4
I believe you can also opt out of building HDF support into idt/ictrans. This is one of the questions asked when you run "./Configure".
--Mary
On Jan 12, 2012, at 7:33 AM, Anat Baharad wrote:
> Hi all,
>
> i am trying to install ncl & ncar graphics (ncl_ncarg-6.0.0), unsuccessfully.
> some of it was installed, some is missing.
>
> when i try to run "idt gmeta" i get the following error:
>
> reading stdout of translator: Resource temporarily unavailable
> Translator aborted
>
> i checked $NCARG_ROOT/bin and i do not have ctrans or ictrans.
>
> the compilation output got several warning and errors, here is the first group of errors:
> gcc -ansi -fPIC -O -I../../../.././include -I/usr/include/freetype2 -I/usr/include -I/usr/local/include -DBuildRasterHDF -DLINUX -DBuildRasterHPPCL -DBuildRasterNrif -DBuildRasterSun -DBuildRasterXWD -DBuildRasterAVS -DBuildRasterSGI -DBuildRasterAbekas -DBuildRasterBinary -DBuildRasterYUV -DNGTMPDIR='"tmp"' -Dx86_64 -DIBM -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -o hdf.o hdf.c
> hdf.c:54:21: error: hdf/hdf.h: No such file or directory
> hdf.c:55:20: error: hdf/df.h: No such file or directory
> hdf.c:56:22: error: hdf/dfgr.h: No such file or directory
> hdf.c: In function ‘HDFOpen’:
> hdf.c:119: error: ‘int32’ undeclared (first use in this function)
> hdf.c:119: error: (Each undeclared identifier is reported only once
> hdf.c:119: error: for each function it appears in.)
> hdf.c:119: error: expected expression before ‘)’ token
> hdf.c:127: error: expected expression before ‘)’ token
> hdf.c: In function ‘HDFWrite’:
> hdf.c:314: error: ‘DFTAG_RLE’ undeclared (first use in this function)
> hdf.c:328: error: ‘VOIDP’ undeclared (first use in this function)
> hdf.c:328: error: expected ‘)’ before ‘ras’
> hdf.c:333: error: expected ‘)’ before ‘ras’
> hdf.c:347: error: expected ‘)’ before ‘ras’
> hdf.c:353: error: expected ‘)’ before ‘ras’
> hdf.c: In function ‘HDFRead’:
> hdf.c:428: error: ‘VOIDP’ undeclared (first use in this function)
> hdf.c:428: error: expected ‘)’ before ‘ras’
> make[5]: *** [hdf.o] Error 1
>
> and here is one of the warnings, about libctrans:
> Making Makefiles in ./ncarview/src/lib/libctrans
> In file included from ../../../.././config/Template:877,
> from <stdin>:2:
> ./ymake.tmp2114:22: warning: extra tokens at end of #endif directive
> ./ymake.tmp2114:28: warning: extra tokens at end of #endif directive
>
> what am i missing? where should i find hdf.h, df.h, dfgr.h?
> any help will be appreciate!
> thanks,
> Anat
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20120112/b9b91a5a/attachment.html
More information about the ncl-install
mailing list