esp_vfs_fat.h not found error

catotonic
Posts: 36
Joined: Sun Jul 16, 2017 6:55 pm
Location: Houston, TX
Contact:

esp_vfs_fat.h not found error

Postby catotonic » Sun Nov 26, 2017 1:16 pm

When trying to compile the sd_card example with msys32.exe I keep getting the following error:
C:/msys32/home/jkk/esp/esp-idf/examples/storage/sd_card/main/sd_card_example_main.c:15:25: fatal error: esp_vfs_fat.h: No such file or directory.
I found the esp_vfs_fat.h file on the path: C:/msys32/home/jkk/esp/esp-idf/components/libsodium/fatfs/src
So I tried prepending "libsodium/fatfs/src" to my #include to so that it would be #include " libsodium/fatfs/src/esp_vfs_fat.h" but I still get: No such file or directory. I also tried other permutations of #include strings with no joy.
I also moved the sc_card example folder into a Eclipse project and played with different include paths. I even tried creating an include folder and putting it in there, worndering it that pattern was what the compiler wanted, but I keep getting the same error. I have compiled many esp32 projects with no problems, but I am at a loss as to why it will not see a file that is there. I am not very knowledgeable about make so I cannot interpret any info it might be telling me about why it will not recognize the file.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: esp_vfs_fat.h not found error

Postby WiFive » Sun Nov 26, 2017 10:56 pm

sp_vfs_fat.h should not be inside libsodium component, it should be at esp-idf/components/fatfs/src/esp_vfs_fat.h

If your directories are messed up you should wipe and start from scratch

catotonic
Posts: 36
Joined: Sun Jul 16, 2017 6:55 pm
Location: Houston, TX
Contact:

Re: esp_vfs_fat.h not found error

Postby catotonic » Mon Nov 27, 2017 11:22 am

Solution: Updated ESP-IDF and toolchain. Still not sure why I got the "file not found" error for a file that was there.

Who is online

Users browsing this forum: mensbufo and 111 guests