Giter VIP home page Giter VIP logo

Comments (8)

MrPointer avatar MrPointer commented on May 25, 2024

@jenswet Hello there, I'm sorry for being late and answering only now, I'm currently on an extremely busy schedule.
It's a strange issue you got there since I'm developing in CLion myself, as well as many others involved in this project and it works just fine for us.

I'd start with replacing the set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/Arduino-Toolchain.cmake) line with a command-line variable (which you can set in Settings->CMake).
I know you already tried that, but my guess is that something wasn't configured right:
It's probably worth mentioning that you should pass an absolute path to the command variable, otherwise it won't work!
At last, remember to reset cache after the change and not just reload it!

Please let me know if that solved your problem, and attach the output if it's not.

from arduino-cmake-ng.

jenswet avatar jenswet commented on May 25, 2024

Hello @MrPointer,
thanks for your answer.

Unfortunately I still can't get it to work:

/Applications/CLion.app/Contents/bin/cmake/mac/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=/Users/jens/Downloads/Arduino/cmake/Arduino-Toolchain.cmake -G "CodeBlocks - Unix Makefiles" /Users/jens/Downloads/Arduino
CMake Error at cmake/Arduino-Toolchain.cmake:1 (include):
  include could not find load file:

    Platform/Other/ArduinoSDKSeeker.cmake
Call Stack (most recent call first):
  /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:94 (include)
  CMakeLists.txt:3 (project)


CMake Error at cmake/Arduino-Toolchain.cmake:66 (find_arduino_sdk):
  Unknown CMake command "find_arduino_sdk".
Call Stack (most recent call first):
  /Applications/CLion.app/Contents/bin/cmake/mac/share/cmake-3.12/Modules/CMakeDetermineSystem.cmake:94 (include)
  CMakeLists.txt:3 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

[Finished]

My new CMakeLists.txt:

cmake_minimum_required(VERSION 3.8.2)
project(Arduino)

get_board_id(board_id mega atmega2560)
add_arduino_executable(${PROJECT_NAME} ${board_id} main.c)
upload_arduino_target(${PROJECT_NAME} "${board_id}" COM3)

Obviously it still doesn't like my installation.

Which operating system are you using? I'm on macOs 10.13.6.

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

@jenswet May I ask if this path /Users/jens/Downloads/Arduino is the path to your CMakeLists.txt file?

As to your question - I'm using Windows 10 but it doesn't really matter as it seems it doesn't work for you at all, not even when using the command-line, which is really strange since we've got this covered in our CI builds - We build for OS X, Linux and Windows.

from arduino-cmake-ng.

jenswet avatar jenswet commented on May 25, 2024

Yes this is the absolute path to CmakeLists.
Can I provide any Information for debugging?

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

Did you install the project and all of its dependencies just as listed in the installation notes?

from arduino-cmake-ng.

jenswet avatar jenswet commented on May 25, 2024

I used the CLion CMake bundled before.
Now I installed CMake as additional dependency and configured it as Toolchain but it does not change the situation.
Arduino IDE is installed as usual.

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

@jenswet I know I'm extremely late, but is it still relevant?

If so, could you please attach the output of your project's directory listing? I mean to execute ls -lR from the terminal.

from arduino-cmake-ng.

MrPointer avatar MrPointer commented on May 25, 2024

Closing due to inactivity. Feel free to reopen if needed.

from arduino-cmake-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.