loboris / ESP32_TFT_library

Full featured TFT library for ESP32 with demo application
553 stars 219 forks source link

Trouble Compiling tft_demo in ESP32_TFT_library #14

Closed jimwims closed 6 years ago

jimwims commented 6 years ago

I am getting the messages shown below when attempting to compile the demo app to run on my ESP32 Rover board. Any suggestions?

CC /Users/jim/esp/ESP32_TFT_library/build/spiffs/spiffs_vfs.o /Users/jim/esp/ESP32_TFT_library/components/spiffs/./spiffs_vfs.c: In function vfs_spiffs_register': /Users/jim/esp/ESP32_TFT_library/components/spiffs/./spiffs_vfs.c:836:9: error:unknown field 'fd_offset' specified in initializer .fd_offset = 0, ^ /Users/jim/esp/ESP32_TFT_library/components/spiffs/./spiffs_vfs.c:837:18: warning: initialized field overwritten [-Woverride-init] .flags = ESP_VFS_FLAG_DEFAULT, ^ /Users/jim/esp/ESP32_TFT_library/components/spiffs/./spiffs_vfs.c:837:18: note:(near initialization for 'vfs.flags') make[1]: [spiffs_vfs.o] Error 1 make: [component-spiffs-build] Error 2

alabig commented 6 years ago

I am also getting this error, but it worked perfectly a week ago before I moved to a new location and updated everything.. this might be why:

https://github.com/espressif/esp-idf/commit/539262b5c2f186154092d727863dc39cb0c2ceee

Looks like esp-idf was updated very recently to remove the field. I just reverted to a previous version of esp-idf and compiled with no problems (i.e. it is working again).

jimwims commented 6 years ago

Thanks for responding. Will give it a try.

loboris commented 6 years ago

For now, just comment the line 836 in components/spiffs/spiffs_vfs.c https://github.com/loboris/ESP32_TFT_library/blob/015a576adf692c17f316b6746b2e53d169307fb4/components/spiffs/spiffs_vfs.c#L836 The fix will be pushed soon (I'm working on some other changes too).

jimwims commented 6 years ago

That was easy. Thanks very much!

loboris commented 6 years ago

Fixed in latest commit.