Project

General

Profile

Problem in installing CDO-1.9.4 during grib configuration

Added by saurabh rathore over 5 years ago

Hello CDO users and Developers.

I am trying to install CDO on my machine i.e. Dell Linux-16.04 LTS. I used the attached link for this installation https://gist.github.com/mainvoid007/e5f1c82f50eb0459a55dfc4a0953a08e.

I followed all the links with the latest library available form the providers. These libraries are zlib-1.2.11.tar.gz, hdf5-1.8.20.tar, , netcdf-4.6.1.tar.gz, jasper-2.0.14.tar.gz, grib_api-1.27.0-Source.tar.gz and cdo-1.9.4.tar.gz.

I installed zlib, hdf5 and netcdf libraries but I got confused in installation of JasPer library. From the installation instruction of JasPer which is showing like this.....

Installation ============

The process required to install JasPer is described below.

Installation on Systems Running Unix
------------------------------------

In what follows, let $SOURCE_DIR denote the top-level directory of the
JasPer software source tree and let $INSTALL_DIR denote the target
directory for installation.

1) Select an empty directory to use for building the software.
Let $BUILD_DIR denote this directory.

2) Generate the makefiles used for building the software. To do this,
invoke the command:

cmake -G "Unix Makefiles" -H$SOURCE_DIR -B$BUILD_DIR \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR $OPTIONS

In place of this (2) step, I used my command line as mentioned below but I am confused what to do with the OPTIONS ? Am I doing is correctly in my command line syntex ? Moreover I am not getting any error while installing jasPer and it passed all the tests.

!!!!!!!!!!!!!!! my command line code !!!!!!!!!!!!!!!!!!!

cmake -G "Unix Makefiles" /home/srathore/cdo_new/jasper-2.0.14 -B/home/srathore/cdo_new/build_dir -DCMAKE_INSTALL_PREFIX=/opt/cdo-install -DOPTION=VALUE

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

But while make I am using make instead of make clean all and every other things as mentioned in installation instructions. And it works fine with no errors.

where $OPTIONS corresponds to zero or more -D options as described below
under the heading "Cmake Options".

3) Change the working directory to the build directory. To do this,
use the command:

cd $BUILD_DIR

4) Build the code using the make utility. To do this, invoke the command:

make clean all

5) Run the test suite to ensure that the software seems to be working
correctly. To do this, invoke the command:

make test

If more verbose output from the testing process is desired (e.g., to
assist in diagnosing a problem), instead use the command:

make test ARGS="-V"

6) Install the software. To do this, invoke the command:

make install

Additional Remarks:

When building the JasPer software under Mac OSX, only the use of the
native framework for OpenGL is officially supported. If the Freeglut
library is installed on your system, you will need to ensure that the
native GLUT library (as opposed to the Freeglut library) is used by the
build process. This can be accomplished by adding an extra option to
the cmake command line that resembles the following:

-DGLUT_glut_LIBRARY=/System/Library/Frameworks/GLUT.framework

Installation on Systems Running Microsoft Windows
-------------------------------------------------

In what follows, let SOURCE_DIR denote the top-level directory of the
JasPer software source tree and let INSTALL_DIR denote the target
directory for installation.

1) Select an empty directory to use for building the software.
Let BUILD_DIR denote this directory.

2) Generate the project file needed to build the software with Microsoft
Visual Studio. To do this, invoke the command:

cmake -G "Visual Studio 12 2013 Win64" -H%SOURCE_DIR% -B%BUILD_DIR% ^
-DCMAKE_INSTALL_PREFIX=%INSTALL_DIR% OPTIONS

where OPTIONS corresponds to zero or more -D options as described
below under the heading "Cmake Options". (Note the caret symbol "^"
above denotes line continuation.)

3) Build and install the software. To do this, invoke the command:

msbuild build_dir\INSTALL.vcxproj

Cmake Options
-------------

The option OPTION can be set to the value VALUE with a command-line option
of the form -DOPTION=VALUE
The following options are supported:

CMAKE_INSTALL_PREFIX
Specify the installation directory.
Value: A directory name.

CMAKE_BUILD_TYPE
Specify the build type (i.e., release or debug).
Valid values: Debug or Release

JAS_ENABLE_DOC
Enable the building of the documentation (which requires LaTeX).
Valid values: true and false

JAS_ENABLE_LIBJPEG
Enable the use of the JPEG library
Valid values: true and false

JAS_ENABLE_OPENGL
Enable the use of the OpenGL and GLUT libraries.
Valid values: true and false

JAS_ENABLE_STRICT
Enable pedantic errors for building the code.
Valid values: true or false

JAS_ENABLE_SHARED
Enable the building of shared libraries.
Valid values: true or false

JAS_ENABLE_ASAN
Enable the Address Sanitizer.
Valid values: true or false

JAS_ENABLE_USAN
Enable the Undefined-Behavior Sanitizer.
Valid values: true or false

JAS_ENABLE_LSAN
Enable the Leak Sanitizer.
Valid values: true or false

JAS_ENABLE_MSAN
Enable the Memory Sanitizer.
Valid values: true or false

JAS_MEMORY_LIMIT
DO NOT RELY ON THIS OPTION, AS IT IS LIKELY TO BE REMOVED IN THE FUTURE.
Set the maximum amount of memory that can be allocated with jas_malloc
and friends.
Value: a value of unsigned integral type (e.g., 10000000 or SIZE_MAX).

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Now here is the problem while installing grib library. I configured this grib library as mentioned by the cdo installation link which is attached above. here is the configure command

./configure -prefix=/opt/cdo-install CFLAGS=-fPIC -with-netcdf=/opt/cdo-install -with-jasper=/opt/cdo-install

it runs succesfully...

But now issuing make command throwing an error and installation procedure stopping this is the error....

grib_jasper_encoding.c: In function 'grib_jasper_encode':
grib_jasper_encoding.c:113:10: error: 'jas_image_t {aka struct <anonymous>}' has no member named 'inmem_'
image.inmem_ = 1;
^
Makefile:1363: recipe for target 'grib_jasper_encoding.lo' failed
make2:
[grib_jasper_encoding.lo] Error 1
make2: Leaving directory '/home/srathore/cdo_new/grib_api-1.27.0-Source/src'
Makefile:951: recipe for target 'all' failed
make1:
[all] Error 2
make1: Leaving directory '/home/srathore/cdo_new/grib_api-1.27.0-Source/src'
Makefile:604: recipe for target 'all-recursive' failed
make: *
* [all-recursive] Error 1 *

Now I don't know how to resolve this error. Please help me out in CDO installation with above libraries.

I do have CDO installed from Ubuntu repository which is CDO-1.7.0 but I want to install new version of CDO

I hope I will get the help.

Cheers, Saurabh

INSTALL (4.08 KB) INSTALL jasper Installation instructions

Replies (1)

RE: Problem in installing CDO-1.9.4 during grib configuration - Added by Ralf Mueller over 5 years ago

sorry for the late reply - completely missed your post.

is this still a problem?

cheers
ralf

    (1-1/1)