michalmonday / RFID-cloner

Handy device for cloning RFID chips/cards.
75 stars 24 forks source link

nor install :( error code : #6

Open BblackmilkK opened 12 months ago

BblackmilkK commented 12 months ago

In file included from D:\rfidCloner_2\PCinterface.h:5, from D:\rfidCloner_2\PCinterface.cpp:1: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]': d:\Cache\libraries\LinkedList/LinkedList.h:185:15: required from 'bool LinkedList::add(int, T) [with T = String]' d:\Cache\libraries\LinkedList/LinkedList.h:176:6: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return 167 | return false; | ^~~~~ In file included from D:\rfidCloner_2\MenuOrganizer.h:14, from D:\rfidCloner_2\GUI.h:20, from D:\rfidCloner_2\Settings.cpp:5: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]': d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]' D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return 167 | return false; | ^~~~~ In file included from D:\rfidCloner_2\MenuOrganizer.h:14, from D:\rfidCloner_2\rfidCloner_2.ino:2: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]': d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]' D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return 167 | return false; | ^~~~~ In file included from D:\rfidCloner_2\MenuOrganizer.h:14, from D:\rfidCloner_2\GUI.h:20, from D:\rfidCloner_2\GUI.cpp:1: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]': d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]' D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return 167 | return false; | ^~~~~ d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]': d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = String]' D:\rfidCloner_2\GUI.cpp:96:29: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return D:\rfidCloner_2\Rfid.cpp: In member function 'bool Rfid::WriteCard()': D:\rfidCloner_2\Rfid.cpp:231:26: error: control reaches end of non-void function [-Werror=return-type] 231 | mfrc522.PCD_StopCrypto1(); // Stop encryption on PCD | ~~~~~~~^~ cc1plus.exe: some warnings being treated as errors D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:146:47: warning: capture of variable 'rfid' with non-automatic storage duration 146 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:178:47: warning: capture of variable 'rfid' with non-automatic storage duration 178 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:194:39: warning: capture of variable 'rfid' with non-automatic storage duration 194 | notification.OnAccept(0, [this, rfid](){rfid.DumpToSerial(); Notify(1, "Success\nCheck serial monitor\n:)", 1000);}); | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\rfidCloner_2\MenuOrganizer.cpp:274:46: warning: capture of variable 'rfid' with non-automatic storage duration 274 | /onAccept/ [this, file_name, rfid, read_source](){ | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.cpp:1: D:\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ In file included from D:\rfidCloner_2\MenuOrganizer.h:14, from D:\rfidCloner_2\MenuOrganizer.cpp:1: d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = MenuOption]': d:\Cache\libraries\LinkedList/LinkedList.h:321:21: required from 'T LinkedList::get(int) [with T = MenuOption]' D:\rfidCloner_2\MenuOrganizer.h:79:95: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return 167 | return false; | ^~~~~ d:\Cache\libraries\LinkedList/LinkedList.h: In instantiation of 'ListNode LinkedList::getNode(int) [with T = String]': d:\Cache\libraries\LinkedList/LinkedList.h:185:15: required from 'bool LinkedList::add(int, T) [with T = String]' d:\Cache\libraries\LinkedList/LinkedList.h:176:6: required from here d:\Cache\libraries\LinkedList/LinkedList.h:167:9: error: cannot convert 'bool' to 'ListNode' in return

michalmonday commented 12 months ago

Hi, it requires LinkedList library to be installed. I'm not sure if any recent version of that library is compatible but I tested it in the past with version 1.2.3 of LinkedList, which is available among other required libraries in here: https://github.com/michalmonday/RFID-cloner/tree/master/rfidCloner%202/src/Working%20copy%20of%20libraries%20(in%20case%20if%20these%20will%20be%20modified%20in%20future)

BblackmilkK commented 12 months ago

Hi, it requires LinkedList library to be installed. I'm not sure if any recent version of that library is compatible but I tested it in the past with version 1.2.3 of LinkedList, which is available among other required libraries in here: https://github.com/michalmonday/RFID-cloner/tree/master/rfidCloner%202/src/Working%20copy%20of%20libraries%20(in%20case%20if%20these%20will%20be%20modified%20in%20future)

yes i did it.

michalmonday commented 12 months ago

Sorry for false information, it seems that 1.2.3 no longer works, updating to LinkedList 1.3.3 (latest as of today) solves these compilation issues.

Just in case, the versions of libraries I have installed with library manager:

BblackmilkK commented 11 months ago

Sorry for false information, it seems that 1.2.3 no longer works, updating to LinkedList 1.3.3 (latest as of today) solves these compilation issues.

Just in case, the versions of libraries I have installed with library manager:

* LinkedList 1.3.3

* MFRC522 1.4.10

* ESP8266 and ESP32 OLED driver for SSD1306 displays 4.3.0

i did it :) but same error : resim resim

BblackmilkK commented 11 months ago

error :

D:\Cache\ESPArdunio\rfidCloner_2\PCinterface.cpp: In member function 'LinkedList PCinterface::GetFileList()': D:\Cache\ESPArdunio\rfidCloner_2\PCinterface.cpp:13:1: error: no return statement in function returning non-void [-Werror=return-type] 13 | } | ^ cc1plus.exe: some warnings being treated as errors "C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\tools\xtensa-lx106-elf-gcc\3.1.0-gcc10.3-e5f9fec/bin/xtensa-lx106-elf-g++" -Dets -DICACHE_FLASH -U__STRICT_ANSI__ -D_GNU_SOURCE -DESP8266 "@C:\Users\BblackmilkK\AppData\Local\Temp\arduino\sketches\BDEEC6620177E8B96309B172A5F34648/core/build.opt" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/sdk/include" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/sdk/lwip2/include" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/sdk/libc/xtensa-lx106-elf/include" "-IC:\Users\BblackmilkK\AppData\Local\Temp\arduino\sketches\BDEEC6620177E8B96309B172A5F34648/core" -c "@C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2/tools/warnings/none-cppflags" -Os -g -free -fipa-pta -Werror=return-type -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=gnu++17 -MMD -ffunction-sections -fdata-sections -fno-exceptions -DMMU_IRAM_SIZE=0x8000 -DMMU_ICACHE_SIZE=0x8000 -DNONOSDK22x_190703=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=536 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10607 -DARDUINO_ESP8266_NODEMCU_ESP12E -DARDUINO_ARCH_ESP8266 "-DARDUINO_BOARD=\"ESP8266_NODEMCU_ESP12E\"" "-DARDUINO_BOARD_ID=\"nodemcuv2\"" -DLED_BUILTIN=2 -DFLASHMODE_DIO "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\variants\nodemcu" "-Id:\Cache\libraries\LinkedList" "-Id:\Cache\libraries\MFRC522\src" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\SPI" "-IC:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\Wire" "-Id:\Cache\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays\src" "C:\Users\BblackmilkK\AppData\Local\Temp\arduino\sketches\BDEEC6620177E8B96309B172A5F34648\sketch\global_includes.cpp" -o "C:\Users\BblackmilkK\AppData\Local\Temp\arduino\sketches\BDEEC6620177E8B96309B172A5F34648\sketch\global_includes.cpp.o" D:\Cache\ESPArdunio\rfidCloner_2\Rfid.cpp: In member function 'bool Rfid::WriteCard()': D:\Cache\ESPArdunio\rfidCloner_2\Rfid.cpp:231:26: error: control reaches end of non-void function [-Werror=return-type] 231 | mfrc522.PCD_StopCrypto1(); // Stop encryption on PCD | ~~~~~~~^~ cc1plus.exe: some warnings being treated as errors In file included from D:\Cache\ESPArdunio\rfidCloner_2\Settings.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type] 17 | bool Set(String key, int val){Set(key, String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type] 18 | bool Set(int key, int val){Set(String(key), String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type] 19 | bool Set(int key, String val){Set(String(key), val);} | ^ cc1plus.exe: some warnings being treated as errors In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:33, from D:\Cache\ESPArdunio\rfidCloner_2\GUI.h:20, from D:\Cache\ESPArdunio\rfidCloner_2\GUI.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type] 17 | bool Set(String key, int val){Set(key, String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type] 18 | bool Set(int key, int val){Set(String(key), String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type] 19 | bool Set(int key, String val){Set(String(key), val);} | ^ cc1plus.exe: some warnings being treated as errors In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:33, from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(String, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:17:55: error: no return statement in function returning non-void [-Werror=return-type] 17 | bool Set(String key, int val){Set(key, String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, int)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:18:60: error: no return statement in function returning non-void [-Werror=return-type] 18 | bool Set(int key, int val){Set(String(key), String(val));} | ^ D:\Cache\ESPArdunio\rfidCloner_2\Settings.h: In member function 'bool Settings::Set(int, String)': D:\Cache\ESPArdunio\rfidCloner_2\Settings.h:19:55: error: no return statement in function returning non-void [-Werror=return-type] 19 | bool Set(int key, String val){Set(String(key), val);} | ^ D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:146:47: warning: capture of variable 'rfid' with non-automatic storage duration 146 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:178:47: warning: capture of variable 'rfid' with non-automatic storage duration 178 | notification.SetConditionalFunction(0, [rfid](){ return rfid.WasCardPresented(); }); | ^~~~ In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:194:39: warning: capture of variable 'rfid' with non-automatic storage duration 194 | notification.OnAccept(0, [this, rfid](){rfid.DumpToSerial(); Notify(1, "Success\nCheck serial monitor\n:)", 1000);}); | ^~~~ In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp: In lambda function: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:274:46: warning: capture of variable 'rfid' with non-automatic storage duration 274 | /onAccept/ [this, file_name, rfid, read_source](){ | ^~~~ In file included from D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.cpp:1: D:\Cache\ESPArdunio\rfidCloner_2\MenuOrganizer.h:19:13: note: 'Rfid rfid' declared here 19 | extern Rfid rfid; | ^~~~ cc1plus.exe: some warnings being treated as errors

Using library LinkedList at version 1.3.3 in folder: D:\Cache\libraries\LinkedList Using library MFRC522 at version 1.4.10 in folder: D:\Cache\libraries\MFRC522 Using library SPI at version 1.0 in folder: C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\SPI Using library Wire at version 1.0 in folder: C:\Users\BblackmilkK\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\Wire Using library ESP8266 and ESP32 OLED driver for SSD1306 displays at version 4.3.0 in folder: D:\Cache\libraries\ESP8266_and_ESP32_OLED_driver_for_SSD1306_displays exit status 1

Compilation error: no return statement in function returning non-void [-Werror=return-type]

BblackmilkK commented 11 months ago

code is broken can you help me ?

BblackmilkK commented 10 months ago

not working.