espressif / esp-who

Face detection and recognition framework
Other
1.69k stars 468 forks source link

Compile error sodium/aead_chacha20poly1305.d: No such file or directory #62

Open Napat opened 5 years ago

Napat commented 5 years ago

I tried to make flash detection_with_command_line but got stuck on sodium/aead_chacha20poly1305.d not found.

Note:

Info

LOG

$ cd  ~/esp/esp-who/examples/single_chip/detection_with_command_line
$ make flash

...
CC build/jsmn/src//jsmn.o
AR build/jsmn/libjsmn.a
CC build/json/cJSON/cJSON.o
CC build/json/cJSON/cJSON_Utils.o
AR build/json/libjson.a
CC build/lcd/spi_lcd.o
CC build/lcd/font7s.o
CXX build/lcd/iot_lcd.o
CXX build/lcd/adaptation.o
CXX build/lcd/Adafruit-GFX-Library/Adafruit_SPITFT.o
CXX build/lcd/Adafruit-GFX-Library/Adafruit_GFX.o
AR build/lcd/liblcd.a
AR build/lib/liblib.a
CC build/libsodium/port/randombytes_esp32.o
CC build/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o
D:/workdir/esp32/m5cameraX/esp32_win32_msys2_environment_and_toolchain-20181001/msys32/home/napat/esp/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.c:386:1: fatal error: opening dependency file libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.d: No such file or directory
 }
 ^
compilation terminated.
make[1]: *** [/home/napat/esp/esp-idf/make/component_wrapper.mk:286: libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/aead_chacha20poly1305.o] Error 1
make: *** [D:\workdir\esp32\m5cameraX\esp32_win32_msys2_environment_and_toolchain-20181001\msys32\home\napat\esp\esp-idf/make/project.mk:468: component-libsodium-build] Error 2

$ ls -al ~/esp/esp-idf/components/libsodium/libsodium/src/libsodium/crypto_aead/chacha20poly1305/sodium/
aead_chacha20poly1305.c

total 16
drwxr-xr-x 1 napat napat     0 Apr 21 16:01 .
drwxr-xr-x 1 napat napat     0 Apr 21 16:01 ..
-rw-r--r-- 1 napat napat 13975 Apr 21 16:01 aead_chacha20poly1305.c

$

Does anyone know how to fix it?

Napat commented 5 years ago

After move msys from D:\...\esp32_win32_msys2_environment_and_toolchain-20181001\msys32
to C:\msys
The issue is gone. Btw I still want to use my D:\ working directory. Does anybody have an idea?