Skip to content

Commit b343b5a

Browse files
committed
reparing the detailed_build_procedure markdown round 2
1 parent 28b1914 commit b343b5a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

esp32/doc/detailed_build_procedure.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -239,17 +239,15 @@ After these fixes, the command `make` is run, with some new errors:
239239
The `glob.cpp` file includes the file `xtensa-esp32-elf/sys-include/dirent.h`, which includes `xtensa-esp32-elf/sys-include/sys/dirent.h`, which causes this error. This is because the filesystem related functions are defined in the ESP-IDF repository (in `components/vfs/`). The `vfs/include/sys/dirent.h` header must therefore be included in `glob.cpp:135` instead of `<dirent.h>`:
240240
241241
```c++
242-
#if defined(ESP32)
242+
#if defined(ESP32)
243243
#include <sys/unistd.h>
244-
#include "esp_dirent.h"
244+
#include "esp_dirent.h"
245245
#include <sys/stat.h>
246246
const char dir_separators[] = "/";
247247
#else
248248
/* ... */
249249
```
250250

251-
252-
253251
This `esp_dirent.h` file is the `vfs/include/sys/dirent.h` copied into `modules/core/src/` in OpenCV sources.
254252

255253
* *system.cpp:1002:20: error: 'mkstemp' was not declared in this scope*

0 commit comments

Comments
 (0)