Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Devel] [M5StickC] Build fails with the new CLI using Shellminator #281

Open
hpsaturn opened this issue Sep 20, 2024 · 0 comments
Open

[Devel] [M5StickC] Build fails with the new CLI using Shellminator #281

hpsaturn opened this issue Sep 20, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hpsaturn
Copy link
Member

Overview

The current flavor for M5StickCPlus and its fork library has conflicts with Shellminator.

Debug output

Compiling .pio/build/M5STICKCPLUS/libacd/ESP32 Wifi CLI@src-9f92fcbb5a52cbe58fa2cff7634fd464/ESP32WifiCLI.cpp.o
In file included from .pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/M5Display.h:7,
                 from .pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/M5StickCPlus.h:76,
                 from lib/gui-utils-tft/src/TFTUtils.hpp:6,
                 from lib/guilib/src/GUILib.hpp:9,
                 from src/main.cpp:13:
.pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/utility/In_eSPI.h:601:21: error: expected identifier before numeric constant
 #define BLACK       0x0000 /*   0,   0,   0 */
                     ^~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:118:5: note: in expansion of macro 'BLACK'
     BLACK = 30,
     ^~~~~
.pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/utility/In_eSPI.h:601:21: error: expected '}' before numeric constant
 #define BLACK       0x0000 /*   0,   0,   0 */
                     ^~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:118:5: note: in expansion of macro 'BLACK'
     BLACK = 30,
     ^~~~~
In file included from .pio/libdeps/M5STICKCPLUS/ESP32 Wifi CLI@src-9f92fcbb5a52cbe58fa2cff7634fd464/src/ESP32WifiCLI.hpp:8,
                 from lib/wifi/wifi.hpp:3,
                 from src/main.cpp:17:
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:117:8: note: to match this '{'
   enum {
        ^
In file included from .pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/M5Display.h:7,
                 from .pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/M5StickCPlus.h:76,
                 from lib/gui-utils-tft/src/TFTUtils.hpp:6,
                 from lib/guilib/src/GUILib.hpp:9,
                 from src/main.cpp:13:
.pio/libdeps/M5STICKCPLUS/M5StickCPlus/src/utility/In_eSPI.h:601:21: error: expected unqualified-id before numeric constant
 #define BLACK       0x0000 /*   0,   0,   0 */
                     ^~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:118:5: note: in expansion of macro 'BLACK'
     BLACK = 30,
     ^~~~~
In file included from .pio/libdeps/M5STICKCPLUS/ESP32 Wifi CLI@src-9f92fcbb5a52cbe58fa2cff7634fd464/src/ESP32WifiCLI.hpp:8,
                 from lib/wifi/wifi.hpp:3,
                 from src/main.cpp:17:
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:148:26: error: expected ')' before '*' token
  Shellminator( WiFiServer *server_p );
              ~           ^~
                          )
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:150:26: error: expected ')' before '*' token
  Shellminator( WiFiServer *server_p, void( *execution_fn_p )( char* ) );
              ~           ^~
                          )
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:176:23: error: expected ')' before '*' token
   Shellminator( Stream *stream_p );
               ~       ^~
                       )
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:177:22: error: expected ')' before '*' token
  Shellminator( Stream *stream_p, void( *execution_fn_p )( char* ) );
              ~       ^~
                      )
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:549:1: error: expected unqualified-id before 'private'
 private:
 ^~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:662:23: error: uninitialized const 'TELNET_IAC_DONT_LINEMODE' [-fpermissive]
  static const uint8_t TELNET_IAC_DONT_LINEMODE[ 3 ];
                       ^~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:663:23: error: uninitialized const 'TELNET_IAC_WILL_ECHO' [-fpermissive]
  static const uint8_t TELNET_IAC_WILL_ECHO[ 3 ];
                       ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:664:23: error: uninitialized const 'TELNET_IAC_DONT_ECHO' [-fpermissive]
  static const uint8_t TELNET_IAC_DONT_ECHO[ 3 ];
                       ^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:665:23: error: uninitialized const 'TELNET_IAC_WILL_SUPRESS_GO_AHEAD' [-fpermissive]
  static const uint8_t TELNET_IAC_WILL_SUPRESS_GO_AHEAD[ 3 ];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:666:23: error: uninitialized const 'TELNET_IAC_DO_SUPRESS_GO_AHEAD' [-fpermissive]
  static const uint8_t TELNET_IAC_DO_SUPRESS_GO_AHEAD[ 3 ];
                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:670:20: error: uninitialized const 'helpText' [-fpermissive]
  static const char helpText[];
                    ^~~~~~~~
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:670:20: error: storage size of 'helpText' isn't known
.pio/libdeps/M5STICKCPLUS/Shellminator/src/Shellminator.hpp:737:1: error: expected declaration before '}' token
 };
 ^
Compiling .pio/build/M5STICKCPLUS/lib860/WiFiClientSecure/WiFiClientSecure.cpp.o
*** [.pio/build/M5STICKCPLUS/src/main.cpp.o] Error 1
==================================================== [FAILED] Took 7.29 seconds ====================================================

Environment    Status    Duration
-------------  --------  ------------
M5STICKCPLUS   FAILED    00:00:07.292
board: M5StickC Plus
firmware version: devel
@hpsaturn hpsaturn added the bug Something isn't working label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant