Personal tools
You are here: Home gvSIG Projects gvSIG Commons OSG Virtual Planets Developers Information
Document Actions

Developers Information

by Rafael Gaitan last modified 2010-06-01 23:50

Information for Developers of the librarý

Compilation Requirements

  1. 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
  1. C++ Compiler:
    • Linux: g++.
    • Windows: Visual Studio 2003.
    • Mac: g++ or Xcode. (Developer Tools).
  2. 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)
  3. Java JDK (http://java.sun.com)

  4. Maven (http://maven.apache.org)

  5. Ant (http://ant.apache.org)

  6. Eclipse (http://www.eclipse.org)

  7. 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:

Guide to compile. (with internal native dependency management aka. BuildMan)

Minimum Components:
  1. $ mvn install -Dmaven.test.skip=true -DuseBuildMan
  2. $ mvn eclipse:eclipse
  3. $ mvn eclipse:add-maven-repo -Declipse.workspace="."
To Develop with Eclipse Plugins:
  1. $ cd eclipse-plugins
  2. $ mvn eclipse:eclipse
To Develop with Eclipse RCPs:
  1. $ cd applications/eclipse-applications
  2. $ 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:
  1. $ mvn install -Dmaven.test.skip=true -DcompileTarget=ati -DuseBuildMan
  2. $ mvn eclipse:eclipse -DcompileTarget=ati
  3. $ mvn eclipse:add-maven-repo -Declipse.workspace="."
Build for VS8 compiler:
  1. $ mvn install -Dmaven.test.skip=true -DcompileTarget=vs8 -DuseBuildMan
  2. $ mvn eclipse:eclipse -DcompileTarget=vs8
  3. $ mvn eclipse:add-maven-repo -Declipse.workspace="."
Build for VS9 compiler:
  1. $ mvn install -Dmaven.test.skip=true -DcompileTarget=vs9 -DuseBuildMan
  2. $ mvn eclipse:eclipse -DcompileTarget=vs8
  3. $ mvn eclipse:add-maven-repo -Declipse.workspace="."
Build without BuildMan:
  1. Make sure you have OSG_DIR enviromental variable setted to the path of installed and compiled version of OpenSceneGraph 2.2.0
  2. $ mvn install -Dmaven.test.skip=true

Development Version Build Guide.

See 2.1.7 Build Guide.


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: