Eclipse Plug-in for importing projects into Eclipse CDT exported by Arduino Create.
- Java 8 or newer,
- Eclipse IDE for C/C++ Developers 2018-12 (
4.10) or newer, make, andcmakeon thePATH.
Command line:
./mnvw clean verify Eclipse:
- Clone the
arduino-create-eclipserepository and - Import the sources into your Eclipse workspace with
Import...>General>Existing Projects into Workspace.Select root directoryand browse the root of the cloned repository.- Enable
Search for nested projects, and - Hit
Finish✨
The easiest way to install, is to drag and drop the Install button into your running Eclipse workspace. This plug-in is also available at Eclipse Marketplace.
The p2 update sites are available for each released version on GitHub as a ZIP archive. The latest p2 is available here. If you want to use the p2 update URL inside Eclipse, you must prefix the URL with jar: and suffix it with !/.
- URL of the
latestp2:jar:https://github.com/arduino/arduino-create-eclipse/releases/latest/download/arduino-create-eclipse-p2.zip!/ - Generic p2 URL pattern for any
semverreleases:jar:https://github.com/arduino/arduino-create-eclipse/releases/download/v${semver}/arduino-create-eclipse-p2.zip!/ - Example URL for version
0.0.1:jar:https://github.com/arduino/arduino-create-eclipse/releases/download/v0.0.1/arduino-create-eclipse-p2.zip!/
The following Arduino Create export structures are supported:
- Folder:
_cmake |____ build (empty) |____ core | |____ Arduino.h | |____ (other core .h and .cpp files) |____ lib | |____ (3rd party libraries if any) |____ sketch | |___ sketch-file.ino.cpp |____ CMakeLists.txt - ZIP:
arduino_create-cmake.zip |____ _cmake |____ build (empty) |____ core | |____ Arduino.h | |____ (other core .h and .cpp files) |____ lib | |____ (3rd party libraries if any) |____ sketch | |___ sketch-file.ino.cpp |____ CMakeLists.txt
Currently, you can build the imported Arduino Create project on Linux only.
- Windows:
C:\path\to\your\project\_cmake\core\shell.h:8:10: fatal error: sys/wait.h: No such file or directory #include <sys/wait.h> ^~~~~~~~~~~~ compilation terminated. - macOS:
/path/to/your/project/_cmake/core/DebugSerial.h:56:2: error: unknown type name 'pthread_barrier_t' pthread_barrier_t _barrier; ^ 1 error generated.
Q: What happens when cmake is not installed on the system?
A: If cmake is not installed, you will see the following console output in Eclipse:
Buildfile generation error occurred.. cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -G “Unix Makefiles” /home/user_name/dev/arduino-create-eclipse-ws/arduino_create-cmake Cannot run program “cmake”: Unknown reason Error: Program “cmake” not found in PATH PATH=[/home/user_name/bin:/home/user_name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin] Build stopped.. Q: What happens when cmake4eclipse is not installed in Eclipse?
A: This Eclipse plug-in has a hard dependency on cmake4eclipse. It will be implicitly installed into Eclipse when this Eclipse plug-in is installed either from a p2 update site or the Eclipse Marketplace.
- This plug-in is licensed under the
EPL-2.0.
- This project is built on the top of
cmake4eclipse🥇
