AH2005NA / m5stick-shark

GNU General Public License v3.0
35 stars 3 forks source link

Build error for Cardputer #1

Closed Seruschl closed 1 month ago

Seruschl commented 3 months ago

Hi and thanks for this great project. I've tested it already on my Stick-Cplus with the M5burner tool and i wanted to test it on my cardputer as well.

Since it isn't available via the m5burner tool for the cardputer i thought that i will compile it manually to get the .bin so that i can put it on the cardputer and hopefully startlike the other programs via the launcher.

Unfortunately the compile process ends with the mentioned errors and as an completly noob with programming i don't really know how to fix it. Maybe you can give me a hint.

In file included from D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark\m5stick-shark.ino:271:
D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark\Display.h: In function 'void drawmenu(MENU*, int)':
D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark\Display.h:44:6: note: candidate 1: 'void printf(char*, char*)'
 void printf(char *arg, char* Text)
      ^~~~~~
In file included from C:\Users\Seruschl\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.1.1\cores\esp32/Arduino.h:27,
                 from C:\Users\Seruschl\AppData\Local\Temp\arduino\sketches\EB014D63604249CE4F8B7CFBB49F4A6E\sketch\m5stick-shark.ino.cpp:1:
c:\users\seruschl\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\sys-include\stdio.h:200:5: note: candidate 2: 'int printf(const char*, ...)'
 int printf (const char *__restrict, ...)
     ^~~~~~
In file included from D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark\m5stick-shark.ino:271:
D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark\Display.h:44:6: note: candidate 1: 'void printf(char*, char*)'
 void printf(char *arg, char* Text)
      ^~~~~~
In file included from C:\Users\Seruschl\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.1.1\cores\esp32/Arduino.h:27,
                 from C:\Users\Seruschl\AppData\Local\Temp\arduino\sketches\EB014D63604249CE4F8B7CFBB49F4A6E\sketch\m5stick-shark.ino.cpp:1:
c:\users\seruschl\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32s3-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32s3-elf\sys-include\stdio.h:200:5: note: candidate 2: 'int printf(const char*, ...)'
 int printf (const char *__restrict, ...)
     ^~~~~~
c:/users/seruschl/appdata/local/arduino15/packages/m5stack/tools/xtensa-esp32s3-elf-gcc/esp-2021r2-patch5-8.4.0/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld.exe: C:\Users\Seruschl\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.1.1/tools/sdk/esp32s3/lib\libnet80211.a(ieee80211_output.o): in function `ieee80211_raw_frame_sanity_check':
(.text.ieee80211_raw_frame_sanity_check+0x5c): multiple definition of `ieee80211_raw_frame_sanity_check'; sketch\m5stick-shark.ino.cpp.o:D:\Downloads\m5stick-shark-main\m5stick-shark-main\m5stick-shark/deauth.h:19: first defined here
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "SD.h"
  Used: C:\Users\Seruschl\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.1.1\libraries\SD
  Not used: C:\Users\Seruschl\AppData\Local\Arduino15\libraries\SD
exit status 1

Compilation error: exit status 1
AH2005NA commented 3 months ago

go into the deauth_prerequisites folder and read the readme file you must change something. (there is a batch file to make all these changes automatically, you just need to download the "install-prerequisites.bat" file and run.)