Comments (8)
@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.
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.
@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.
Yes this is the absolute path to CmakeLists.
Can I provide any Information for debugging?
from arduino-cmake-ng.
Did you install the project and all of its dependencies just as listed in the installation notes?
from arduino-cmake-ng.
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.
@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.
Closing due to inactivity. Feel free to reopen if needed.
from arduino-cmake-ng.
Related Issues (20)
- Project is dead HOT 1
- upload_arduino_target does not work (avrdude problem?) HOT 4
- Problem when with determining link language. HOT 3
- Include library header from another library HOT 9
- Undefined reference error when linking 3rd party libraries. HOT 4
- Refactor upload API
- Undefined reference to countPulseASM when using pulseIn function HOT 8
- Newbie: need some hand holding. HOT 2
- RegisterHardwarePlatform doesn't work HOT 3
- Install for library depending on platform HOT 6
- FastLED library linker errors HOT 1
- vidor 4000 HOT 1
- SDK not found on Debian 9 with official Arduino binary HOT 2
- Provide means to override `avrdude`
- find_arduino_library simply doesn't work HOT 6
- ARDUINO_SDK_PATH variable is forgotten during compiler check (v0.6.1) HOT 2
- Support for Third-Party Boards - Game plan HOT 4
- Reduce search-paths for version.txt file
- Board 'nano33ble' not working, unrecorgnized command -mcpu=cortex-m4 HOT 1
- SD card library is not being found. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-cmake-ng.