Upgrading CRTM version in GSI v3.7

Submitted by alim on Wed, 09/01/2021 - 09:44

Hi

I tried to upgrade the crtm version in GSI v3.7 from 2.3.0 to 2.4.0 but am getting the following errors when running

cmake -DBUILD_CORELIBS=ON $CORE_DIR

Errors:

Could not find CRTM library, so building from libsrc
setting source for crtm to be in libsrc
CMake Error: File /home/alim/GSI/comGSIv3.7_EnKFv1.3/cmake/PackageConfig.cmake.in does not exist.
CMake Error at /usr/share/cmake-3.20/Modules/CMakePackageConfigHelpers.cmake:342 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  libsrc/crtm/CMakeLists.txt:222 (configure_package_config_file)

The version of the crtm 2.4.0 I used is the one prepared by the CRTM team for EMC.

https://github.com/JCSDA/crtm/tree/release/REL-2.4.0_emc

Advice how on steps I need to upgrade this will be appreciated.

 

Thanks

Agnes

 

 

 

Hi Agnes,

 

I assume you have built the CRTM library you wish to use. Please try this:

 

Set the environment variables:

export CRTM_LIB=/path/to/crtm/lib/libcrtm.a

export CRTM_INC=/path/to/crtm/include

 

Then in the file CMakeLists.txt from the base comGSI3.7 directory, change line 235 to set BUILD_CRTM to "OFF".  Hopefully then cmake will find the library.

 

Good luck!

Will