Opened 18 years ago

Last modified 17 years ago

#1240 closed defect (fixed)

Windows Java bindings don't build correctly

Reported by: condit@… Owned by: collinsb@…
Priority: highest Milestone:
Component: JavaBindings Version: unspecified
Severity: minor Keywords:
Cc: condit@…

Description

I've checked out a fresh version of GDAL from the CVS and was attempting to build the Java bindings ( on Windows 2003 server ).  nmake always fails because all of the directories that are being created exist.  Please see the patch below - the addition of "if not exist" will fix this error.


Index: swig/makefile.vc
===================================================================
RCS file: /cvs/maptools/cvsroot/gdal/swig/makefile.vc,v
retrieving revision 1.14
diff -u -r1.14 makefile.vc
--- swig/makefile.vc	2 Feb 2006 21:12:56 -0000	1.14
+++ swig/makefile.vc	18 Jul 2006 18:18:58 -0000
@@ -40,24 +40,24 @@
 
 java: gdalvars
         cd java
-        mkdir org\gdal\gdal
+        if not exist org\gdal\gdal mkdir org\gdal\gdal
         cd gdal
         $(SWIG) -java -c++ -package org.gdal.gdal -outdir ../org/gdal/gdal -I../../include/java -o gdal_wrap.cpp ../../../include/gdal.i
         cd ..
         cd org\gdal
-        mkdir ogr
+        if not exist ogr mkdir ogr
         cd ../../
         cd ogr
         $(SWIG) -java -c++ -package org.gdal.ogr -outdir ../org/gdal/ogr -I../../include/java -o ogr_wrap.cpp ../../../include/ogr.i
         cd ..
         cd org\gdal
-        mkdir osr
+        if not exist osr mkdir osr
         cd ../../
         cd osr
         $(SWIG) -java -c++ -package org.gdal.osr -outdir ../org/gdal/osr -I../../include/java -o osr_wrap.cpp ../../../include/osr.i
         cd ..
         cd org\gdal
-        mkdir gdalconst
+        if not exist gdalconst mkdir gdalconst
         cd ../../
         cd const
         $(SWIG) -java -c++ -package org.gdal.gdalconst -outdir ../org/gdal/gdalconst -I../../include/java -o gdalconst_wrap.cpp ../../../include/gdalconst.i

Change History (1)

comment:1 by hobu, 17 years ago

Patch applied.
Note: See TracTickets for help on using tickets.