Developers Information
Information for Developers of the librarý
Compilation Requirements
- Subversion (Only to get development version)
- Linux: $ apt-get install subversion
- Windows: download Subversion command line version or TortoiseSVN .
- Mac: Leopard comes with svn installes. For Tiger download the command line version
- C++ Compiler:
- Linux: g++.
- Windows: Visual Studio 2003.
- Mac: g++ or Xcode. (Developer Tools).
- CMake (http://www.cmake.org)
- Linux Ubuntu: $ apt-get install cmake
- Windows: Download the lastest stable version.
- Mac: Dowload Lastest stable (we recommend >2.6.0)
Java JDK (http://java.sun.com)
Maven (http://maven.apache.org)
Ant (http://ant.apache.org)
Eclipse (http://www.eclipse.org)
Python (http://www.python.org) Used for download native dependencies (recommended option).
Maven Repository
If you want to use our library in your project you can get java binaries using a maven repository adding this to your dependencies section in your pom.xml.
<dependencies> ... <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId> <artifactId>libosgvp-core</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId> <artifactId>libosgvp-ephemeris</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId> <artifactId>libosgvp-features</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId> <artifactId>libosgvp-manipulator</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId>d> <artifactId>libosgvp-planets</artifactId> <version>2.1.7</version> </dependency> <dependency> <groupId>org.gvsig.osgvp.libosgvp/groupId> <artifactId>libosgvp-viewer</artifactId> <version>2.1.7</version> </dependency> ... </dependecies>
You also need to add a new remote repository in your pom.xml
<repositories> ... <repository> <id>gvsig-http-repository</id> <url>http://downloads.gvsig.org/pub/gvSIG-desktop/maven-repository</url> </repository> </repositories>
Version Build Guide
Requirements
We higlhly recommend use internal manage of native dependencies (BuildMan) that uses python if not you need to setup and install in your system this native libraries:
- GDAL. (http://www.gdal.org)
- OpenSceneGraph 2.2.0. with GDAL support (http://www.openscenegraph.org)
- JOGL. (https://jogl.dev.java.net)
Guide to compile. (with internal native dependency management aka. BuildMan)
- Minimum Components:
- $ mvn install -Dmaven.test.skip=true -DuseBuildMan
- $ mvn eclipse:eclipse
- $ mvn eclipse:add-maven-repo -Declipse.workspace="."
- To Develop with Eclipse Plugins:
- $ cd eclipse-plugins
- $ mvn eclipse:eclipse
- To Develop with Eclipse RCPs:
- $ cd applications/eclipse-applications
- $ mvn eclipse:eclipse
NOTE: If you have installed ANT on your system you can use the ant command on the root of the project to do all the previous tasks automatically but using precompiled binaries taken from AI2 servers, so this could cause execution problems.
Additional Build Notes
- Build for ATI graphics cards:
- $ mvn install -Dmaven.test.skip=true -DcompileTarget=ati -DuseBuildMan
- $ mvn eclipse:eclipse -DcompileTarget=ati
- $ mvn eclipse:add-maven-repo -Declipse.workspace="."
- Build for VS8 compiler:
- $ mvn install -Dmaven.test.skip=true -DcompileTarget=vs8 -DuseBuildMan
- $ mvn eclipse:eclipse -DcompileTarget=vs8
- $ mvn eclipse:add-maven-repo -Declipse.workspace="."
- Build for VS9 compiler:
- $ mvn install -Dmaven.test.skip=true -DcompileTarget=vs9 -DuseBuildMan
- $ mvn eclipse:eclipse -DcompileTarget=vs8
- $ mvn eclipse:add-maven-repo -Declipse.workspace="."
- Build without BuildMan:
- Make sure you have OSG_DIR enviromental variable setted to the path of installed and compiled version of OpenSceneGraph 2.2.0
- $ mvn install -Dmaven.test.skip=true
Development Version Build Guide.
See 2.1.7 Build Guide.