Hi,<br>the thing I have noticed in 1.5.3 is that in "swig/include/gdal.i" there is:<br><br>#if !defined(SWIGJAVA)<br> %include "ColorTable.i"<br>#endif<br><br>In case you are building JAVA bindings, the include will be skipped resulting in errors.<br>
Not sure why this has been added.<br>In the patch I have provided to Mike, I have removed the !defined/endif directives.<br><br>Moreover, in the patch, for "swig/include/java/gdal_java.i", the line: <br>
<br>
"%typemap(javaimports) GDALColorTable %{"<br>
<br>
have been substitued by <br>
<br>
"%typemap(javaimports) GDALColorTableShadow %{"<br>
<br><br>Daniele<br><br><div class="gmail_quote">On Mon, Oct 27, 2008 at 3:26 PM, Nidel, Mike <span dir="ltr"><<a href="mailto:mike.nidel@lmco.com" target="_blank">mike.nidel@lmco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've just updated to the tagged 1.5.3 version of GDAL. I'm building the<br>
Swig Java bindings, and I'm getting the following build error<br>
(truncated, occurs a total of 8 times):<br>
<br>
Buildfile: build.xml<br>
<br>
compile:<br>
[javac] Compiling 39 source files to<br>
C:\src\gdal-1.5.3\swig\java\build\class<br>
es<br>
[javac]<br>
C:\src\gdal-1.5.3\swig\java\org\gdal\gdal\ColorTable.java:35: cannot<br>
find symbol<br>
[javac] symbol : method delete_ColorTable(long)<br>
[javac] location: class org.gdal.gdal.gdalJNI<br>
[javac] gdalJNI.delete_ColorTable(swigCPtr);<br>
[javac] ^<br>
<br>
<br>
I know this relates to a patch that was provided by Daniele over at<br>
Geosolutions. I applied the patch to a previous build but haven't<br>
applied it to the 1.5.3 baseline on my system.<br>
<br>
Is there any intention of fixing this in GDAL? Is it possible I've<br>
missed or forgotten some discussion on the topic? Perhaps it's fixed in<br>
a more recent build?<br>
<br>
<br>
Mike<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>-------------------------------------------------------<br>Eng. Daniele Romagnoli <br>Software Engineer<br><br>GeoSolutions S.A.S.<br>Via Carignoni 51<br>55041 Camaiore (LU)<br>
Italy<br><br>phone: +39 0584983027<br>fax: +39 0584983027<br>mob: +39 328 0559267<br><br><br><a href="http://www.geo-solutions.it" target="_blank">http://www.geo-solutions.it</a><br><br>-------------------------------------------------------<br>
<br>