Setup C++ IDE CLion on Raspberry Pi with Ubuntu Mate

Try CLion

Start CLIon with its script


Ignore for now the dialog about not found “VM options file”


Do not import for now settings is no other version was installed yet


On the dialog the “CLIon Privacy Policy Agreement” click on the button “Accept”  (if agree). On the dialog “CLion License Activation” enter the license information or click on the button “Evaluate for free for 30 days”. Select the UI theme and click the button “Next: Toolchain”.

Specify the location of the CMake


Specify the location of the GDB


The dialog reports OK on CMake bu for not it reports warning on the version of GDB – most likely debugging would not work. Ubuntu 14.04 for Raspberry Pi has version 7.7 which does not allow to debug with CLion as well.


When complete with setup dialog and sturt-up splash-screen – select the option “New Project” in the “Welcome to CLIon” dialog


Specify the project name and the folder where it will be located


Wait while initial operations completed (notice the progress-indicators on the status bar), open panels with left bottom menu, turn on “Power Save Mode” – useful option for such processor as in Raspberry Pi

Raspberry-Pi-CLion045     Raspberry-Pi-CLion046

Hit the Run button to build and start the existing example project created automatically


Select the executable file in the “Edit configuration” dialog


If during first start result is not shown in the Terminal window – there are some issue with terminal during running


Run it again – it works


However following code example works fine and stable

#include <iostream>
#include <chrono>
#include <thread>

int main() {
    for (int i = 0; i < 100; ++i) {
        std::cout << "Count: " << i << std::endl;
    return 0;

Path to the built executable can be changed


Close the CLion IDE and try to start it with shortcut “Application\Programming\CLion”. If the error dialog reports about missed path to JDK – this need to be fixed with workaround

sudo nano /opt/clion/bin/

Add following line to the script



Hit Ctrl+X, then “Y” and Enter to save the file. Try to start CLion with application shortcut or under sudo permissions

sudo /opt/clion/bin/

The reason for running CLion  with sudo permissions – some of Raspberry Pi resources require such permits when they are operated with applications.







Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.