Building/editing the default sketch with Eclipse
This quick solution uses the existing libmaple makefile.
1. First, you need "eclipse IDE for C/C++ developpers" :
Download it, install it.
2. Launch it and accept the workspace it proposes by default
Close the "welcome" tab.
3. Import libmaple project in Eclipse
. File -> import
. C/C++ -> Existing Code as MakeFile project
. Existing code location : select your 'libmaple' directory + OK
. Select Linux GCC (not sure what that does but cannot hurt)
4. Now you should get an error :
"make: *** no rule to make target 'all'..."
The libmaple Makefile expects the make default target to be "sketch"
Let's fix that :
Select menu "Project- > properties"
A property windows shows up.
Click on "C/C++ build" in the left tree.
Then click on the "Behaviour" tab inside the window.
In the field "build :", replace 'all' by 'sketch'.
Then click 'OK'.
Everything should compile now.
Uncheck "Project->Build automatically" if you don't want automatic build.
Use CTRL-B each time you want to build.
5. Now you can create an install target :
Menu "project-> make target-> Create..".
Type "install" in the first field then 'OK'.
To install "SHIFT-F9", select the target then "Build".
6. Start modifying main.cpp
Now you can enjoy:
. refactoring possibility of Eclipse
. The smart completion - CTRL-SPACE
. the "problems" tab which will redirect you where the error is
. the F3 key, to move you to your function/variable/define/class definition.
. The powerfull overlay, when your mouse fly over the code
... and much more...