Opened 16 years ago
Closed 9 years ago
#2470 closed defect (duplicate)
Java bindings: JAVA_INCLUDE broken on windows for JAVA_HOME with spaces
Reported by: | mnidel | Owned by: | aaime |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | JavaBindings | Version: | 1.5.2 |
Severity: | normal | Keywords: | |
Cc: |
Description
If JAVA_HOME contains spaces, e.g. the default C:\Program Files\Java..., the JAVA_INCLUDE will not properly quote the path and the included .h files will not be found during the JNI DLL build.
The fix is to modify the following line:
JAVA_INCLUDE=-I$(JAVA_HOME)\include -I$(JAVA_HOME)\include\win32
to the following:
JAVA_INCLUDE=-I"$(JAVA_HOME)\include" -I"$(JAVA_HOME)\include\win32"
This solves the problem, which occurs at minimum with GDAL 1.5 branch.
A patch is attached to perform the fix.
Attachments (1)
Note:
See TracTickets
for help on using tickets.
Patch for GDAL_HOME/nmake.opt