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

not compile on arduino ide #60

Closed
ghost opened this issue Oct 28, 2020 · 20 comments
Closed

not compile on arduino ide #60

ghost opened this issue Oct 28, 2020 · 20 comments

Comments

@ghost
Copy link

ghost commented Oct 28, 2020

Arduino:1.8.13 (Windows 10), Scheda:"ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

Più di una libreria trovata per "SD.h"

In file included from c:\users\rferr\documents\arduino\libraries\lvgl\src/lv_misc/lv_log.h:16:0,

Usata: C:\Users\rferr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SD

             from c:\users\rferr\documents\arduino\libraries\lvgl\lvgl.h:26,

Non usata: C:\Program Files (x86)\Arduino\libraries\SD

             from C:\Users\rferr\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,

Non usata: C:\Users\rferr\Documents\Arduino\libraries\SD

             from sketch\Display.h:11,

Più di una libreria trovata per "WiFi.h"

             from C:\Users\rferr\Desktop\ESP32Marauder-master\esp32_marauder\esp32_marauder.ino:20:

Usata: C:\Users\rferr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi

c:\users\rferr\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:24:101: fatal error: ../../lv_conf.h: No such file or directory

Non usata: C:\Program Files (x86)\Arduino\libraries\WiFi

compilation terminated.

Più di una libreria trovata per "SPI.h"

Usata: C:\Users\rferr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\SPI

Non usata: C:\Users\rferr\Documents\Arduino\libraries\SPI

Più di una libreria trovata per "Wire.h"

Usata: C:\Users\rferr\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\Wire

Non usata: C:\Users\rferr\Documents\Arduino\libraries\Wire

exit status 1

Errore durante la compilazione per la scheda ESP32 Dev Module.

@Gotcha007
Copy link

I have kind of the same. To be honest, it's the first time playing with Arduino.

Multiple libraries were found for "SD.h"
In file included from c:\users\gotch\documents\arduino\libraries\lvgl\src/lv_misc/lv_log.h:16:0,
Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\SD
from c:\users\gotch\documents\arduino\libraries\lvgl\lvgl.h:25,
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\SD
Multiple libraries were found for "lvgl.h"
Used: C:\Users\gotch\Documents\Arduino\libraries\lvgl
Not used: C:\Users\gotch\Documents\Arduino\libraries\lv_arduino
Multiple libraries were found for "WiFi.h"
from C:\Users\gotch\Documents\Arduino\libraries\lvgl\src/lvgl.h:17,
Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi
from sketch\Display.h:11,
Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi
from C:\Users\gotch\Downloads\ESP32Marauder-master\ESP32Marauder-master\esp32_marauder\esp32_marauder.ino:20:
c:\users\gotch\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:40:101: fatal error: ../../lv_conf.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board LOLIN D32.

@astronomicalunit
Copy link

astronomicalunit commented Feb 21, 2021 via email

@justcallmekoko
Copy link
Owner

@Gotcha007

from C:\Users\gotch\Downloads\ESP32Marauder-master\ESP32Marauder-master\esp32_marauder\esp32_marauder.ino:20:
c:\users\gotch\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:40:101: fatal error: ../../lv_conf.h: No such file or directory
compilation terminated.
exit status 1
Error compiling for board LOLIN D32.

It sounds like you need to install the lv_arduino library, not lvgl. If you go to the library manager in the Arduino IDE, you will find lv_arduino. You can install it there. One of the differences I noticed between the two libraries is one included an lv_conf.h and the other does not.

@Gotcha007
Copy link

Thanks for that, I had it installed but I think the issue might have been that I had both installed. I removed Lvgl and after a few errors I was able to resolve, I'm getting this now.

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

WiFiScan.cpp:1141:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

     DynamicJsonBuffer jsonBuffer;

       ^

sketch\Display.cpp: In member function 'void Display::RunSetup()':

Display.cpp:42:7: error: 'class TFT_eSPI' has no member named 'setTouch'

tft.setTouch(calData);

   ^

sketch\Display.cpp: In member function 'void Display::drawStylus()':

Display.cpp:482:25: error: 'class TFT_eSPI' has no member named 'getTouch'

boolean pressed = tft.getTouch(&x, &y);

                     ^

sketch\MenuFunctions.cpp: In function 'bool my_touchpad_read(lv_indev_drv_t*, lv_indev_data_t*)':

MenuFunctions.cpp:47:34: error: 'class TFT_eSPI' has no member named 'getTouch'

bool touched = display_obj.tft.getTouch(&touchX, &touchY, 600);

                              ^

sketch\MenuFunctions.cpp: In member function 'void MenuFunctions::main(uint32_t)':

MenuFunctions.cpp:322:29: error: 'class TFT_eSPI' has no member named 'getTouch'

pressed = display_obj.tft.getTouch(&t_x, &t_y);

                         ^

sketch\MenuFunctions.cpp: In member function 'void MenuFunctions::orientDisplay()':

MenuFunctions.cpp:668:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunLvJoinWiFi(uint8_t, uint16_t)':

WiFiScan.cpp:439:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunPacketMonitor(uint8_t, uint16_t)':

WiFiScan.cpp:604:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunEapolScan(uint8_t, uint16_t)':

WiFiScan.cpp:651:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In static member function 'static void WiFiScan::pwnSnifferCallback(void*, wifi_promiscuous_pkt_type_t)':

WiFiScan.cpp:1141:27: error: 'jsonBuffer' was not declared in this scope

     DynamicJsonBuffer jsonBuffer;

                       ^

WiFiScan.cpp:1143:19: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6173_91::ObjectRef}' has no member named 'success'

     if (!json.success()) {

               ^

WiFiScan.cpp:1150:16: error: 'ArduinoJson::JsonObject {aka class ArduinoJson6173_91::ObjectRef}' has no member named 'printTo'

       json.printTo(json_output);

            ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::eapolMonitorMain(uint32_t)':

WiFiScan.cpp:1774:31: error: 'class TFT_eSPI' has no member named 'getTouch'

 pressed = display_obj.tft.getTouch(&t_x, &t_y);

                           ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::packetMonitorMain(uint32_t)':

WiFiScan.cpp:2007:31: error: 'class TFT_eSPI' has no member named 'getTouch'

 pressed = display_obj.tft.getTouch(&t_x, &t_y);

                           ^

Multiple libraries were found for "WiFi.h"

Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi

Multiple libraries were found for "SD.h"

Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\SD

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\SD

exit status 1

DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

@justcallmekoko
Copy link
Owner

@Gotcha007

DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

Go back to library manager and install the ArduinoJson version RIGHT BEFORE version 6. It should be version 5.x.x
You just have to make sure it isn't 6.x.x

As for the other errors, this is an issue I need to resolve with the marauder code itself as the current version of TFT_eSPI no longer uses setTouch and getTouch. I am still using an old version of the library. I have a branch of TFT_eSPI that should still work if you would like to try installing that instead

@tobozo
Copy link
Contributor

tobozo commented Feb 22, 2021

I apologize in advance for the dummy question, but why is the old ArduinoJSON needed in the first place ?

What about PR #56, the code change does not look that big, is that a workable solution ?

@Gotcha007
Copy link

@Gotcha007

DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to ArduinoJson version 6

Go back to library manager and install the ArduinoJson version RIGHT BEFORE version 6. It should be version 5.x.x
You just have to make sure it isn't 6.x.x

As for the other errors, this is an issue I need to resolve with the marauder code itself as the current version of TFT_eSPI no longer uses setTouch and getTouch. I am still using an old version of the library. I have a branch of TFT_eSPI that should still work if you would like to try installing that instead

That resolved that issue, thanks !
Can you share your library for the TFT then. I used that one but still getting the errors
https://github.com/justcallmekoko/TFT_eSPI

@justcallmekoko
Copy link
Owner

Which errors are you receiving when you use my branch?

@tobozo The reason I used the ArduinoJson solution I use know is because it was the most consistent answer I found

@Gotcha007
Copy link

Arduino: 1.8.13 (Windows Store 1.8.42.0) (Windows 10), Board: "ESP32 Dev Module, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, None"

sketch\Display.cpp: In member function 'void Display::RunSetup()':

Display.cpp:42:7: error: 'class TFT_eSPI' has no member named 'setTouch'

tft.setTouch(calData);

   ^

sketch\Display.cpp: In member function 'void Display::drawStylus()':

Display.cpp:482:25: error: 'class TFT_eSPI' has no member named 'getTouch'

boolean pressed = tft.getTouch(&x, &y);

                     ^

sketch\MenuFunctions.cpp: In function 'bool my_touchpad_read(lv_indev_drv_t*, lv_indev_data_t*)':

MenuFunctions.cpp:47:34: error: 'class TFT_eSPI' has no member named 'getTouch'

bool touched = display_obj.tft.getTouch(&touchX, &touchY, 600);

                              ^

sketch\MenuFunctions.cpp: In member function 'void MenuFunctions::main(uint32_t)':

MenuFunctions.cpp:322:29: error: 'class TFT_eSPI' has no member named 'getTouch'

pressed = display_obj.tft.getTouch(&t_x, &t_y);

                         ^

sketch\MenuFunctions.cpp: In member function 'void MenuFunctions::orientDisplay()':

MenuFunctions.cpp:668:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunLvJoinWiFi(uint8_t, uint16_t)':

WiFiScan.cpp:439:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunPacketMonitor(uint8_t, uint16_t)':

WiFiScan.cpp:604:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::RunEapolScan(uint8_t, uint16_t)':

WiFiScan.cpp:651:19: error: 'class TFT_eSPI' has no member named 'setTouch'

display_obj.tft.setTouch(calData);

               ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::eapolMonitorMain(uint32_t)':

WiFiScan.cpp:1774:31: error: 'class TFT_eSPI' has no member named 'getTouch'

 pressed = display_obj.tft.getTouch(&t_x, &t_y);

                           ^

sketch\WiFiScan.cpp: In member function 'void WiFiScan::packetMonitorMain(uint32_t)':

WiFiScan.cpp:2007:31: error: 'class TFT_eSPI' has no member named 'getTouch'

 pressed = display_obj.tft.getTouch(&t_x, &t_y);

                           ^

Multiple libraries were found for "SD.h"

Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\SD

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\SD

Multiple libraries were found for "WiFi.h"

Used: C:\Users\gotch\Documents\ArduinoData\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi

Not used: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.42.0_x86__mdqgnx93n4wtt\libraries\WiFi

exit status 1

'class TFT_eSPI' has no member named 'setTouch'

@Gotcha007
Copy link

Which is odd because I do find the function in Touch.h file

@justcallmekoko
Copy link
Owner

It makes me think you might still have the original TFT_eSPI library installed. If you do to the libraries directory in your Arduino folder, you should be able to delete the TFT_eSPI library then install my branch. I don't know if this is what you already did, but if it is, there is an actual ghost in your computer

@Gotcha007
Copy link

So I removed the library and compile. got that error which is normal.
TFT_eSPI.h: No such file or directory
so that means that nothing else exists.

I put back the one from your repository and still getting that error. Very stange. Do I have to do something when I install a library?

@Gotcha007
Copy link

uninstalled, deleted the cache and the arduino folder into the document folder. re-install everything and made sure to only install your library for TFT_eSPI but still having the same issue :-(

@Gotcha007
Copy link

I'm wondering if it's because it never loads this (from TFT_eSPI.h)
// Load the Touch extension
#ifdef TOUCH_CS
#include "Extensions/Touch.h" // Loaded if TOUCH_CS is defined by user
#endif

@Gotcha007
Copy link

I feel stupid but do I need to have the screen already connected to have it compiled correctly? I only have the board connected at the moment and did not do the wiring

@Gotcha007
Copy link

ok I was finally able to fix my issues by following this
Bodmer/TFT_eSPI#454 (comment)

and also this
#2 (comment)

Now I'm getting the below. Am I doing something wrong?

Arduino: 1.8.13 (Windows 10), Board: "LOLIN D32 PRO, Disabled, Default, 80MHz, 921600, None"

text section exceeds available space in board

Sketch uses 1460257 bytes (111%) of program storage space. Maximum is 1310720 bytes.

Global variables use 107252 bytes (32%) of dynamic memory, leaving 220428 bytes for local variables. Maximum is 327680 bytes.

Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.

Error compiling for board LOLIN D32 PRO.

@justcallmekoko
Copy link
Owner

Set your partition scheme to Large app and Small SPIFS or something like that.

@Gotcha007
Copy link

You are the best, thanks it worked !
now I need to wire that screen lol
I'm still planning to buy one of yours anyway (in the wait list) but wanted to play with it

@justcallmekoko
Copy link
Owner

@rferrari81

c:\users\rferr\documents\arduino\libraries\lvgl\src\lv_conf_internal.h:24:101: fatal error: ../../lv_conf.h: No such file or directory

You are having the same issue. You need to uninstall the lvgl library in the Arduino IDE and install lv_arduino instead.

@Gotcha007 let me know how it goes with the screen wiring. I would love to see the finished product

@Gotcha007
Copy link

Yep, I will !
To be honest I'm struggling a little to know how to wire the Lolin D32 Pro to the TFT screen.
First time doing such thing, I usually only play with Raspberries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants