This repository was archived by the owner on May 4, 2019. It is now read-only.
This repository was archived by the owner on May 4, 2019. It is now read-only.
Board info not found #77
Open
Description
OS: Linux
Arduino SDK: 1.8.5-2017.01.09
How to reproduce
git clone https://github.com/arduino-cmake/arduino-cmake.git
mkdir arduino-cmake/build
cd arduino-cmake/build/
cmake ..
CMake output:
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/avr-gcc
-- Arduino SDK version 1.8.5-2017.01.09: /usr/share/arduino
-- 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 wire_example
CMake Error at cmake/Platform/Core/BoardPropertiesReader.cmake:59 (message):
Board info not found: BoardName='uno' BoardCPU='' PropertyName='build.core'
Call Stack (most recent call first):
cmake/Platform/Core/Libraries/CoreLibraryFactory.cmake:16 (_get_board_property)
cmake/Platform/Generation/ArduinoLibraryExampleGenerator.cmake:34 (make_core_library)
example/CMakeLists.txt:11 (GENERATE_ARDUINO_LIBRARY_EXAMPLE)
-- Configuring incomplete, errors occurred!
See also "/home/nicolas/10 Sorteren/tmp/arduino-cmake/build/CMakeFiles/CMakeOutput.log".
What I tried
Before yesterday, I had never seen an Arduino or heard of CMake. I have no idea what I'm doing.
Looking through CMakeCache.txt, I noticed:
ARDUINO_BOARDS_PATH:FILEPATH=ARDUINO_BOARDS_PATH-NOTFOUND
ARDUINO_BOOTLOADERS_PATH:FILEPATH=ARDUINO_BOOTLOADERS_PATH-NOTFOUND
ARDUINO_CORES_PATH:FILEPATH=ARDUINO_CORES_PATH-NOTFOUND
ARDUINO_LIBRARIES_PATH:FILEPATH=ARDUINO_LIBRARIES_PATH-NOTFOUND
ARDUINO_PLATFORM_HEADER_FILE_PATH:FILEPATH=ARDUINO_PLATFORM_HEADER_FILE_PATH-NOTFOUND
ARDUINO_PLATFORM_LIBRARIES_PATH:FILEPATH=ARDUINO_PLATFORM_LIBRARIES_PATH-NOTFOUND
ARDUINO_PROGRAMMERS_PATH:FILEPATH=ARDUINO_PROGRAMMERS_PATH-NOTFOUND
ARDUINO_VARIANTS_PATH:FILEPATH=ARDUINO_VARIANTS_PATH-NOTFOUND
Which led me to:
$ ls /usr/share/arduino/hardware/
archlinux-arduino platform.keys.rewrite.txt platform.txt
archlinux-arduino is similar to the default Arduino platform in structure and contents:
$ tree -L 1 /usr/share/arduino/hardware/archlinux-arduino/avr/
/usr/share/arduino/hardware/archlinux-arduino/avr/
├── boards.txt
├── bootloaders
├── cores
├── firmwares
├── libraries
├── platform.txt
├── programmers.txt
└── variants
Just to be clear, I only have the archlinux-arduino platform installed.
I tried symlinking arduino to archlinux-arduino and adding:
set(PLATFORM_PATH ${ARDUINO_SDK_PATH}/hardware/archlinux-arduino/)
to CMakeLists.txt before including the toolchain file. Both had no effect.
I saw no way to ask for help other than to make a new issue. Thank you in advance.
Metadata
Metadata
Assignees
Labels
No labels