[gdal-dev] ERDAS/Intergraph ECW/JP2 compile problem in 1.10.0
Frank Warmerdam
warmerdam at pobox.com
Fri Jun 21 11:32:00 PDT 2013
Scott,
It worked fine for me with trunk. At that point I see:
if ECWSDK_VERSION<50
Error = CNCSJP2Box::UnParse(JP2File, Stream);
#else
Error = CNCSSDKBox::UnParse(JP2File, Stream);
#endif
In my nmake.local file I have:
ECWDIR = "c:/build/pkg/ERDAS ECW JPEG2000 Read 4.3 SDK"
ECWFLAGS = -DECWSDK_VERSION=43 \
-I$(ECWDIR)\include \
-I$(ECWDIR)\include/NCSECW/api
-I$(ECWDIR)\include/NCSECW/jp2 \
-I$(ECWDIR)\include/NCSECW/ecw
ECWLIB = $(ECWDIR)\lib\vc90\win32\NCSEcw4_RO.lib \
$(ECWDIR)\lib\vc90\win32\NCSUtil4.lib \
$(ECWDIR)\lib\vc90\win32\NCScnet4.lib
ECW_PLUGIN = YES
I'd suggest confirming that you have ECWSDK_VERSION=43 set in the ECWFLAGS
setting you are using.
I'll try and incorporate the warning fixes into trunk.
Best regards,
Frank
On Fri, Jun 21, 2013 at 8:50 AM, Reynolds, Scott <scott at agi.com> wrote:
> Hi,****
>
> ** **
>
> I’m having trouble compiling GDAL 1.10.0 on Windows with the ERDAS ECW/JP2
> Read/Write SDK v4.3.6.25.****
>
> ** **
>
> Thanks,****
>
> Scott****
>
> ** **
>
> ** **
>
> jp2userbox.cpp****
>
> jp2userbox.cpp(133) : error C2664: 'NCS::JP2::CBox::UnParse' : cannot
> convert parameter 1 from 'NCS::SDK::CFileBase' to 'NCS::JP2::CFile &'****
>
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\cl.EXE"' : return code '0x2'****
>
> Stop.****
>
> NMAKE : fatal error U1077: 'for' : return code '0x1'****
>
> Stop.****
>
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual
> Studio 9.0\VC\BIN\nmake.EXE"' : return code '0x2'****
>
> Stop.****
>
> ** **
>
> ** **
>
> ** **
>
> I’ve also made changes to a couple of files to eliminate warnings in
> VS2008:****
>
> ** **
>
> ecwcreatecopy.cpp****
>
> 944c944****
>
> < m_OStream.Access( fpVSIL, TRUE, bSeekable, pszFilename, 0, -1 );
> ****
>
> ---****
>
> > m_OStream.Access( fpVSIL, TRUE, (BOOLEAN)bSeekable, pszFilename,
> 0, -1 );****
>
> ** **
>
> gdal_ecw.h****
>
> 370c370****
>
> < GByte prevBuffer[] = { nCOMLength >> 8, nCOMLength &
> 0xff };****
>
> ---****
>
> > GByte prevBuffer[] = { (GByte)(nCOMLength >> 8),
> (GByte)(nCOMLength & 0xff) };****
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam,
warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Software Developer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20130621/06ddfc3d/attachment-0001.html>
More information about the gdal-dev
mailing list