[gdal-dev] Fail to build with OpenJpeg

Joaquim Luis jluis at ualg.pt
Tue Mar 8 20:23:03 EST 2011


Hi,

My attempt to build gdal (trunk) on Windows with OpenJpeg failed with 
these errors

C:\programs\GDALtrunk\gdal\frmts>cd openjpeg && nmake /nologo /f 
makefile.vc && cd ..   || exit 1
         cl  /nologo /MD /EHsc /Ox /D_CRT_SECURE_NO_DEPRECATE 
/D_CRT_NONSTDC_NO_DEPRECATE /DNDEBUG /W4 /wd4127 /wd4251 /wd4275 /wd4786 
/wd4100 /wd4245 /wd4206 /wd4018 /wd4389 -I..\..\port -I..\..\ogr 
-I..\..\gcore  -I..\..\alg -I..\..\ogr\ogrsf_frmts 
-IC:\programs\compa_libs\openjpeg_v1_4\libopenjpeg -DOGR_ENABLED   /c 
openjpegdataset.cpp
openjpegdataset.cpp
openjpegdataset.cpp(80) : error C2146: syntax error : missing ';' before 
identifier 'JP2OpenJPEGDataset_Read'
openjpegdataset.cpp(80) : error C4430: missing type specifier - int 
assumed. Note: C++ does not support default-int
openjpegdataset.cpp(80) : error C2061: syntax error : identifier 
'OPJ_UINT32'

I greped for OPJ_UINT32 in the OpenJpeg source and on GDAL's) and there 
was no sign of it.
I am using openjpeg_v1_4_source_r697 as per its web site.


Joaquim


More information about the gdal-dev mailing list