Skip to content

Arduino SDK v1.8.1 cmake error #177

@jnbrq

Description

@jnbrq

I am trying to build provided CMakeLists file. I have an error concerning Wire example doesn't exist. That's fine. But I have a more serious problem (after commenting out wire example target):

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Arduino SDK version 1.8.1: /home/janberq/arduino-sdk
-- Check for working C compiler: /usr/bin/avr-gcc
-- Check for working C compiler: /usr/bin/avr-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/avr-g++
-- Check for working CXX compiler: /usr/bin/avr-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- 
-- Generating blink_original
CMake Error at cmake/Platform/Arduino.cmake:830 (message):
  Invalid Arduino board ID (uno), aborting.
Call Stack (most recent call first):
  cmake/Platform/Arduino.cmake:1071 (get_arduino_flags)
  cmake/Platform/Arduino.cmake:516 (setup_arduino_target)
  example/CMakeLists.txt:35 (generate_arduino_firmware)


-- Configuring incomplete, errors occurred!
See also "/home/janberq/src/arduino-cmake/build/CMakeFiles/CMakeOutput.log".

My host system is Ubuntu 17.04 x64. I used following command to compile:

cmake .. -DARDUINO_SDK_PATH="/home/janberq/arduino-sdk"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions