fiduciary

Author Topic: ProffieOS Compilation error: #include nested too deeply *Resolved*  (Read 290 times)

0 Members and 1 Guest are viewing this topic.

Offline Plissken

  • No Force
  • *
  • Posts: 3
  • Um...Hello?
Hi,

First time building a Proffie saber and I am getting an error code

C:\Users\Decker\Desktop\ProffieOS\config\mytest_config.h:2:27: error: #include nested too deeply
    2 | #include "mytest_config.h"
      |                           ^
In file included from C:\Users\Decker\Desktop\ProffieOS\blades\ws2811_blade.h:38,
                 from C:\Users\Decker\Desktop\ProffieOS\ProffieOS.ino:525:
C:\Users\Decker\Desktop\ProffieOS\blades\monopodws.h:41:2: error: #error "Teensyduino version 1.21 or later is required to compile this library."
   41 | #error "Teensyduino version 1.21 or later is required to compile this library."
      |  ^~~~~

exit status 1

Compilation error: #include nested too deeply

Config file is located in the ProffieOS Folder all with matching spelling

Any help or assistance with is error would be greatly appreciated.

Config file pasted below:

#ifdef CONFIG_TOP
#include "proffieboard_v2_config.h"
#define NUM_BLADES 2
#define NUM_BUTTONS 2
#define VOLUME 1900
const unsigned int maxLedsPerStrip = 144;
#define CLASH_THRESHOLD_G 3.0
#define ENABLE_AUDIO
#define ENABLE_MOTION
#define ENABLE_WS2811
#define ENABLE_SD
#define ENABLE_SSD1306
#endif
 
#ifdef CONFIG_PRESETS
Preset presets[] = {
   { "TeensySF", "tracks/venus.wav",
    StyleNormalPtr<CYAN, WHITE, 300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "cyan"},
 
   { "SmthJedi", "tracks/mars.wav",
    StylePtr<InOutSparkTip<EASYBLADE(BLUE, WHITE), 300, 800> >(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "blue"},
 
   { "SmthGrey", "tracks/mercury.wav",
    StyleFirePtr<RED, YELLOW, 0>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "fire"},
 
   { "SmthFuzz", "tracks/uranus.wav",
    StyleNormalPtr<RED, WHITE, 300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "red"},
 
   { "RgueCmdr", "tracks/venus.wav",
    StyleFirePtr<BLUE, CYAN, 0>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "blue fire"},
 
   { "TthCrstl", "tracks/mars.wav",
    StylePtr<InOutHelper<EASYBLADE(OnSpark<GREEN>, WHITE), 300, 800> >(),
 
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "green"},
   { "TeensySF", "tracks/mercury.wav",
 
    StyleNormalPtr<WHITE, RED, 300, 800, RED>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "white"},
 
   { "SmthJedi", "tracks/uranus.wav",
    StyleNormalPtr<AudioFlicker<YELLOW, WHITE>, BLUE, 300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "yellow"},
 
   { "SmthGrey", "tracks/venus.wav",
    StylePtr<InOutSparkTip<EASYBLADE(MAGENTA, WHITE), 300, 800> >(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "magenta"},
 
   { "SmthFuzz", "tracks/mars.wav",
    StyleNormalPtr<Gradient<RED, BLUE>, Gradient<CYAN, YELLOW>, 300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "gradient"},
 
   { "RgueCmdr", "tracks/mercury.wav",
    StyleRainbowPtr<300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "rainbow"},
 
   { "TthCrstl", "tracks/uranus.wav",
    StyleStrobePtr<WHITE, Rainbow, 15, 300, 800>(),
    StyleNormalPtr<WHITE, WHITE, 300, 800>(), "strobe"},
 
   { "TeensySF", "tracks/venus.wav",
    &style_pov,
    StyleNormalPtr<BLACK, BLACK, 300, 800>(), "POV"},
 
   { "SmthJedi", "tracks/mars.wav",
    &style_charging,
    StyleNormalPtr<BLACK, BLACK, 300, 800>(), "Battery\nLevel"},
};
 
BladeConfig blades[] = {
 { 0, WS281XBladePtr<176, bladePin, Color8::GRB, PowerPINS<bladePowerPin2, bladePowerPin3> >(),
    SimpleBladePtr<CreeXPE2WhiteTemplate<550>, NoLED, NoLED, NoLED, bladePowerPin6, -1, -1, -1>()
  , CONFIGARRAY(presets) },
};
#endif
 
#ifdef CONFIG_BUTTONS
Button PowerButton(BUTTON_POWER, powerButtonPin, "pow");
Button AuxButton(BUTTON_AUX, auxPin, "aux");
#endif


« Last Edit: March 01, 2023, 09:50:41 PM by Plissken »

Offline profezzorn

  • Mining Colony Members
  • Master Force User
  • *
  • Posts: 901
  • May the source be with you.
    • Hubbe's Corner
Re: ProffieOS Compilation error: #include nested too deeply *Resolved*
« Reply #1 on: February 28, 2023, 10:59:21 PM »
*jedi wave* this is not the file you are looking for

The error you listed is in a file called "mytest_config.h", and that file seems to have this line in it:

    #include "mytest_config.h"

That makes it includes itself, which doesn't work.
However, the config file you pasted is a different one, because it doesn't contain this line. The include line in the file you pasted looks fine.

Go ProffieOS.ino to see if CONFIG_FILE is pointing to the right file.

Offline Plissken

  • No Force
  • *
  • Posts: 3
  • Um...Hello?
Re: ProffieOS Compilation error: #include nested too deeply *Resolved*
« Reply #2 on: February 28, 2023, 11:06:14 PM »
*Hello There*

Sorry I was trying another config file to see if I would get the same result, with the proffieboard_v2_config.h I get the same error message.

C:\Users\Decker\Desktop\ProffieOS\config\proffieboard_v2_config.h:2:36: error: #include nested too deeply
    2 | #include "proffieboard_v2_config.h"
      |                                    ^
In file included from C:\Users\Decker\Desktop\ProffieOS\blades\ws2811_blade.h:38,
                 from C:\Users\Decker\Desktop\ProffieOS\ProffieOS.ino:525:
C:\Users\Decker\Desktop\ProffieOS\blades\monopodws.h:41:2: error: #error "Teensyduino version 1.21 or later is required to compile this library."
   41 | #error "Teensyduino version 1.21 or later is required to compile this library."
      |  ^~~~~

exit status 1

Compilation error: #include nested too deeply


Offline Plissken

  • No Force
  • *
  • Posts: 3
  • Um...Hello?
Re: ProffieOS Compilation error: #include nested too deeply *Resolved*
« Reply #3 on: March 01, 2023, 09:50:04 PM »
Issue resolved, downloaded an older version of Arduino and config file verified.

 

retrousse