-
Notifications
You must be signed in to change notification settings - Fork 2
Building From Source
If you don't have it already, obtain the Eclipse IDE and install it.
The bonus when using Eclipse compared to other IDEs is that we host working Eclipse-projects in our repositories. With other IDEs you will have to set up your own project.
-
Install the EGit plugin to Eclipse. This is an official plugin for the latest Eclipse:
- Go to
Help/Install New Software - Select
All Available Sitesin theWork withdropdown. - Type
EGitin the filter box. - Chose
EGitfrom the search results and install it (and its dependencies).
- Go to
-
In Eclipse select
File/Importto import the Freenet project - Web Of Trust needs some of it to compile:- In the
Selectdialog choseGit/Projects from Git, click Next - In the
Select a git repositorydialog clickClone - In the
Source Git repositoryscreen enter the following into URI:git://github.com/freenet/fred.git - Click Next.
- In the
Branch selectionscreen chose the branches which you want. Master branch is usually the only which you need, it is the main development branch. Click Next. -
Local destinationscreen: Selectmasteras the initial branch. Click Finish to import the Freenet project. This might take some time as the source code of Freenet is rather large. Have a coffee now. - Now you will be back to the
Import projects from Gitwizard where you had pressed clone. - Select
fredif there are multiple projects in the list - Click Next
- In the
Select a wizard to use for importing projectsselectImport existing projectsif it is not selected already - Click Next
- In the
Import projectsscreen select thefredproject. Click Finish - Now the
fredproject should be important and compile fine already.
- In the
To get the latest source from Github, build the Freenet jar:
git clone git://github.com/freenet/fred.git
cd fred
./gradlew jar
To get the latest version of the source use
git pull
We provide a script to verify that the official jar corresponds to the official source code, "verify-build" in the Maintenance scripts repository. It takes a bit of setting up, so see here for details:
https://github.com/freenet/scripts/blob/master/README.md#verifying-fred-builds