2017-02-14 9 views
0

원본에서 컴파일하려는 공통 GIS 라이브러리 (GDAL)의 Java 바인딩 용 메이크 파일이 있습니다. 주요 실행 파일의 컴파일은 가능하지만 바인딩은 컴파일되지 않습니다. 어쩌면 누군가가 나를 위해 조언을 해 줄 수 있습니다.Swig을 통한 Java Bindings 용 Makefile은 실패합니다.

cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei "Files\Java\jdk1.8.0_121\include", Objektdatei wird angenommen. 
cl : Befehlszeile warning D9027 : Quelldatei "Files\Java\jdk1.8.0_121\include" wird ignoriert. 
cl : Befehlszeile warning D9024 : Unbekannter Typ der Quelldatei "Files\Java\jdk1.8.0_121\include\win32", Objektdatei wird angenommen. 
cl : Befehlszeile warning D9027 : Quelldatei "Files\Java\jdk1.8.0_121\include\win32" wird ignoriert. 
ogr_wrap.cpp 
c:\gdal-2.1.3\swig\java\ogr\ogr_wrap.cpp(159): fatal error C1083: Datei (Include) kann nicht geöffnet werden: "jni.h": No such file or directory 
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.EXE"": Rückgabe-Code "0x2" 
Stop. 
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.EXE"": Rückgabe-Code "0x2"Stop. 
NMAKE : fatal error U1077: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\nmake.EXE"": Rückgabe-Code "0x2"Stop. 

경로가 올바른지,하지만 왜이 나중에 JAVA_INCLUDE는 CL.EXE에 오류가 발생하는 것 같다

############################################################################### 
# Location to install .exe, .dll and python stuff 
# Edit as required. GDAL_HOME is used for convenience here, 
# but this particular relative organization is not mandatory. 
# But the paths *should* be absolute (relative paths mess up in submakefiles). 

!IFNDEF GDAL_HOME 
GDAL_HOME = "C:\gdal-2.1.3\bld" 
!ENDIF 
!IFNDEF BINDIR 
BINDIR = $(GDAL_HOME)\bin 
!ENDIF 
!IFNDEF PLUGINDIR 
PLUGINDIR = $(BINDIR)\gdalplugins 
!ENDIF 
!IFNDEF LIBDIR 
LIBDIR = $(GDAL_HOME)\lib 
!ENDIF 
!IFNDEF INCDIR 
INCDIR = $(GDAL_HOME)\include 
!ENDIF 
!IFNDEF DATADIR 
DATADIR = $(GDAL_HOME)\data 
!ENDIF 
!IFNDEF HTMLDIR 
HTMLDIR = $(GDAL_HOME)\html 
!ENDIF 

# Set this to the installed directory containing python. If you don't 
# have python just let it point to a directory that does not exist (as now). 
!IFNDEF PYDIR 
PYDIR = "C:\Software\Python24" 
!ENDIF 

# Set the location of your SWIG installation 
!IFNDEF SWIG 
SWIG = "C:\OSGeo4W64\apps\swigwin\swig.exe" 
!ENDIF 

# SWIG Java settings 
!IFNDEF JAVA_HOME 
JAVA_HOME = "C:\Program Files\Java\jdk1.8.0_121" 
!ENDIF 
!IFNDEF ANT_HOME 
ANT_HOME="C:\OSGeo4W64\bin\apache-ant-1.10.1" 
!ENDIF 
JAVADOC=$(JAVA_HOME)\bin\javadoc 
JAVAC=$(JAVA_HOME)\bin\javac 
JAVA=$(JAVA_HOME)\bin\java 
JAR=$(JAVA_HOME)\bin\jar 
JAVA_INCLUDE= -I $(JAVA_HOME)\include -I $(JAVA_HOME)\include\win32 

:

나는 나의 nmake.opt 파일의 모든 경로를 설정 알 수없는 객체 유형을 반환합니까? 내가 만든 실수가 있니?

답변

0

경로의 공백으로 인해 구문 분석이 잘못되었습니다. 따라서 컴파일되지 않았습니다.