Building JasPer with Intel® compilers


Introduction

This document explains how to build JasPer with the Intel® C++ Compiler for Linux* and Intel® Fortran Compiler for Linux*. JasPer is a free implementation of the JPEG-2000 Part-1 standard. See the JasPer Project website for more information.


Version Information

JasPer 1.900.1
Intel® C++ Compiler for Linux* 13.0 and later
Intel® Fortran Compiler for Linux* 13.0 and later


Obtaining the Source Code

http://www.ece.uvic.ca/~mdadams/jasper/#download


Obtaining the latest version of the Intel® compilers

Licensed users of the Intel compilers may download the most recent versions of the compiler from thehttps://registrationcenter.intel.com/.
Other users can download the evaluation copy from http://software.intel.com/en-us/.


Building the Application

By default, JasPer is installed to /usr/local. Use the option --prefix to specify an installation directory.

export CC=icc
export CXX=icpc
export F77=ifort
./configure --prefix=/usr/local/jasper-1.900.1
make
make install

Verifying Correctness

The above example uses the BASH shell syntax for setting environment variables. For other shells, use the appropriate commands to set environment variables before the make command. Check the directory specified by your --prefix= setting. This directory should contain lib/, include/, and share/ directories.


Known Issues and Limitations

There are no known issues with using the Intel compilers to build JasPer. Please see the JasPer Project website at http://www.ece.uvic.ca/~frodo/jasper/ for all known issues and limitations.


For more complete information about compiler optimizations, see our Optimization Notice.

3 comments

Top
alexandregadelha's picture

Sorry boring you again with this issue but I´m suspecting that my WPS program compilation is failing due to jasper bad instalation. I´ve followed the steps above and compiled jasper program but I received several warnings during make process:

...

...

source='jas_icc.c' object='jas_icc.lo' libtool=yes \
        depfile='.deps/jas_icc.Plo' tmpdepfile='.deps/jas_icc.TPlo' \
        depmode=gcc3 /bin/sh ../../../acaux/depcomp \
        /bin/sh ../../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include    -g -O2 -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes -pedantic -c -o jas_icc.lo `test -f 'jas_icc.c' || echo './'`jas_icc.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/libjasper/include/jasper -I../../../src/libjasper/include -g -O2 -W -Wall -Wno-long-long -Wformat -Wmissing-prototypes -Wstrict-prototypes -pedantic -c jas_icc.c -MT jas_icc.lo -MD -MP -MF .deps/jas_icc.TPlo -o jas_icc.o
jas_icc.c: In function 'jas_iccattrtab_dump':
jas_icc.c:735: warning: format '%08x' expects type 'unsigned int', but argument 5 has type 'jas_iccsig_t'
jas_icc.c:735: warning: format '%08x' expects type 'unsigned int', but argument 7 has type 'jas_iccsig_t'
jas_icc.c: In function 'jas_iccattrval_dump':
jas_icc.c:886: warning: format '%08x' expects type 'unsigned int', but argument 4 has type 'jas_iccsig_t'
jas_icc.c: In function 'jas_icccurv_dump':
jas_icc.c:1043: warning: format '%d' expects type 'int', but argument 3 has type 'jas_iccuint32_t'
jas_icc.c: In function 'jas_icctxtdesc_dump':
jas_icc.c:1170: warning: format '%d' expects type 'int', but argument 3 has type 'jas_iccuint32_t'
jas_icc.c:1170: warning: format '%d' expects type 'int', but argument 4 has type 'jas_iccuint32_t'
jas_icc.c:1171: warning: format '%d' expects type 'int', but argument 3 has type 'jas_iccuint16_t'
jas_icc.c: In function 'jas_icclut8_dump':
jas_icc.c:1403: warning: format '%d' expects type 'int', but argument 3 has type 'jas_iccuint16_t'
jas_icc.c:1403: warning: format '%d' expects type 'int', but argument 4 has type 'jas_iccuint16_t'
jas_icc.c: In function 'jas_icclut16_dump':
jas_icc.c:1567: warning: format '%d' expects type 'int', but argument 3 has type 'jas_iccuint16_t'
jas_icc.c:1567: warning: format '%d' expects type 'int', but argument 4 has type 'jas_iccuint16_t'
echo timestamp > jas_icc.lo

I´m using ifort, icpc and icc version 13.0.1

 

Could you please tell me if it´s just warning or it can compromise some other programs?

 

 

alexandregadelha's picture

I'm trying to install WRF and I have the same question of arturoq. I've received several warnings too! What is the impact of these warnings in WRF and WPS compilation?

thank's a lot!

arturoq's picture

Hello Kirill,

I follow your instructions to build Jasper executables and libraries and all seems to work fine.
My only concern is that i got several warnings such as:

jpc_dec.c(2030): warning #181: argument is incompatible with corresponding format string conversion
jas_seq2d_yend(cblk->data) - jas_seq2d_ystart(cblk->data));

Can this become a serious problem later for WRF installation?

Thanks for your help

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.