[Gdal-dev] jasper

Andrey Kiselev dron at ak4719.spb.edu
Tue Feb 25 17:44:41 EST 2003

On Tue, Feb 25, 2003 at 12:23:43PM +0300, Vladimir Slepnev wrote:
> unfortunately, the problem of building GDAL with JPEG2000 support turned on
> refuses to go away. I installed the new version of JasPer from the
> remotesensing.org website, built it (successfully) and then tried to build
> GDAL. Here is what I got (I have Windows 2000 and MSVC 6.0):
> E:\vova\cvs-1-11-1p1\gdal\frmts>call ..\submake.bat jpeg2000
> 	cl /nologo
> /Ox -I..\..\port -I..\..\ogr -I..\..\core -IE:\vova\jasper-1.700.2.uuid\src\
> libjasper\include /DWIN32 -DFRMT_jpeg2000 /c jpeg2000dataset.cpp
> jpeg2000dataset.cpp
> E:\vova\jasper-1.700.2.uuid\src\libjasper\include\jasper/jas_config.h(132) :
> warning C4005: 'HAVE_VPRINTF' : macro redefinition
>         ..\..\port\cpl_config.h(6) : see previous definition of
> E:\vova\jasper-1.700.2.uuid\src\libjasper\include\jasper/jas_config.h(141) :
> warning C4005: 'STDC_HEADERS' : macro redefinition
>         ..\..\port\cpl_config.h(11) : see previous definition of
> E:\vova\jasper-1.700.2.uuid\src\libjasper\include\jasper/jas_types.h(186) :
> fatal error C1083: Cannot open include file: 'stdint.h': No such file or
> directory
> Last time I saw this problem, it couldn't find stdbool.h :-)
> What's that? Is this a Win32/MSVC-specific problem?

This stuff configured via jas_config.h file. But for MSVC environment
there is special hook: JAS_WIN_MSVC_BUILD should be defined and
jas_config2.h used instead of jas_config.h. jas_config2.h contains
definitions, appropriate for MSVC. JAS_WIN_MSVC_BUILD defined in project
files, so you should get a clean build process. I don't know, why it
doesn't work, but I will test JasPer build on Windows as soon as

Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517

More information about the Gdal-dev mailing list