[gdal-dev] Building GDAL with ECW SDK 3.3 using VC2008

Peng Gao pgao at esri.com
Tue Jun 24 15:17:50 EDT 2008


Michael,
Thanks for the info.

The following is the compile errors I got when I try to build GDAL with
ECW enabled using VS2008. 


1>Compiling...
1>cl : Command line warning D9035 : option 'Wp64' has been deprecated
and will be removed in a future release
1>jp2userbox.cpp
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\gdal\frmts\ecw\vsiiostream.h(114) : warning C4800: 'BOOLEAN' :
forcing value to bool 'true' or 'false' (performance warning)
1>ecwdataset.cpp
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\gdal\frmts\ecw\vsiiostream.h(114) : warning C4800: 'BOOLEAN' :
forcing value to bool 'true' or 'false' (performance warning)
1>.\ecwdataset.cpp(730) : warning C4244: 'initializing' : conversion
from 'double' to 'float', possible loss of data
1>ecwcreatecopy.cpp
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(51) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(53) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(55) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(64) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(66) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(68) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(70) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(72) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2059: syntax
error : '<L_TYPE_raw>'
1>c:\gdal\codec\ecw\include\NCSJPCBuffer.h(74) : error C2238: unexpected
token(s) preceding ';'
1>c:\gdal\gdal\frmts\ecw\vsiiostream.h(114) : warning C4800: 'BOOLEAN' :
forcing value to bool 'true' or 'false' (performance warning)
1>.\ecwcreatecopy.cpp(194) : warning C4800: 'int' : forcing value to
bool 'true' or 'false' (performance warning)
1>.\ecwcreatecopy.cpp(406) : warning C4244: 'argument' : conversion from
'GIntBig' to 'int', possible loss of data
1>.\ecwcreatecopy.cpp(656) : warning C4800: 'int' : forcing value to
bool 'true' or 'false' (performance warning)
1>.\ecwcreatecopy.cpp(691) : warning C4800: 'int' : forcing value to
bool 'true' or 'false' (performance warning)
1>.\ecwcreatecopy.cpp(696) : warning C4800: 'int' : forcing value to
bool 'true' or 'false' (performance warning)
1>Generating Code...
1>Build log was saved at
"file://c:\GDAL\gdal\frmts\ecw\Release\BuildLog.htm"


> -----Original Message-----
> From: Michael Rosen [mailto:mrosen at lizardtech.com] 
> Sent: Tuesday, June 24, 2008 11:28 AM
> To: Peng Gao; gdal-dev at lists.osgeo.org
> Subject: RE: [gdal-dev] Building GDAL with ECW SDK 3.3 using VC2008
> 
> We build an older version of gdal with this version of the ecw library
> under vc9 ( vc 2008).   Specifically, we build NCSEcw_Static.  It's
> nothing special as far as I can see.  
> 
> msr
> 
> 
> 
> -----Original Message-----
> From: gdal-dev-bounces at lists.osgeo.org
> [mailto:gdal-dev-bounces at lists.osgeo.org] On Behalf Of Peng Gao
> Sent: Monday, June 23, 2008 12:56 PM
> To: gdal-dev at lists.osgeo.org
> Subject: [gdal-dev] Building GDAL with ECW SDK 3.3 using VC2008
> 
> 
> HI,
> 
> I am trying to build GDAL 1.5.2 with ECW SDK 3.3 using 
> VS2008, and getting some build errors. Have anyone here built 
> GDAL/ECW using VS2008? There is a thread, "ECW SDK 3.3 occur 
> error C2059 with VC2008"
> (http://forums.ermapper.com/viewtopic.php?p=7194#7194)
> on ECW SDK forum, discussing the problem. 
> But there is no solution.
> 


More information about the gdal-dev mailing list