[gdal-dev] Error compiling GDAL with ECW support on VS9

Ivan Lucena ivan.lucena at pmldnet.com
Wed Dec 24 08:27:42 EST 2008


Does anybody has a clue of what is going on with this compilation error
in the ECW driver. It looks like it finds the libecwj2-3.3 files but it
get stuck with a template definition.

Regards.

D:\238844\TEMP\OpenSource\GDAL\COMPILE_ON_WINDOWS\gdal-svn-trunk-2008.12.17\frmt
s>cd ecw   && nmake /nologo /f makefile.vc   && cd ..
         cl /nologo /MD /EHsc /Ox /W3 /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_NONSTDC_N
O_DEPRECATE /DNDEBUG  -DCPL_DISABLE_STDCALL -I..\..\port -I..\..\ogr
-I..\..\gco
re  -I..\..\alg -I..\..\ogr\ogrsf_frmts
-ID:\238844\TEMP\OpenSource\GDAL\COMPILE
_ON_WINDOWS\ECW\libecwj2-3.3\include
-ID:\238844\TEMP\OpenSource\GDAL\COMPILE_ON
_WINDOWS\ECW\libecwj2-3.3/Source/include  /D_MBCS /D_UNICODE /DUNICODE
/D_WINDOW
S  /DLIBECWJ2 /DWIN32 /D_WINDLL -DFRMT_ecw -DNO_X86_MMI  /c ecwdataset.cpp
ecwdataset.cpp
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(51) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(51) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(53) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(53) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(55) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(55) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(64) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(64) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(66) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(66) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(68) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(68) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(70) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(70) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(72) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(72) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(74) : error C2059: syntax error : '<L_TYPE_raw>'
d:\238844\temp\opensource\gdal\compile_on_windows\ecw\libecwj2-3.3\source\includ
e\NCSJPCBuffer.h(74) : error C2238: unexpected token(s) preceding ';'
d:\238844\temp\opensource\gdal\compile_on_windows\gdal-svn-trunk-2008.12.17\frmt
s\ecw\vsiiostream.h(114) : warning C4800: 'BOOLEAN' : forcing value to
bool 'tru
e' or 'false' (performance warning)
ecwdataset.cpp(734) : warning C4244: 'initializing' : conversion from
'double' t
o 'float', possible loss of data
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.




More information about the gdal-dev mailing list