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)

nmake.opt.patch (429 bytes ) - added by mnidel 16 years ago.
Patch for GDAL_HOME/nmake.opt

Download all attachments as: .zip

Change History (3)

by mnidel, 16 years ago

Attachment: nmake.opt.patch added

Patch for GDAL_HOME/nmake.opt

comment:1 by mnidel, 16 years ago

Forgot to mention the fix is for GDAL_HOME/nmake.opt

comment:2 by Jukka Rahkonen, 9 years ago

Resolution: duplicate
Status: newclosed

Dublicate of #2469

Note: See TracTickets for help on using tickets.