Page 1 of 1

SeaDas 7.5: BuildIt Failed (HDF4&5)

Posted: Wed Jun 06, 2018 11:14 am America/New_York
by ksharsun
Hi,
   I am using Ubuntu 16.04 LTS and tried to install Seadas 7.5.
   While doing BuildIt,I am getting following error.

[  0%] Generating ../H5fortran_detect.f90
/home/hk/seadas/ocssw/opt/src/hdf5/hdf5-1.8.18/build/bin/H5test_FortranHavekind: /home/hk/seadas/ocssw/opt/lib/libgfortran.so.3: version `GFORTRAN_1.4' not found (required by /home/hk/seadas/ocssw/opt/src/hdf5/hdf5-1.8.18/build/bin/H5test_FortranHavekind)
fortran/src/CMakeFiles/H5fortran_detect.dir/build.make:61: recipe for target 'fortran/H5fortran_detect.f90' failed
make[2]: *** [fortran/H5fortran_detect.f90] Error 1
make[2]: *** Deleting file 'fortran/H5fortran_detect.f90'
CMakeFiles/Makefile2:1661: recipe for target 'fortran/src/CMakeFiles/H5fortran_detect.dir/all' failed
make[1]: *** [fortran/src/CMakeFiles/H5fortran_detect.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[  0%] Linking C executable ../bin/H5detect
[  0%] Built target H5detect
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
***** make failed *****
***** BuildIt (hdf5) failed *****
hk@hk:~/seadas/ocssw/opt/src$

Kindly provide the possible solution for the above issue.

SeaDas 7.5: BuildIt Failed (HDF4&5)

Posted: Wed Jun 06, 2018 12:32 pm America/New_York
by OB SeaDAS - dshea
First of all, is there a reason you are building the software?

I am working on better instructions for building the code on various OSs.

To fix you problem do this:

$ cd $OCSSWROOT/opt
$ rm -rf bin include lib share
$ cd src
$ ./BuildIt


That should make the build of the third party libs work.

don

SeaDas 7.5: BuildIt Failed (HDF4&5)

Posted: Thu Jun 07, 2018 1:19 am America/New_York
by ksharsun
Implementing the above steps, it shows "Everything BuildIt Successfully".
But while doing make in hk@hk:~/seadas/ocssw/ocssw-src/cocssw-src/src/l2gen$.It show following error:

[ 20%] Building C object src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o
/home/hk/seadas/ocssw/ocssw-src/src/l2gen/l1_viirs_nc.c:12:39: fatal error: Calibrate_Viirs_Connector.h: No such file or directory
compilation terminated.
src/l2gen/CMakeFiles/l1det2det.dir/build.make:974: recipe for target 'src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o' failed
make[2]: *** [src/l2gen/CMakeFiles/l1det2det.dir/l1_viirs_nc.c.o] Error 1
CMakeFiles/Makefile2:2276: recipe for target 'src/l2gen/CMakeFiles/l1det2det.dir/all' failed
make[1]: *** [src/l2gen/CMakeFiles/l1det2det.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

SeaDas 7.5: BuildIt Failed (HDF4&5)

Posted: Thu Jun 07, 2018 10:51 am America/New_York
by OB SeaDAS - dshea
On Ubuntu 16.04 you need to be using gcc-5 for the viirs libs to link.
You need to download this tar file to $OCSSWROOT

https://oceandata.sci.gsfc.nasa.gov/ocssw/viirs.ubuntu16.04.gcc5.tar.gz


$ cd $OCSSWROOT
$ tar xzf viirs.ubuntu16.04.gcc5.tar.gz


Now everything should build.

I am working on build instructions for the different OS distributions, but it is not on the website yet.

SeaDas 7.5: BuildIt Failed (HDF4&5)

Posted: Thu Jun 07, 2018 3:14 pm America/New_York
by ksharsun
Ya now working fine. Thank you very much for your valuable guidance at shortest time span.