[ncl-install] NCL 5.0.0 GCTP compilation
Mary Haley
haley at ucar.edu
Wed Dec 3 06:47:48 MST 2008
Sorry, I just remembered that the gctp source code is part of the HDF-
EOS software that you have probably already downloaded.
If you downloaded the HDF-EOS software, then you should have a
directory like:
HDF-EOS2.14v1.00/gctp
Use the same instructions on the website for building the gctp library.
--Mary
On Dec 3, 2008, at 6:44 AM, Mary Haley wrote:
> Quang,
>
> Try downloading the gctp library from:
>
> http://www.hdfeos.org/software/GCTP/
>
> Additionally, I think they have a bug in their Makefile. You need to
> make sure it includes the line:
>
> $(ARCHIVE)(isinusfor.o) $(ARCHIVE)(isinusinv.o) \
>
> I will update our source code instructions.
>
> --Mary
>
> On Dec 3, 2008, at 5:04 AM, Quang Nguyen wrote:
>
>> Dear ALL,
>>
>> Another issue related to GCTP:
>> ( http://www.ncl.ucar.edu/Download/build_from_src.shtml )
>>
>> For gctp, I download and installed gctp version 2.0. However, the
>> result is geolib.a instead of libGctp.a as the suggestion by the
>> support in the above websie. Then I just rename geolib.a by
>> libGctp.a .
>> After that, I re-compile NCL:
>>
>> $NCARG/ni/src/ncl # make
>> gcc -ansi -fPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O -
>> rdynamic -o ncl Ncl.o io.o NclHLUObj.o scanner.o parser.o
>> MathFuncs.o NclTypedouble.o NclTypefloat.o
>> NclTypeint.o NclTypelogical.o NclTypelong.o
>> NclTypeobj.o NclTypeshort.o
>> NclTypestring.o NclTypebyte.o NclTypechar.o
>> TypeSupport.o NclMultiDValData.o
>> AddFileFormats.o AttSupport.o DataSupport.o
>> FileSupport.o Formats.o GetGrids.o InitData.o
>> Memory.o NclAtt.o NclCCM.o NclCoordVar.o
>> NclData.o NclFile.o NclFileVar.o NclGRIB.o
>> NclHDF.o NclMultiDValnclfileData.o NclNetCdf.o
>> NclOneDValCoordData.o NclType.o NclTypelist.o
>> NclVar.o VarSupport.o ctoiee.o date.o qu2reg3.o
>> rowina3.o scm0.o ncepcode.o NclHDFEOS.o NclGRIB2.o AddBuiltIns.o
>> AddHLUObjs.o AddIntrinsics.o Execute.o
>> Machine.o OpsFuncs.o Printtoken.o
>> SrcTree.o Symbol.o
>> Translate.o NclHLUVar.o
>> HLUSupport.o NclMultiDValHLUObjData.o
>> BuiltInSupport.o BuiltInFuncs.o HLUFunctions.o
>> yywrap.o craybin.o complete.o editline.o
>> sysunix.o ListSupport.o NclList.o
>> NclMultiDVallistData.o fortranio.o -L../../.././ni/src/lib/nfp -
>> lnfp -L../../.././ni/src/lib/nfpfort -lnfpfort -L../../.././ni/src/
>> lib/hlu -lhlu -L../../.././ncarg2d/src/libncarg -lncarg -
>> L../../.././ncarg2d/src/libncarg_gks -lncarg_gks -L../../.././
>> common/src/libncarg_c -lncarg_c -L../../.././ngmath/src/lib -
>> lngmath -L/usr/local/ncarg/lib -L/usr/X11R6/lib -lnetcdf -lhdfeos -
>> lGctp -lmfhdf -ldf -ljpeg -lz -ludunits -lv5d -lgrib2c -ljasper -
>> L../../.././external/sphere3.1_dp -lsphere3.1_dp -L../../.././
>> external/fftpack5_dp -lfftpack5_dp -L../../.././external/lapack
>> -llapack_ncl -L../../.././external/blas -lblas_ncl -lX11 -lXext -
>> lg2c -lgcc -L/opt/intel/fce/10.1.012/lib -lifort -lm -lm -ldl
>> /usr/local/lib/libGctp.a(cproj.o): In function `sincos':
>> cproj.c:(.text+0x0): multiple definition of `sincos'
>> /usr/local/lib/libhdfeos.a(GDapi.o):GDapi.c:(.text+0x2b19): first
>> defined here
>> /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/
>> bin/ld: cannot find -lg2c
>> collect2: ld returned 1 exit status
>> make: *** [ncl] Error 1
>>
>> Please help me out these errors.
>> Thanks you
>> Quang
>> NCHMF-Vietnam
>>
>>
>>
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list