<div id="mb_0">Hi,<br><br>I'm under SuSE 10.1 machine trying to build ECW toolkit and then build GDAL against it but got no sucess.<br><br>I tryed to build libecwj2-3.3 package using:<br><br>$ cd Source/NCSBuildQmake/<br>$ make -f Makefile-linux-shared
<br>.... then outputs:<br><span style="font-family: courier new,monospace;">g++
-c -pipe -Wall -W -O2 -D_REENTRANT -fPIC&nbsp; -DUNICODE -DLINUX
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-D_GNU_SOURCE -DPOSIX -D_REENTRANT -DLIBECWJ2 -I.
-I../../Source/include -I../../Source/C/NCSEcw/lcms/include -o ../../obj/linux-g++/shared/NCSJP2.o ../../Source/C/NCSEcw/NCSJP2/NCSJP2.cpp
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSString.h: In copy constructor 'CNCSString::CNCSString(const CNCSString&amp;)':</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">../../Source/include/NCSString.h:41:
warning: base class 'struct std::basic_string&lt;wchar_t,
std::char_traits&lt;wchar_t&gt;, std::allocator&lt;wchar_t&gt; &gt;'
should be explicitly initialized in the copy constructor
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJPCBuffer.h: At global scope:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">

../../Source/include/NCSJPCBuffer.h:176: error: extra qualification 'CNCSJPCBuffer::' on member 'CNCSJPCBuffer'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJPCBuffer.h:189: error: extra qualification 'CNCSJPCBuffer::' on member 'operator='
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJP2FileView.h:837: error: ISO C++ forbids declaration of 'CNCSJPCResample' with no type</span>

<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">../../Source/include/NCSJP2FileView.h:837: error: expected ';' before '*' token</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">make: *** [../../obj/linux-g++/shared/NCSJP2.o] <span style="color: rgb(255, 0, 0);">Error 1</span></span><br><br>trying 3.3-RC2 version gives me the same error.<br><br>I also tryed to extract a pre-build of ECW libs I found under 
<a href="http://www.maptools.org">www.maptools.org</a> download folder:<br><span style="font-family: courier new,monospace;">$ CPPFLAGS=&quot;-I/usr/include/hdf <span style="color: rgb(255, 0, 0);">-I/usr/local/ecw/include -L/usr/local/ecw/lib
</span>&quot; ./configure --with-threads --with-libz=internal --with-pg=/usr/bin/pg_config --with-pcraster=/usr --with-png=internal --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-ogdi=/usr --with-hdf5=/usr --with-jasper=/usr --with-ogr --with-mysql=/usr/bin/mysql_config --with-odbc=/usr/local/src/epk/unixODBC-
2.2.11 --with-sqlite=/usr --with-geos=s/usr/local/bin/geos-config --with-proj4 --with-perl --with-php --with-ruby --with-ngpython --with-hdf4=/usr/lib/hdf --with-oci=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server --with-ecw=/usr/local/ecw 2&gt;&amp;1 | tee 
configure.log&nbsp; </span><br>But after <span style="font-weight: bold;">make</span> I got:<br><span style="font-family: courier new,monospace;">make[2]: Entering directory `/usr/local/src/epk/gdal-1.3.2/frmts/ecw'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/bin/sh /usr/local/src/epk/gdal-1.3.2/libtool --mode=compile g++ -Wall&nbsp; -O2&nbsp;&nbsp; -I/usr/local/src/epk/gdal-1.3.2/port -I/usr/local/src/epk/gdal-1.3.2/gcore -I/usr/local/src/epk/gdal-
1.3.2/alg -I/usr/local/src/epk/gdal-1.3.2/ogr -I/usr/local/src/epk/gdal-1.3.2/ogr/ogrsf_frmts -DFRMT_ecw -DOGR_ENABLED -I/usr/include/hdf -I/usr/local/ecw/include -L/usr/local/ecw/lib -I/usr/local/src/epk/gdal-1.3.2/port -I/usr/local/src/epk/unixODBC-
2.2.11 -I/usr/local/src/epk/unixODBC-2.2.11/include -I/usr/local/ecw/include -I/usr -I/usr/include -I/usr/include&nbsp; -c -o ../o/ecwdataset.o ecwdataset.cpp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
&nbsp;g++ -Wall -O2 -I/usr/local/src/epk/gdal-1.3.2/port -I/usr/local/src/epk/gdal-1.3.2/gcore -I/usr/local/src/epk/gdal-1.3.2/alg -I/usr/local/src/epk/gdal-1.3.2/ogr -I/usr/local/src/epk/gdal-1.3.2/ogr/ogrsf_frmts -DFRMT_ecw -DOGR_ENABLED -I/usr/include/hdf -I/usr/local/ecw/include -L/usr/local/ecw/lib -I/usr/local/src/epk/gdal-
1.3.2/port -I/usr/local/src/epk/unixODBC-2.2.11 -I/usr/local/src/epk/unixODBC-2.2.11/include -I/usr/local/ecw/include -I/usr -I/usr/include -I/usr/include -c ecwdataset.cpp&nbsp; -fPIC -DPIC -o ../o/.libs/ecwdataset.o</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/ecw/include/NCSJPCBuffer.h:176: error: extra qualification 'CNCSJPCBuffer::' on member 'CNCSJPCBuffer'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/usr/local/ecw/include/NCSJPCBuffer.h:189: error: extra qualification 'CNCSJPCBuffer::' on member 'operator='</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/usr/local/ecw/include/NCSJP2FileView.h:820: error: ISO C++ forbids declaration of 'CNCSJPCResample' with no type
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">/usr/local/ecw/include/NCSJP2FileView.h:820: error: expected ';' before '*' token</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">/usr/local/ecw/include/NCSJPCMarker.h:101: error: extra qualification 'CNCSJPCMarker::' on member 'operator='</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/usr/local/ecw/include/NCSJPCPacket.h:32: warning: 'class CNCSJPCPacket' has virtual functions but non-virtual destructor</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
/usr/local/ecw/include/NCSJPCPLTMarker.h:84: error: extra qualification 'CNCSJPCPLTMarker::' on member 'operator='</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ecwdataset.cpp
: In member function 'virtual CPLErr ECWRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int)':</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
ecwdataset.cpp:551: warning: dereferencing type-punned pointer will break strict-aliasing rules</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make[2]: *** [../o/ecwdataset.o] Error 1
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make[2]: Leaving directory `/usr/local/src/epk/gdal-1.3.2/frmts/ecw'</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">make[1]: *** [ecw-install-obj] Error 2</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make[1]: Leaving directory `/usr/local/src/epk/gdal-
1.3.2/frmts'</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">make: *** [frmts-target] Error 2</span><br><br><br>Any ideas?<br><br>regards<br clear="all"><br>-- 
<br><span class="sg">Eduardo Patto Kanegae<br><a href="http://www.webmapit.com.br/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.webmapit.com.br</a>

</span></div>