This tutorial detailed the Gephi build system. It shows how to build Gephi from the source code. To get the source code, see How to get Gephi. Gephi can be hosted by your favorite IDE enviroment or either build directly with command lines.
Build Gephi directly
When you get the source code, there is not much left to do in order to build Gephi. Thanks to Apache ANT most of the procedure is automatic. Indeed when ANT is used, it can compile, build, zip, sign, copy etc. So the role of ANT is to get the sources and everything needed to create releases for each platform.
The result of ANT tasks can be seen in the gephi/build directory.
Requirements
* A recent Java JDK, needed for any compilation.
* An environment variable JAVA_HOME set to the JDK directory.
Building
Windows : Execute build.bat
Linux/MacOS : Execute build.sh
Build Gephi in Eclispe
See How to set Gephi in Eclipse
Further information about ANT
Installation
On Windows: You probably don’t have ANT installed on your system. If you want to use it from a command line, you’ll have to install it. In opposition to install it, you can simply execute build.bat, it will do the main_desktop task. You can also load Gephi in Eclipse and use native support of ANT
On linux: The ANT package is often already installed. You can simply go to the Gephi root directory and call the task you need.
How it works
The secret is in the build.xml file you can see at sources directory. The idea is to create tasks you’ll call to do something and handle most of repetitive work.
What are Gephi tasks?
Execute a command line like ant name.of.the.task in the root directory, where build.xml is.
* main_desktop (default): Build all sources for all platforms.
* main_desktop_without_plugins_and_datasources: Build everything except plugins and datasources directories. This can be used to make a release without your personal/unfinished work.
* main_applet: If you’re developing an applet version, this task exclude what is relative to different platforms and sign with a certificate the resulting JAR.
* main_jws: Generate the Java Web Start demo with the .gephi file present in the demo directory.
* clean_all: Clean everything unnecessary in the build directory.
* doc: Generate the Javadoc.
