Building coatjava

These are the instructions to build the CLAS12 coatjava software package. There are good instructions on the github repository. This page has comments to fill in any missing steps.

Make a Local Branch

The coatjava package in the clas12-offline-software is the development branch. However, every developer should work on his or her own local branch. I did this for the CMENP group in my github account.

To make the branch, I did the folowing steps:

  • Logged into my github account.
  • Went to the clas12-offline-software repository
  • Clicked the "Fork" button in the top right corner of the page. The counter should increase by 1.

At this point, a local branch has been created in my repositiory under cmenpgroup/clas12-ofline-software. To download the software, I

  • used the "Clone or Download" button which opens a menu.
  • copied the url.
  • openned a terminal on my Mac and went to the folder where I want to download.
  • typed the command

> git clone https://github.com/cmenpgroup/clas12-offline-software.git

From here, I followed the build instructions on the CLAS12 repository.

wget

On my Mac, the first time that I tried to build coatjava, I got an immediate error saying that the wget command was not found. I installed it with macports

> sudo port install wget

Updating the Local Branch to Changes in the CLAS12 Development

The first time I built coatjava, there was an error due to a python script. Nathan Baltzell fixed it in the CLAS12 development branch. I wanted to update my local branch without starting from scratch. To do this, I had to create a remote branch and sync to that. The instructions can be found here.