[Gdal-dev] no sucess trying to build ECW for GDAL
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
-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/include/NCSString.h: In copy constructor
../../Source/include/NCSString.h:41: warning: base class 'struct
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
I may have seen that issue before. I've got a feeling that it was fixed
with a forward declaration
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.
Development, ER Mapper
Phone: +61 8 93882900
Fax: +61 8 93882901
Email: tom.lynch at ermapper.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gdal-dev