reparing the detailed_build_procedure markdown round 2

This commit is contained in:
Joachim Burket
2020-07-02 15:49:47 +02:00
parent 28b191420b
commit b343b5a966

View File

@ -239,17 +239,15 @@ After these fixes, the command `make` is run, with some new errors:
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>`:
```c++
#if defined(ESP32)
#if defined(ESP32)
#include <sys/unistd.h>
#include "esp_dirent.h"
#include "esp_dirent.h"
#include <sys/stat.h>
const char dir_separators[] = "/";
#else
/* ... */
```
This `esp_dirent.h` file is the `vfs/include/sys/dirent.h` copied into `modules/core/src/` in OpenCV sources.
* *system.cpp:1002:20: error: 'mkstemp' was not declared in this scope*