Here are a number of instructions and tips on how to use at best the IDE called CLion from Jetbrains.
Download from the website.
We are currently negotiating new free licenses for the core members of the collaboration. See here.
The difficulty here lies with the fact that the O2 software needs to be configures with cmake using a number of variables that point to the installation of its dependencies. These instructions have to be carried out only once.
- Build O2 using alibuild as usual
- Open the log file that should be in ~/alice/sw/BUILD/O2-latest/log
- Near the top of the file identify the line starting with
+ cmake. - Copy the arguments starting from
-DFairRoottill the end of the command. - Paste it in an editor
- The annoying part starts : replace all references to a version by "latest", e.g. :
-DFairRoot_DIR=/home/local/alice/sw/slc7_x86-64/FairRoot/alice-dev-20170711-1->-DFairRoot_DIR=/home/local/alice/sw/slc7_x86-64/FairRoot/latest-DPROTOBUF_PROTOC_EXECUTABLE=/home/local/alice/sw/slc7_x86-64/protobuf/v3.0.2-1/bin/protoc->-DPROTOBUF_PROTOC_EXECUTABLE=/home/local/alice/sw/slc7_x86-64/protobuf/latest/bin/protoc
- In CLion, open Settings and go to the tab "Build,Execution,Deployment".
- Click
CMakeand expand the "CMake options". Copy the string you substituted. - Save
- Reopen clion from a terminal in which you will have loaded the environment :
alienv load O2/latest
- Download the file
- Go to File -> Import Settings and import the formatting settings.