Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

On Linux, if the PATH includes $ARDUINO_SDK_PATH, examples fail to make #58

@glowmouse

Description

@glowmouse

On Linux, if the PATH includes $ARDUINO_SDK_PATH, examples fail to make

To reproduce:

  1. Add $ARDUINO_SDK_PATH to the linux PATH. This is something you might do if you still want to run the default arduino sdk.
  2. from $ARUINDO_SDK_PATH/build, run cmake -D CMAKE_TOOLCHAIN_FILE="../cmake/Arduino-Toolchain.cmake" ../examples
  3. run make

The error I see is

[ 35%] Building CXX object arduino-library/CMakeFiles/Ethernet.dir/home/andrew/software/arduino-sdk/arduino-1.8.7/libraries/Ethernet/src/Dhcp.cpp.obj
In file included from /home/andrew/software/arduino-sdk/arduino-1.8.7/libraries/Ethernet/src/Dhcp.cpp:7:0:
/home/andrew/software/arduino-sdk/arduino-1.8.7/libraries/Ethernet/src/utility/w5100.h:18:17: fatal error: SPI.h: No such file or directory

I have a fix that I'll pull request. Disclaimer - I'm new to CMAKE and Ardunino-CMake. I don't know if my fix is the best way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential bug in code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions