-
Notifications
You must be signed in to change notification settings - Fork 0
How to Setup the Eclipse IDE (with SGX Plugin)
Eclipse is used for SGX application development under Linux. In this manual we will describe how to install the IDE and the Intel SGX plugin.
Since Eclipse is a Java application, we have to install the Java Development Kit:
sudo apt-get install default-jdk
After this we have to download the C/C++ Eclipse Package on the following page:

When the download is completed, we'll get a .tar.gz
archive. In the directory into which we downloaded the archive, we can unpack the archive by running the following command.
tar xfvz <eclipse.tar.gz>
Now we will move the unzipped eclipse folder into the home folder of the current user.
mv ~/Downloads/eclipse ~/eclipse
Afterwards we can run eclipse with the following command:
~/eclipse/eclipse
Development of SGX applications needs some extensions for default eclipse application. Therefore an Eclipse plugin is existing. This plugin can be downloaded at the SGX download center:
β Note: In the meantime Linux SGX version 2.9 has been released. It is possible that the manual also applies to version 2.9. However, the manual has been tested with version 2.8.

β Note: The official installation guide states that we have to compile the eclipse plugin manually. We can skip this part, due to the fact that we are using the pre compiled plugin file, mentioned above.
After the download is complete, we will add the plugin to eclipse by clicking Help
-> Install New Software ...
In the following window, we will click on the Add ...
Button to select our local plugin archive.
As already mentioned, we have the plugin available as an archive, so we click on Archive ...
.
Now we will define a name for this plugin and choose our downloaded .zip
file.
Then we will click Add
and select the Intel(R) SGX Eclipse Plugin
. We confirm this selection with a click on the Next >
Button.
Afterwards we will click again Next >
and accept the License Agreement. After finishing the assistant, a security warning will appear. This occurs because some components of the plugin are not signed. We will continue by clicking Install anyway
.
At the bottom of Eclipse we can see a progress bar, which will indicate the installation progress. After finishing we will prompted to restart the IDE.
After restarting the IDE, we have to validate the correct Intel SGX SDK
path by clicking Window
-> Preferences
.
By selecting Intel(R) SGX Preferences
on the left side we are able to check whether the entered SDK path is correct or not.
The installation is completed with the verification of the path specification.
π οΈ How to install Intel SGX Driver on Ubuntu
π οΈ How to install Intel SGX SDK on Ubuntu
π― Validate that your Intel SGX Setup is working correctly
π» How to setup the Eclipse IDE (with SGX Plugin)
β How to setup the first SGX Project
π How to analyse an SGX Enclave? (Installation and Usage)
π Project overview
π Brief introduction: SQLite's Virtual File System