[Gdal-dev] GDAL compile errors on Solaris8/SPARC with ECW

Juan Mari Celihueta jmcm at euskalnet.net
Thu May 25 09:19:17 EDT 2006


Hi all:

I'm having exactly the same problems that Shaun Kolomeitz ( 
http://lists.maptools.org/pipermail/gdal-dev/2006-May/008822.html ) but 
in Solaris 8. I want to compile GDAL with ECW reading support, I'm using 
GNU Make 3.80, I have compiled and installed the ECW libraries 
(libecwj2-3.3). However, when I'm trying to compile Gdal I get the next 
error messages (see below).

I would be very glad if anyone could help me.

Regards,

Juan.

make -C ecw install-obj
make[2]: Entering directory `/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/frmts/ecw'
/bin/sh /home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/libtool --mode=compile g++ 
-Wall  -O2   -I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/port 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/gcore 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/alg 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/ogr 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/ogr/ogrsf_frmts -DFRMT_ecw 
-DOGR_ENABLED -I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/port 
-I/usr/local/include  -c -o ../o/ecwdataset.o ecwdataset.cpp
 g++ -Wall -O2 -I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/port 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/gcore 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/alg 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/ogr 
-I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/ogr/ogrsf_frmts -DFRMT_ecw 
-DOGR_ENABLED -I/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/port 
-I/usr/local/include -c ecwdataset.cpp  -fPIC -DPIC -o 
../o/.libs/ecwdataset.o
In file included from /usr/include/fcntl.h:24,
                 from /usr/local/include/NCSFileIO.h:115,
                 from /usr/local/include/NCSJPCIOStream.h:30,
                 from /usr/local/include/NCSJP2Box.h:27,
                 from /usr/local/include/NCSJP2FileView.h:45,
                 from /usr/local/include/NCSFile.h:27,
                 from vsiiostream.h:79,
                 from ecwdataset.cpp:181:
/usr/include/sys/fcntl.h:120:23: token "=" is not valid in preprocessor 
expressions
In file included from /usr/local/include/NCSFileIO.h:115,
                 from /usr/local/include/NCSJPCIOStream.h:30,
                 from /usr/local/include/NCSJP2Box.h:27,
                 from /usr/local/include/NCSJP2FileView.h:45,
                 from /usr/local/include/NCSFile.h:27,
                 from vsiiostream.h:79,
                 from ecwdataset.cpp:181:
/usr/include/fcntl.h:50:24: token "=" is not valid in preprocessor 
expressions
/usr/include/fcntl.h:81:40: token "=" is not valid in preprocessor 
expressions
make[2]: *** [../o/ecwdataset.o] Error 1
make[2]: Leaving directory `/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/frmts/ecw'
make[1]: *** [ecw-install-obj] Error 2
make[1]: Leaving directory `/home1/jmcm/MAPSERVER/SRC/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2
#




More information about the Gdal-dev mailing list