francoiscampbell / CLionArduinoPlugin

A plugin for CLion that enables arduino-cmake integration.
155 stars 41 forks source link

Error:Could not find Arduino SDK (set ARDUINO_SDK_PATH)! - Ubuntu 16.04 #19

Open schirrel opened 8 years ago

schirrel commented 8 years ago

I just installed and am trying to use it but gives the error above. I've look at #11 when @dmitry-cherkas says:

if(UNIX) file(GLOB SDK_PATH_HINTS /usr/share/arduino /opt/local/arduino /opt/arduino /usr/local/share/arduino) elseif(WIN32) set(SDK_PATH_HINTS "C:\Program Files\Arduino" "C:\Program Files (x86)\Arduino" ) endif() Which also is in the ArduinoToolchain.cmake, so to make sure o copy my arduino instalation folder (in my case arduino-1.6.8) and it keeps giving me the same error. Question:

  • I the arduino folder, that i download with the official arduino ide that i consider as the sdk path?
  • If no, what is the real sdk path? Thanks
schirrel commented 8 years ago

For strange reason, the plugin, at least with me, didn't accept this instalation. Besides, i have instaled arduino core via sudo apt-get install arduino arduino-core cmake qt4-qmake And now it workin. So Ubuntu/Debian Based tip: intal via apt-get