[Gdal-dev] Re: ECW JPEG 2000 Source SDK v3.3 (RC)
Marco Vieira
marco_vieira at uk2.net
Thu Oct 27 15:23:08 EDT 2005
Hi all:
I'm trying to compile ECW SDK 3.3 to use with GDAL but I got the following
error:
/home/marco/install/libecwj2-3.3/Source/include/NCSJP2FileView.h:837:
error: ISO C++ forbids declaration of 'CNCSJPCResample' with no type
/home/marco/install/libecwj2-3.3/Source/include/NCSJP2FileView.h:837:
error: expected ';' before '*' token
make[3]: ** [______lib_libecwj2_a-NCSJP2.o] Erro 1
My system is:
uname -a
Linux spatialsv 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux
gcc/g++ version 4.0.2 (Debian 4.0.2-2)
the complete ./configure + make is attached.
Thanks for any help.
Marco Vieira.
Fone: + 55 21 9499-6800
marco_vieira at uk2.net
> Hello All:
>
> To build it on MACOSX 10.4.2 g++ version 4.0.0 I had to make one small
change in the file:
>
> NCSSocket.cpp
>
>
>
> CNCSSocket::CNCSSocket(const int handle)
> : m_handle(handle), m_connected(true)
> {
> //init();
> struct sockaddr_in info;
> #if defined(POSIX) && !defined(HPUX)
> # ifdef MACOSX
> socklen_t tempSize = sizeof(struct sockaddr);
> //int tempSize = sizeof(struct sockaddr);
> # else
> socklen_t tempSize = sizeof(struct sockaddr);
> # endif
> #else
> int tempSize = sizeof(struct sockaddr);
> #endif
> getpeername(handle, (struct sockaddr*)&info, &tempSize);
> m_connectedPort = info.sin_port;
> //m_connectedTo = inet_ntoa(info.sin_addr);
>
> }
> #endif
>
>
> On my MAC I had to set int tempSize = sizeof(struct sockaddr);
>
> to
>
> socklen_temt pSize = sizeof(struct sockaddr);
>
>
> Has any one else had the same problem with 10.4.2?
>
>
> This was the only modification and it built. Not tested with GDAL yet
though.
>
> Take care
>
> Garrettt
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev
>
Marco Vieira.
Fone: + 55 21 9499-6800
marco_vieira at uk2.net
-------------- next part --------------
marco at spatialsv:~/install/libecwj2-3.3$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /bin/sed
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking dependency style of g++... (cached) gcc3
checking for ANSI C header files... (cached) yes
checking for inline... inline
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 3:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 5:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 9:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 14:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 19:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 24:
: command not found/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 29:
'home/marco/install/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 47: syntax error near unexpected token `in
'home/marco/install/libecwj2-3.3/Source/C/NCSEcw/lcms/missing: line 47: `case "$1" in
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking how to run the C preprocessor... gcc -E
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... none
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking whether to enable maintainer-specific portions of Makefiles... no
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for int... yes
checking size of int... 4
checking for unsigned int... yes
checking size of unsigned int... 4
checking for long... yes
checking size of long... 4
checking for unsigned long... yes
checking size of unsigned long... 4
checking for long long... yes
checking size of long long... 8
checking for unsigned long long... yes
checking size of unsigned long long... 8
checking for signed 8-bit type... char
checking for unsigned 8-bit type... unsigned char
checking for signed 16-bit type... short
checking for unsigned 16-bit type... unsigned short
checking for signed 32-bit type... int
checking for unsigned 32-bit type... unsigned int
checking for signed 64-bit type... long long
checking for unsigned 64-bit type... unsigned long long
checking for sqrt in -lm... yes
checking for JPEG support ...
checking jconfig.h usability... yes
checking jconfig.h presence... yes
checking for jconfig.h... yes
checking jerror.h usability... yes
checking jerror.h presence... yes
checking for jerror.h... yes
checking jmorecfg.h usability... yes
checking jmorecfg.h presence... yes
checking for jmorecfg.h... yes
checking jpeglib.h usability... yes
checking jpeglib.h presence... yes
checking for jpeglib.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for JPEG library is version 6b or later... yes
yes
checking if JPEG package is complete... yes
checking for ZLIB support ...
checking zconf.h usability... yes
checking zconf.h presence... yes
checking for zconf.h... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for compress in -lz... yes
checking for uncompress in -lz... yes
checking for deflate in -lz... yes
checking for inflate in -lz... yes
checking for gzseek in -lz... yes
checking for gztell in -lz... yes
checking if ZLIB package is complete... yes
checking for TIFF support ...
checking tiff.h usability... no
checking tiff.h presence... no
checking for tiff.h... no
checking tiffio.h usability... no
checking tiffio.h presence... no
checking for tiffio.h... no
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking if TIFF package is complete... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating lcms.pc
config.status: creating include/icc34.h
config.status: creating include/Makefile
config.status: creating jpegicc/Makefile
config.status: creating python/Makefile
config.status: creating samples/Makefile
config.status: creating testbed/Makefile
config.status: creating tifficc/Makefile
config.status: creating src/Makefile
config.status: executing depfiles commands
checking target system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
config.status: creating Source/Makefile
config.status: creating Source/NCSBuildGnu/Makefile
config.status: creating Source/NCSBuildGnu/NCSGnuConfig.h
config.status: executing depfiles commands
marco at spatialsv:~/install/libecwj2-3.3$ make
Making all in Source
make[1]: Entering directory `/home/marco/install/libecwj2-3.3/Source'
Making all in NCSBuildGnu
make[2]: Entering directory `/home/marco/install/libecwj2-3.3/Source/NCSBuildGnu'
cd ../.. && /bin/sh /home/marco/install/libecwj2-3.3/missing --run autoheader
configure.in:51: warning: AC_ARG_PROGRAM was called before AC_CANONICAL_TARGET
autoconf/general.m4:1657: AC_CANONICAL_TARGET is expanded from...
configure.in:51: the top level
touch ./NCSGnuConfig.h.in
cd ../.. && /bin/sh ./config.status Source/NCSBuildGnu/NCSGnuConfig.h
config.status: creating Source/NCSBuildGnu/NCSGnuConfig.h
make all-am
make[3]: Entering directory `/home/marco/install/libecwj2-3.3/Source/NCSBuildGnu'
if g++ -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -D_REENTRANT -DLIBECWJ2 -DLINUX -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUNICODE -D_UNICODE -DPOSIX -I/home/marco/install/libecwj2-3.3/Source/include -I/home/marco/install/libecwj2-3.3/Source/C/NCSEcw/lcms/include -Wall -Wno-long-long -fpic -fno-common -g -O2 -MT ______lib_libecwj2_a-NCSJP2.o -MD -MP -MF ".deps/______lib_libecwj2_a-NCSJP2.Tpo" \
-c -o ______lib_libecwj2_a-NCSJP2.o `test -f '../C/NCSEcw/NCSJP2/NCSJP2.cpp' || echo './'`../C/NCSEcw/NCSJP2/NCSJP2.cpp; \
then mv -f ".deps/______lib_libecwj2_a-NCSJP2.Tpo" ".deps/______lib_libecwj2_a-NCSJP2.Po"; \
else rm -f ".deps/______lib_libecwj2_a-NCSJP2.Tpo"; exit 1; \
fi
/home/marco/install/libecwj2-3.3/Source/include/NCSJP2FileView.h:837: error: ISO C++ forbids declaration of 'CNCSJPCResample' with no type
/home/marco/install/libecwj2-3.3/Source/include/NCSJP2FileView.h:837: error: expected ';' before '*' token
make[3]: ** [______lib_libecwj2_a-NCSJP2.o] Erro 1
make[3]: Leaving directory `/home/marco/install/libecwj2-3.3/Source/NCSBuildGnu'
make[2]: ** [all] Erro 2
make[2]: Leaving directory `/home/marco/install/libecwj2-3.3/Source/NCSBuildGnu'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/home/marco/install/libecwj2-3.3/Source'
make: ** [all-recursive] Erro
More information about the Gdal-dev
mailing list