How to compile libjni-gdal -------------------------- General Requirements -------------------- Make sure you have a directory .m2 in your $HOME. In this directory there should be a file settings.xml. This step is only necessary if you have to deploy files. gvsig-repository [USERNAME] [PASSWORD] 666 777 Linux ----- Installed programs cmake (apt-get install cmake) maven (minimum version 2.2.1. This version is available in build directory) ant (apt-get install ant) Open a system console and set variable JAVA_HOME with a right value. ej: export JAVA_HOME=[Path_to_JDK] Launch the command to compile: mvn install -Dnative-arch=[ARCHITECTURE] -Dnative-distribution=[DISTRIBUTION] -Pjni-devel -Dmaven.test.skip -Dnative-classifier=[CLASSIFIER] ARCHITECTURE = "X86_64", "i386", ... DISTRIBUTION = "nt", "Ubuntu-9.10", "10.5", ... CLASSIFIER = linux-Ubuntu-9.10-gcc4-X86_64-dynamic Example: mvn install -Dnative-arch="X86_64" -Dnative-distribution="Ubuntu-9.10" -Pjni-devel -Dmaven.test.skip -Dnative-classifier=linux-Ubuntu-9.10-gcc4-X86_64-dynamic Windows ------- Installed programs Visual Studio 2005 (vs8) cmake maven (minimum version 2.2.1. This version is available in build directory) ant Make sure you have the right value in your JAVA_HOME variable libjni-gdal needs a GDAL SDK to be compiled. This SDK is in the maven repository. The pom.xml contains the version of GDAL. You should check the version. org.gdal gdal 1.7.1 ${native-classifier} tar.gz The binaries of this version will be downloaded from maven repository. http://gvsig-desktop.forge.osor.eu/downloads/pub/projects/gvSIG-desktop/maven-repository/ Launch the command to compile: mvn install -Dnative-arch=[ARCHITECTURE] -Dnative-distribution=[DISTRIBUTION] -Pjni-devel -Dmaven.test.skip -Dnative-classifier=[CLASSIFIER] ARCHITECTURE = "X86_64", "i386", ... DISTRIBUTION = "nt", "Ubuntu-9.10", "10.5", ... CLASSIFIER = win-nt-gcc4-vs8-i386-dynamic Example: mvn install -Dnative-arch="i386" -Dnative-distribution="win-nt" -Pjni-devel -Dmaven.test.skip -Dnative-classifier=win-nt-gcc4-vs8-i386-dynamic