As Rob said, we have been using QT Creator for a while. It’s a lot nicer to use than Eclipse, and ticks all the boxes (code navigation, autocomplete, building and displaying errors at the associated line, syntax highlighting and typo detection. It also has good debugging and git control if you prefer a GUI for these tasks. It’s free via the Ubuntu repositories, however I’m not sure how long it will stay that way. If you want the latest version from their website you now have to create an account and declare that you work for a non-commercial entity to download it for free.
Setting up a MRtrix project is easy in QT Creator. Just clone the repository, then create a “New Project”. Then select “Import Existing Project”:
Enter in the MRtrix folder path:
Once created, you can then set it up to build by going to the “Projects” menu, deleting the existing “Make” build step and adding a custom build step like so:
You should now be able to use Ctrl-B to build MRtrix (make sure you run ./configure once first). Note that you won’t see the build script output dynamically (at least on Linux), it tends to dump a chunk at a time (this has something to do with the build script piping output to
To get QT creator to parse the Eigen library in linux, I had to create a sym link to the main Eigen library folder in /usr/include:
dave@home:/usr/include$ ln -s eigen3/Eigen/
I’ll create a separate post for Eclipse.