Camera Web Server —> Camera Pins —> Select Camera Pinout —> 選擇 ESP32-CAM by AI-Thinker
設定好後,就可以開始編譯
1
idf.py build
編譯錯誤處理
編譯過程中會有錯誤要處理
No such file or directory
1 2 3 4 5 6 7 8 9 10 11
../main/app_sd.c:15:10: fatal error: esp_vfs_fat.h: No such file or directory #include "esp_vfs_fat.h" ^~~~~~~~~~~~~~~
../main/app_smart_wifi.c:16:10: fatal error: esp_wpa2.h: No such file or directory #include "esp_wpa2.h" ^~~~~~~~~~~~ compilation terminated. [855/860] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/app_httpd.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1
ccache: error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/__idf_libsodium.dir/libsodium/src/libsodium/crypto_box/curve25519xsalsa20poly1305/box_curve25519xsalsa20poly1305.c.obj: No such file or directory [676/861] Building C object esp-idf/libsodium/CMakeFiles/_...bsodium/crypto_auth/hmacsha512256/auth_hmacsha512256.c.obj ninja: build stopped: subcommand failed. ninja failed with exit code 1
I (2921) camera wifi: wifi_init_softap finished.SSID:AiThinker password:12345678 I (3081) phy: phy_version: 4180, cb3948e, Sep 12 2019, 16:39:13, 0, 2 W (3081) phy_init: saving new calibration data because of checksum failure, mode(0) I (3141) wifi:mode : softAP (XX:XX:XX:XX:XX:XX) I (3141) wifi:Total power save buffer number: 8 I (3141) wifi:Init max length of beacon: 752/752 I (3141) wifi:Init max length of beacon: 752/752 I (3151) wifi:Set ps type: 0
I (3151) uart: queue free spaces: 20 I (3151) camera_httpd: Starting web server on port: '80' I (3161) camera_httpd: Starting stream server on port: '81' I (3171) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE I (3191) base MAC address: XX:XX:XX:XX:XX:XX I (3191) esp-cam Version: