[Gdal-dev] no sucess trying to build ECW for GDAL

Tom Lynch tflynch at gmail.com
Tue Oct 3 01:39:52 EDT 2006

On 9/27/06, Eduardo Patto Kanegae <epk.lists at gmail.com> wrote:Hi,

I'm under SuSE 10.1 machine trying to build ECW toolkit and then build GDAL
against it but got no sucess.

I tryed to build libecwj2-3.3 package using:

$ cd Source/NCSBuildQmake/
$ make -f Makefile-linux-shared
.... then outputs:
g++ -c -pipe -Wall -W -O2 -D_REENTRANT -fPIC  -DUNICODE -DLINUX
-I../../Source/C/NCSEcw/lcms/include -o ../../obj/linux-g++/shared/NCSJP2.o
../../Source/include/NCSString.h: In copy constructor
'CNCSString::CNCSString(const CNCSString&)':
../../Source/include/NCSString.h:41: warning: base class 'struct
std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >' should be explicitly initialized in the copy
../../Source/include/NCSJPCBuffer.h: At global scope:
../../Source/include/NCSJPCBuffer.h:176: error: extra qualification
'CNCSJPCBuffer::' on member 'CNCSJPCBuffer'
../../Source/include/NCSJPCBuffer.h:189: error: extra qualification
'CNCSJPCBuffer::' on member 'operator='
../../Source/include/NCSJP2FileView.h:837: error: ISO C++ forbids
declaration of 'CNCSJPCResample' with no type
../../Source/include/NCSJP2FileView.h:837: error: expected ';' before '*'
make: *** [../../obj/linux-g++/shared/NCSJP2.o] Error 1

Hi Eduardo,

I may have seen that issue before.  I've got a feeling that it was fixed
with a forward declaration

class CNCSJPCResample;

in NCSJP2FileView.h.  The problem didn't occur with most compilers, and it's
caused by the compiler being unaware that CNCSJPCResample is a type (and
hence anticipating it to be a variable name).

Alternatively, May I suggest you use the GNU autotools build files instead,
if convenient?  If you continue to see issues with those files I'll assist
you until you get things working.


Tom Lynch
Development, ER Mapper
Phone:      +61 8 93882900
Fax:        +61 8 93882901
Email:      tom.lynch at ermapper.com
Web:        http://www.ermapper.com
Forums:     http://forum.ermapper.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20061003/f0baac62/attachment.html

More information about the Gdal-dev mailing list