5

I am trying to setup CLion as my workspace for my arduino. I have installed the two Arduino plugins for CLion, generated a new sketch project, but I am getting cmake errors on opening the project.

CMake Error at /cygdrive/c/Users/user/project/cmake/ArduinoToolchain.cmake:86 (message):
 Could not find Arduino SDK (set ARDUINO_SDK_PATH)!
Call Stack (most recent call first):
 /cygdrive/c/Users/user/project/CMakeFiles/3.9.4/CMakeSystem.cmake:6 (include)
 /cygdrive/c/Users/user/project/CMakeFiles/CMakeTmp/CMakeLists.txt:3 (project)

The issue is similar to this logged issue here: https://github.com/francoiscampbell/CLionArduinoPlugin/issues/11

As a Windows 10 user, I have the Arduino SDK installed here: C:\Program Files (x86)\Arduino

What's interesting is that the cmake file is calling the UNIX commands when it's running in this if statement:

 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\\libraries"
 )
 endif()
asked Dec 22, 2017 at 21:50
3
  • I have the same error, even if I set it manually: set(ARDUINO_SDK_PATH C:\\Program Files\\Arduino) I checked my path, but nothing wrong in the arduino path, I'm using Cygwin if it can help... Commented Jun 14, 2019 at 15:26
  • 1
    Me too. Did you ever figure this out? Commented Jun 25, 2021 at 17:01
  • 1
    unfortunately no :( Commented Jun 28, 2021 at 18:42

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.