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

Trouble Compiling tft_demo in ESP32_TFT_library #14

Closed
jimwims opened this issue Oct 22, 2017 · 5 comments
Closed

Trouble Compiling tft_demo in ESP32_TFT_library #14

jimwims opened this issue Oct 22, 2017 · 5 comments

Comments

@jimwims
Copy link

jimwims commented Oct 22, 2017

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
Copy link

alabig commented Oct 22, 2017

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:

espressif/esp-idf@539262b

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
Copy link
Author

jimwims commented Oct 23, 2017

Thanks for responding. Will give it a try.

@loboris
Copy link
Owner

loboris commented Oct 25, 2017

For now, just comment the line 836 in components/spiffs/spiffs_vfs.c


The fix will be pushed soon (I'm working on some other changes too).

@jimwims
Copy link
Author

jimwims commented Oct 25, 2017

That was easy. Thanks very much!

@loboris
Copy link
Owner

loboris commented Nov 1, 2017

Fixed in latest commit.

@loboris loboris closed this as completed Nov 1, 2017
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

3 participants