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

Peng Gao pgao at esri.com
Fri Jun 27 11:30:39 EDT 2008


Michael,

I got the error from simply building GDAL using VS2008 with the ECW SDK
that was built
before using VS2003. I'll eventually need to rebuild ECW SDK as three
dlls using
VS2008. I read on ermapper forum, people is getting similar compile
errors when building
ECW SDK using VS2008.

 

> -----Original Message-----
> From: Michael Rosen [mailto:mrosen at lizardtech.com] 
> Sent: Thursday, June 26, 2008 9:35 AM
> To: Peng Gao; gdal-dev at lists.osgeo.org
> Subject: RE: [gdal-dev] Building GDAL with ECW SDK 3.3 using VC2008
> 
> Hmm... which target is it building?  Which file is compiling? 
>  Can you build NCSEcw_Static?  Here's what we get:
> 
> 
>   C:\Program Files (x86)\Microsoft Visual Studio 
> 9.0\Common7\IDE\..\..\vc\vcpackages\vcbuild.exe
> c:\bob\work\win32-vc9__HEAD\xt_lib_ecw\build\win32-vc9\..\..\s
> rc\libecwj
> 2-3.3\Source\C\NCSEcw\NCSEcw\NCSEcw_Static\NCSEcw_Static-vc9.t
> mp_Release
> _Win32.vcproj "Release|Win32"
> 
> ...
> 
>   Microsoft (R) Visual C++ Project Builder - Command Line Version
> 9.00.21022
>   Copyright (C) Microsoft Corporation. All rights reserved.
>   
>   Build started: Project: NCSEcw_Static, Configuration: Release|Win32
>   Compiling...
> 
>   NCSJPCBuffer.cpp
> ..\..\NCSJP2\NCSJPCBuffer.cpp(530): warning C4244: '*=' : 
> conversion from 'const INT32' to 'INT16', possible loss of data
>   NCSJPC.cpp
> ..\..\NCSJP2\NCSJPC.cpp(195): warning C4244: '=' : conversion 
> from 'UINT32' to 'UINT8', possible loss of data
> ..\..\NCSJP2\NCSJPC.cpp(196): warning C4244: '=' : conversion 
> from 'UINT32' to 'UINT16', possible loss of data
> ..\..\NCSJP2\NCSJPC.cpp(203): warning C4244: '=' : conversion 
> from 'UINT32' to 'UINT16', possible loss of data
>   NCSJP2XMLBox.cpp
> ..\..\NCSJP2\NCSJP2XMLBox.cpp(42): warning C4100: 'Stream' :
> unreferenced formal parameter
> ..\..\NCSJP2\NCSJP2XMLBox.cpp(42): warning C4100: 'JP2File' :
> unreferenced formal parameter
> ..\..\NCSJP2\NCSJP2XMLBox.cpp(53): warning C4189:
> 'pStreamNCSJP2_CHECKIO' : local variable is initialized but 
> not referenced
> ..\..\NCSJP2\NCSJP2XMLBox.cpp(53): warning C4189: 
> 'pErrorNCSJP2_CHECKIO'
> : local variable is initialized but not referenced
>   NCSJP2WorldBox.cpp
> ..\..\NCSJP2\NCSJP2WorldBox.cpp(155): warning C4100: 'JP2File' :
> unreferenced formal parameter
> ..\..\NCSJP2\NCSJP2WorldBox.cpp(207): warning C4189:
> 'pStreamNCSJP2_CHECKIO' : local variable is initialized but 
> not referenced
> ..\..\NCSJP2\NCSJP2WorldBox.cpp(207): warning C4189:
> 'pErrorNCSJP2_CHECKIO' : local variable is initialized but 
> not referenced
>   Generating Code...
>   Compiling...
>   NCSJP2UUIDListBox.cpp
> ..\..\NCSJP2\NCSJP2UUIDListBox.cpp(44): warning C4100: 'JP2File' :
> unreferenced formal parameter
>   NCSJP2UUIDInfoBox.cpp
>   NCSJP2UUIDBox.cpp
> ..\..\NCSJP2\NCSJP2UUIDBox.cpp(47): warning C4100: 'JP2File' :
> unreferenced formal parameter
>   NCSJP2SuperBox.cpp
>   NCSJP2SignatureBox.cpp
> ..\..\NCSJP2\NCSJP2SignatureBox.cpp(51): warning C4100: 'JP2File' :
> unreferenced formal parameter
>   NCSJP2ResolutionBox.cpp
>   NCSJP2PCSBox.cpp
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(184): warning C4100: 'JP2File' :
> unreferenced formal parameter
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(390): warning C4189:
> 'pStreamNCSJP2_CHECKIO' : local variable is initialized but 
> not referenced
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(390): warning C4189:
> 'pErrorNCSJP2_CHECKIO' : local variable is initialized but 
> not referenced
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(581): warning C4244: '=' : 
> conversion from 'int' to 'UINT16', possible loss of data
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(398): warning C4100: 'szFilename' :
> unreferenced formal parameter
> ..\..\NCSJP2\NCSJP2PCSBox.cpp(888): warning C4244: '=' : 
> conversion from 'INT32' to 'UINT16', possible loss of data ...
> 
> -----Original Message-----
> From: Peng Gao [mailto:pgao at esri.com]
> Sent: Tuesday, June 24, 2008 12:18 PM
> To: Michael Rosen; gdal-dev at lists.osgeo.org
> Subject: RE: [gdal-dev] Building GDAL with ECW SDK 3.3 using VC2008
> 
> 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