[gdal-dev] Java bindings build issue

2009-06-17 Thread Stefan Moebius
Hi, I'm trying to build gdal-trunk with Java bindings on rhel-5. I succeeded with GDAL itself, but had to disable expat. I also disabled OGR, but included PROJ.4. Next I configured gdal/swig/java/java.opt and ran make. Result is: mkdir -p org/gdal/gdal mkdir -p org/gdal/gdalconst mkdir -p

Re: [gdal-dev] Java bindings build issue

2009-06-17 Thread Stefan Moebius
Same problem with OGR enabled. Stefan Moebius wrote: Hi, I'm trying to build gdal-trunk with Java bindings on rhel-5. I succeeded with GDAL itself, but had to disable expat. I also disabled OGR, but included PROJ.4. Next I configured gdal/swig/java/java.opt and ran make. Result is: mkdir

Re: [gdal-dev] Java bindings build issue

2009-06-17 Thread Ari Jolma
Stefan Moebius kirjoitti: swig -Wall -I../include -I../include/java -I../include/java/docs -outdir org/gdal/gdal -package org.gdal.gdal -I/home/devbuild/gdal-1.7 -c++ -java -o gdal_wrap.cpp gdal.i ../include/cpl.i:EOF: Error: Missing #endif for conditional starting on line 214 make: ***

Re: [gdal-dev] Java bindings build issue

2009-06-17 Thread Stefan Moebius
line 214 at cpl.i is #ifndef SWIGRUBY the corresponding #endif seems to be on the last line and without newline, maybe that's confusing your swig? Add a newline to the end of the file and say make. Yeah, that's it. Thanks for saving my day :-) Cheers, Stefan