lpaolini / Striptease

Sexy, audio-responsive effects on LED strips.
GNU General Public License v3.0
43 stars 4 forks source link

Error compiling example 2 #2

Closed bjornbergenheim closed 3 years ago

bjornbergenheim commented 3 years ago

I see I'm missing some dependencies, but not too sure how and what to add.

> Executing task in folder example2: C:\Users\myusername\.platformio\penv\Scripts\pio.exe run --environment teensy40 <

Processing teensy40 (platform: teensy; board: teensy40; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/teensy/teensy40.html
PLATFORM: Teensy (4.12.0) > Teensy 4.0
HARDWARE: IMXRT1062 600MHz, 512KB RAM, 1.94MB Flash
DEBUG: Current (jlink) External (jlink)
PACKAGES:
 - framework-arduinoteensy 1.153.0 (1.53)
 - toolchain-gccarmnoneeabi 1.50401.190816 (5.4.1)
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 90 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <Striptease> 1.0.0+sha.5b5864b
|   |-- <FastLED> 3.3.3
Building in release mode
Compiling .pio\build\teensy40\libd06\FastLED\FastLED.cpp.o
Compiling .pio\build\teensy40\libd06\FastLED\bitswap.cpp.o
Compiling .pio\build\teensy40\libd06\FastLED\colorpalettes.cpp.o
Compiling .pio\build\teensy40\libd06\FastLED\colorutils.cpp.o   
Compiling .pio\build\teensy40\libd06\FastLED\hsv2rgb.cpp.o
Compiling .pio\build\teensy40\libd06\FastLED\lib8tion.cpp.o
Compiling .pio\build\teensy40\libd06\FastLED\noise.cpp.o   
Compiling .pio\build\teensy40\libd06\FastLED\platforms.cpp.o
In file included from C:\users\myusername\.platformio\packages\framework-arduinoteensy\libraries\FastLED\platforms/arm/mxrt1062/fastled_arm_mxrt1062.h:5:0,
                 from C:\users\myusername\.platformio\packages\framework-arduinoteensy\libraries\FastLED\platforms.h:23,
                 from C:\users\myusername\.platformio\packages\framework-arduinoteensy\libraries\FastLED\FastLED.h:52,
                 from C:\users\myusername\.platformio\packages\framework-arduinoteensy\libraries\FastLED\bitswap.cpp:2:
C:\users\myusername\.platformio\packages\framework-arduinoteensy\libraries\FastLED\platforms/arm/mxrt1062/fastspi_arm_mxrt1062.h:7:17: fatal error: SPI.h: No such file or directory

*************************************************************
* Looking for SPI.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:SPI.h"
* Web  > https://platformio.org/lib/search?query=header:SPI.h
*
*************************************************************
bjornbergenheim commented 3 years ago

To get this to work, I had to add lib_ldf_mode = deep in the platformio.ini for the project (example2 folder).

lpaolini commented 3 years ago

Weird, I've tried on my Mac (VS Code + PlatformIO) and it compiles correctly. However, I notice you are on v.1.0.0, which is not the latest and depends on FastLED 3.3.3, which is not the latest release either. Please pull, clean and retry.

bjornbergenheim commented 3 years ago

Ah, I think why it looks like I'm on 1.0.0. In the platformio.ini the dependency is for

lib_deps = 
    https://github.com/lpaolini/Striptease

and that gives me 1.0.0. Im sorry if these are more platform-io related questions, but how would I go about to change that to the actual files that I have downloaded through github?

bjornbergenheim commented 3 years ago

Actually, it might just be that the file https://github.com/lpaolini/Striptease/blob/main/library.json still says 1.0.0 . It does say "^3.4.0" though, and so does the file platformio downloaded for me, so I actually think I'm getting the latest version.

lpaolini commented 3 years ago

You're right, library.json doesn't reflect the correct version. I'll fix it.

About your problem, I'm sorry but I have no experience with PlatformIO on Windows. Are you running latest PlatformIO and libraries?

I'm asking this also because I've noticed from your first message it's compiling FastLED 3.3.3, and that's unexpected as it should use 3.4.0.

    Dependency Graph
    |-- <Striptease> 1.0.0+sha.5b5864b
    |   |-- <FastLED> 3.3.3