You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
I am trying to compile a slightly modified version of StandardFirmata arduino example sketch for arduino uno
Here is my CMakeLists.txt:
# Define CMake's minimum version (must-do) and the project's name and supported languages
cmake_minimum_required(VERSION 3.8.2)
project(Firmata)
# Call a framework utility function, passing it information about the hardware board that will be used - This function returns a structure known only to the framework
get_board_id(board_id uno atmega328p)
find_arduino_library(servo_lib Servo ${board_id})
find_arduino_library(firmata_lib Firmata ${board_id})
# Create an executable suitable for Arduino using CMake-style target-creation
add_arduino_executable(Firmata ${board_id} Firmata.cpp)
# Upload the created target through a connected Serial Port (Where your board is connected to)
upload_arduino_target(Firmata "${board_id}" /dev/ttyACM0)
#You should then call CMake (either through cmd, cmake-gui or an IDE if it supports that), passing it the argument -DCMAKE_TOOLCHAIN_FILE=[project_path]/cmake/Arduino-Toolcha
# Now link libraries
link_arduino_library(Firmata servo_lib ${board_id})
link_arduino_library(Firmata firmata_lib ${board_id})
The error is the following:
CMake Error at /home/user/projects/Arduinotest/Platform/Targets/ArduinoCMakeLibraryTarget.cmake:63 (get_target_property):
get_target_property() called with non-existent target "uno_core_lib".