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.
esp_vfs_fat.h not found error
Re: esp_vfs_fat.h not found error
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
If your directories are messed up you should wipe and start from scratch
Re: esp_vfs_fat.h not found error
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: shovnik2000 and 114 guests