How to build gdal jni on windows

纵然是瞬间 提交于 2019-12-24 20:08:44

问题


I want to use ogr2ogr.java and it need the GDAL jni to work. I have tried following the instruction mentioned here Build Instructions for GDAL/OGR In Java (Windows) but, still I am not able to build it. I am using windows 7 64 bit operating system. If somebody has build it successfully let me know how you did it.


回答1:


So, after lot of trouble I found out that that there is no need to build gdal jni from source.

  • You can download the compiled jni dll file from here Tamas Szekeres' Windows daily builds. Make sure you download a stable release. zip package release-1600-x64-gdal-1-8-0-mapserver-5-6-6 worked for me. you can can try it too unless you want a very specific version.
  • Once the gdaljni.dll file was in place I got the ogr2ogr.java file from here All Java sample programs
  • Make sure you check this post to set the environment variables correctly


来源:https://stackoverflow.com/questions/50753253/how-to-build-gdal-jni-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!