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

Shaun Kolomeitz shaun.kolomeitz at epa.qld.gov.au
Tue May 9 22:38:33 EDT 2006


Dear Gdal-Dev'ers,

Well I seem to have conquered most of the hurdles on getting GDAL to compile on Solaris10/SPARC.
One is still alluding me however (see below). I've been able to recompile ECW according to the Build.txt instructions, although bringing ECW support into GDAL is giving me grief (see below). Any help greatly appreciated.

With Regards,
Shaun
-----8<----
 g++ -Wall -O2 -I/export/home/postgres/gdal-1.3.2/port -I/export/home/postgres/gdal-1.3.2/gcore -I/export/home/postgres/gdal-1.3.2/alg -I/export/home/postgres/gdal-1.3.2/ogr -I/export/home/postgres/gdal-1.3.2/ogr/ogrsf_frmts -DFRMT_ecw -DOGR_ENABLED -D_REENTRANT -I/export/home/postgres/gdal-1.3.2/port -I/usr/local/include -I/usr/local/include/jasper -I/usr/local/include/jasper/include -c ecwdataset.cpp  -fPIC -DPIC -o ../o/.libs/ecwdataset.o
In file included from /usr/include/fcntl.h:23,
                 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:125: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:48:24: token "=" is not valid in preprocessor expressions
/usr/include/fcntl.h:103:40: token "=" is not valid in preprocessor expressions
make[2]: *** [../o/ecwdataset.o] Error 1
make[2]: Leaving directory `/export/home/postgres/gdal-1.3.2/frmts/ecw'
make[1]: *** [ecw-install-obj] Error 2
make[1]: Leaving directory `/export/home/postgres/gdal-1.3.2/frmts'
make: *** [frmts-target] Error 2



___________________________
Disclaimer

This e-mail, including attachments if any, has originated from a Queensland government agency and may contain information that is confidential, or covered by legal professional privilege, and is intended for the named recipient(s) only.  If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer system network.

Any form of disclosure, modification, distribution and/or publication of this e-mail, including attachments is prohibited.  Unless otherwise stated, this e-mail, including attachments represents the views of the sender and not the views of the Environmental Protection Agency.

Although this e-mail has been checked for the presence of computer viruses, the Environmental Protection Agency provides no warranty that all possible viruses have been detected and cleaned.  Any use of this e-mail could harm your computer system.
___________________________





More information about the Gdal-dev mailing list