diff --git a/components/3rd_party/FFmpeg/CMakeLists.txt b/components/3rd_party/FFmpeg/CMakeLists.txt index e33cc57c..3477058f 100644 --- a/components/3rd_party/FFmpeg/CMakeLists.txt +++ b/components/3rd_party/FFmpeg/CMakeLists.txt @@ -78,7 +78,7 @@ set_property(SOURCE ${ffmpeg_dynamic_lib_file} PROPERTY GENERATED 1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -D__ERROR__=00*10000000+__LINE__*1000 -DOS_LINUX) ############################################### diff --git a/components/3rd_party/RtspServer/CMakeLists.txt b/components/3rd_party/RtspServer/CMakeLists.txt index 9bf16405..bc722d7a 100644 --- a/components/3rd_party/RtspServer/CMakeLists.txt +++ b/components/3rd_party/RtspServer/CMakeLists.txt @@ -68,7 +68,7 @@ append_srcs_dir(ADD_SRCS "${src_path}/src/net" # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -D__ERROR__=00*10000000+__LINE__*1000 -DOS_LINUX) ############################################### diff --git a/components/3rd_party/asio/CMakeLists.txt b/components/3rd_party/asio/CMakeLists.txt index 2d6104ae..27eb0492 100644 --- a/components/3rd_party/asio/CMakeLists.txt +++ b/components/3rd_party/asio/CMakeLists.txt @@ -46,7 +46,7 @@ list(APPEND ADD_DEFINITIONS -DASIO_STANDALONE=1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/brotli/CMakeLists.txt b/components/3rd_party/brotli/CMakeLists.txt index d8d6ca05..948ea986 100644 --- a/components/3rd_party/brotli/CMakeLists.txt +++ b/components/3rd_party/brotli/CMakeLists.txt @@ -56,7 +56,7 @@ # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/cpp-httplib/CMakeLists.txt b/components/3rd_party/cpp-httplib/CMakeLists.txt index c7427456..cc8e2ac6 100644 --- a/components/3rd_party/cpp-httplib/CMakeLists.txt +++ b/components/3rd_party/cpp-httplib/CMakeLists.txt @@ -56,7 +56,7 @@ register_component() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/cvi_tpu/CMakeLists.txt b/components/3rd_party/cvi_tpu/CMakeLists.txt index 0ba63d41..f506ff9c 100644 --- a/components/3rd_party/cvi_tpu/CMakeLists.txt +++ b/components/3rd_party/cvi_tpu/CMakeLists.txt @@ -109,7 +109,7 @@ register_component() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/eigen/CMakeLists.txt b/components/3rd_party/eigen/CMakeLists.txt index ea351724..2d2941b3 100644 --- a/components/3rd_party/eigen/CMakeLists.txt +++ b/components/3rd_party/eigen/CMakeLists.txt @@ -46,7 +46,7 @@ list(APPEND ADD_DEFINITIONS -DASIO_STANDALONE=1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/freetype/CMakeLists.txt b/components/3rd_party/freetype/CMakeLists.txt index 6573f1b9..7740cef3 100644 --- a/components/3rd_party/freetype/CMakeLists.txt +++ b/components/3rd_party/freetype/CMakeLists.txt @@ -56,7 +56,7 @@ list(APPEND ADD_REQUIREMENTS brotli) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/harfbuzz/CMakeLists.txt b/components/3rd_party/harfbuzz/CMakeLists.txt index 3be0f6c6..f884b447 100644 --- a/components/3rd_party/harfbuzz/CMakeLists.txt +++ b/components/3rd_party/harfbuzz/CMakeLists.txt @@ -56,7 +56,7 @@ # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/http_request/CMakeLists.txt b/components/3rd_party/http_request/CMakeLists.txt index 4c48197a..2b3fa20a 100644 --- a/components/3rd_party/http_request/CMakeLists.txt +++ b/components/3rd_party/http_request/CMakeLists.txt @@ -40,7 +40,7 @@ list(APPEND ADD_INCLUDE "HTTPRequest/include" # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/ini/CMakeLists.txt b/components/3rd_party/ini/CMakeLists.txt index 6690fc09..4d36e886 100644 --- a/components/3rd_party/ini/CMakeLists.txt +++ b/components/3rd_party/ini/CMakeLists.txt @@ -40,7 +40,7 @@ aux_source_directory("inifile2/src" ADD_SRCS) # collect all source file in src # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/libmodbus/CMakeLists.txt b/components/3rd_party/libmodbus/CMakeLists.txt index c49104f9..4e74a96f 100644 --- a/components/3rd_party/libmodbus/CMakeLists.txt +++ b/components/3rd_party/libmodbus/CMakeLists.txt @@ -90,7 +90,7 @@ set_property(SOURCE ${libmodbus_static_lib_file} PROPERTY GENERATED 1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -D__ERROR__=00*10000000+__LINE__*1000 -DOS_LINUX) ############################################### diff --git a/components/3rd_party/lvgl/CMakeLists.txt b/components/3rd_party/lvgl/CMakeLists.txt index 420e882c..49e30b23 100644 --- a/components/3rd_party/lvgl/CMakeLists.txt +++ b/components/3rd_party/lvgl/CMakeLists.txt @@ -79,7 +79,7 @@ list(APPEND ADD_REQUIREMENTS rlottie) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) list(APPEND ADD_DEFINITIONS -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE) diff --git a/components/3rd_party/media_server/CMakeLists.txt b/components/3rd_party/media_server/CMakeLists.txt index bdd6cd89..f2df153c 100644 --- a/components/3rd_party/media_server/CMakeLists.txt +++ b/components/3rd_party/media_server/CMakeLists.txt @@ -104,7 +104,7 @@ set_property(SOURCE ${ADD_STATIC_LIB} PROPERTY GENERATED 1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component list(APPEND ADD_DEFINITIONS -D__ERROR__=00*10000000+__LINE__*1000 -DOS_LINUX) ############################################### diff --git a/components/3rd_party/ntp_client/CMakeLists.txt b/components/3rd_party/ntp_client/CMakeLists.txt index b09f2407..de29d3b2 100644 --- a/components/3rd_party/ntp_client/CMakeLists.txt +++ b/components/3rd_party/ntp_client/CMakeLists.txt @@ -39,7 +39,7 @@ aux_source_directory("ntp_client" ADD_SRCS) # collect all source file in src di # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/omv/CMakeLists.txt b/components/3rd_party/omv/CMakeLists.txt index 92d730b2..3d080402 100644 --- a/components/3rd_party/omv/CMakeLists.txt +++ b/components/3rd_party/omv/CMakeLists.txt @@ -110,7 +110,7 @@ set_property(SOURCE "${src_path}/alloc" PROPERTY GENERATED 1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/openssl/CMakeLists.txt b/components/3rd_party/openssl/CMakeLists.txt index 86379dc1..f2ebcc52 100644 --- a/components/3rd_party/openssl/CMakeLists.txt +++ b/components/3rd_party/openssl/CMakeLists.txt @@ -56,7 +56,7 @@ # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/pybind11/CMakeLists.txt b/components/3rd_party/pybind11/CMakeLists.txt index a669062d..c6a57a4f 100644 --- a/components/3rd_party/pybind11/CMakeLists.txt +++ b/components/3rd_party/pybind11/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_PRIVATE_INCLUDE "") # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/python3/CMakeLists.txt b/components/3rd_party/python3/CMakeLists.txt index bba1caa8..4f77ed24 100644 --- a/components/3rd_party/python3/CMakeLists.txt +++ b/components/3rd_party/python3/CMakeLists.txt @@ -56,7 +56,7 @@ # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/qrcode/CMakeLists.txt b/components/3rd_party/qrcode/CMakeLists.txt index 89962c5c..a0b6015a 100644 --- a/components/3rd_party/qrcode/CMakeLists.txt +++ b/components/3rd_party/qrcode/CMakeLists.txt @@ -60,7 +60,7 @@ aux_source_directory("${src_path}/core/src/qrcode" ADD_SRCS) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/quirc/CMakeLists.txt b/components/3rd_party/quirc/CMakeLists.txt index d062e020..860f17eb 100644 --- a/components/3rd_party/quirc/CMakeLists.txt +++ b/components/3rd_party/quirc/CMakeLists.txt @@ -43,7 +43,7 @@ aux_source_directory("./src" ADD_SRCS) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/rlottie/CMakeLists.txt b/components/3rd_party/rlottie/CMakeLists.txt index 26c69246..5a70f880 100644 --- a/components/3rd_party/rlottie/CMakeLists.txt +++ b/components/3rd_party/rlottie/CMakeLists.txt @@ -71,7 +71,7 @@ endif() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/sdl/CMakeLists.txt b/components/3rd_party/sdl/CMakeLists.txt index 71361704..b37b4196 100644 --- a/components/3rd_party/sdl/CMakeLists.txt +++ b/components/3rd_party/sdl/CMakeLists.txt @@ -56,7 +56,7 @@ # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/sunxi_mpp/CMakeLists.txt b/components/3rd_party/sunxi_mpp/CMakeLists.txt index dc2487b1..b0b89489 100644 --- a/components/3rd_party/sunxi_mpp/CMakeLists.txt +++ b/components/3rd_party/sunxi_mpp/CMakeLists.txt @@ -223,7 +223,7 @@ set_property(SOURCE ${sunxi_mpp_dynamic_lib_file} PROPERTY GENERATED 1) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/websocket/CMakeLists.txt b/components/3rd_party/websocket/CMakeLists.txt index c2b1c411..ddfec223 100644 --- a/components/3rd_party/websocket/CMakeLists.txt +++ b/components/3rd_party/websocket/CMakeLists.txt @@ -51,7 +51,7 @@ list(APPEND ADD_INCLUDE "${websocketpp_root}" # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/yaml/CMakeLists.txt b/components/3rd_party/yaml/CMakeLists.txt index df32b06e..be2d2a3b 100644 --- a/components/3rd_party/yaml/CMakeLists.txt +++ b/components/3rd_party/yaml/CMakeLists.txt @@ -41,7 +41,7 @@ aux_source_directory("yaml-cpp/src" ADD_SRCS) # collect all source file in src # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/zbar/CMakeLists.txt b/components/3rd_party/zbar/CMakeLists.txt index 208b5319..2325ee63 100644 --- a/components/3rd_party/zbar/CMakeLists.txt +++ b/components/3rd_party/zbar/CMakeLists.txt @@ -49,7 +49,7 @@ list(REMOVE_ITEM ADD_SRCS "${src_path}/zbar/svg.c") # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/3rd_party/zip/CMakeLists.txt b/components/3rd_party/zip/CMakeLists.txt index 5eafcfc5..ddee733b 100644 --- a/components/3rd_party/zip/CMakeLists.txt +++ b/components/3rd_party/zip/CMakeLists.txt @@ -40,7 +40,7 @@ aux_source_directory("zip/src" ADD_SRCS) # collect all source file in src dir, # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/basic/CMakeLists.txt b/components/basic/CMakeLists.txt index 50bb78ff..22967b77 100644 --- a/components/basic/CMakeLists.txt +++ b/components/basic/CMakeLists.txt @@ -56,7 +56,7 @@ list(APPEND ADD_REQUIREMENTS pthread stdc++fs ini yaml ntp_client) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/basic/include/maix_type.hpp b/components/basic/include/maix_type.hpp index 22334f6c..e4f14345 100644 --- a/components/basic/include/maix_type.hpp +++ b/components/basic/include/maix_type.hpp @@ -24,17 +24,17 @@ namespace maix * Construct a Bytes object from a uint8_t array. * @param data uint8_t array * @param len length of the array - * @param auto_detele if true, will delete data when destruct. When copy is true, this arg will be ignore. + * @param auto_delete if true, will delete data when destruct. When copy is true, this arg will be ignore. * @param copy data will be copy to new buffer if true, if false, will use data directly, * default true to ensure memory safety. * @maixcdk maix.Bytes.Bytes */ - Bytes(uint8_t *data, uint32_t len, bool auto_detele = false, bool copy = true) + Bytes(uint8_t *data, uint32_t len, bool auto_delete = false, bool copy = true) { this->data = data; this->data_len = len; this->buff_len = len; - this->_is_alloc = auto_detele; + this->_is_alloc = auto_delete; if(len > 0) { if(data && copy) diff --git a/components/comm/CMakeLists.txt b/components/comm/CMakeLists.txt index 35d70930..db970f5c 100644 --- a/components/comm/CMakeLists.txt +++ b/components/comm/CMakeLists.txt @@ -49,7 +49,7 @@ list(APPEND ADD_REQUIREMENTS basic peripheral libmodbus) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/ext_dev/CMakeLists.txt b/components/ext_dev/CMakeLists.txt index 01f46e5f..a64349bf 100644 --- a/components/ext_dev/CMakeLists.txt +++ b/components/ext_dev/CMakeLists.txt @@ -79,7 +79,7 @@ register_component() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/maixcam_lib/CMakeLists.txt b/components/maixcam_lib/CMakeLists.txt index 328001b4..d831c6a2 100644 --- a/components/maixcam_lib/CMakeLists.txt +++ b/components/maixcam_lib/CMakeLists.txt @@ -86,7 +86,7 @@ endif() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/network/CMakeLists.txt b/components/network/CMakeLists.txt index d9a09645..3b60674a 100644 --- a/components/network/CMakeLists.txt +++ b/components/network/CMakeLists.txt @@ -63,7 +63,7 @@ register_component() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/nn/CMakeLists.txt b/components/nn/CMakeLists.txt index 854c3416..c8827880 100644 --- a/components/nn/CMakeLists.txt +++ b/components/nn/CMakeLists.txt @@ -63,7 +63,7 @@ register_component() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/peripheral/CMakeLists.txt b/components/peripheral/CMakeLists.txt index e313246f..6dcd3515 100755 --- a/components/peripheral/CMakeLists.txt +++ b/components/peripheral/CMakeLists.txt @@ -65,7 +65,7 @@ list(APPEND ADD_REQUIREMENTS basic) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/vision/CMakeLists.txt b/components/vision/CMakeLists.txt index b75fe6d1..7448467e 100644 --- a/components/vision/CMakeLists.txt +++ b/components/vision/CMakeLists.txt @@ -76,7 +76,7 @@ list(APPEND ADD_REQUIREMENTS eigen voice) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/vision_extra/CMakeLists.txt b/components/vision_extra/CMakeLists.txt index a38011da..bdd6c379 100644 --- a/components/vision_extra/CMakeLists.txt +++ b/components/vision_extra/CMakeLists.txt @@ -63,7 +63,7 @@ endif() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/components/voice/CMakeLists.txt b/components/voice/CMakeLists.txt index 7fac2515..53b99ed0 100644 --- a/components/voice/CMakeLists.txt +++ b/components/voice/CMakeLists.txt @@ -64,7 +64,7 @@ endif() # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/docs/doc/README.md b/docs/doc/README.md index ac3ec4cf..39a9799c 100644 --- a/docs/doc/README.md +++ b/docs/doc/README.md @@ -43,7 +43,7 @@ Note that the MaixCAM toolchain only supports x86_64 CPUs and is not compatible ```shell sudo apt update -sudo apt install git cmake build-essential python3 python3-pip +sudo apt install git cmake build-essential python3 python3-pip autoconf automake libtool cmake --version # cmake version should be >= 3.13 ``` > To compile for a Linux PC (instead of cross-compiling for a dev board), if you’re using `Ubuntu`, ensure the system version is `>=20.04`, or some dependencies may be too outdated to compile. Install dependencies following the commands in the [Dockerfile](https://github.com/sipeed/MaixCDK/blob/main/docs/doc/dev/docker/Dockerfile). diff --git a/docs/doc/faq.md b/docs/doc/faq.md index e8da8844..58638fe0 100644 --- a/docs/doc/faq.md +++ b/docs/doc/faq.md @@ -48,3 +48,41 @@ class CommProtocol Here `class CommProtocol` not add `@maixpy maix.comm.CommProtocol` but its method `get_msg` add it. So we add `@maixpy maix.comm.CommProtocol` to `class CommProtocol` comment will fix this error. + +## Build OpenSSL Error when using WSL( Windows Subsystem Layer) + +When I add openssl to my project +![a0cee88e7a7a747c2d34eadb31a925bd](https://github.com/user-attachments/assets/77b0c057-fb0b-4980-8ff4-413fd14dec28) +build fail occured: + +![3b42197634ee4cd6a7b0462636e8dd34](https://github.com/user-attachments/assets/d23da336-8096-43ec-aec8-23691caaacf2) + +Use "maixcdk build --verbose" to check . I found that windows path polluted wsl path . and there are "(" and space in path ,which make configure of openssl fail . + +Fix : fix the path : + +edit `wsl.conf` in wsl +```sh +sudo nano /etc/wsl.conf +``` + +create the file if no exist. add the content below : + +``` + +[interop] +appendWindowsPath = false +``` + +restart wsl +``` +wsl --shutdown Ubuntu +``` + +![9a86a628630209725d362f07b51ecb9a](https://github.com/user-attachments/assets/79571b2c-3449-4ae8-afdd-69917d4986ce) + +path is fixed ,openssl configure succ + +![d6e43b3bf8e5c68d9966636464b08a43](https://github.com/user-attachments/assets/f69be859-dc9c-4a7d-82f3-06df0ea03ed5) + + diff --git a/docs/doc_zh/README.md b/docs/doc_zh/README.md index 81658ac6..59226a3f 100644 --- a/docs/doc_zh/README.md +++ b/docs/doc_zh/README.md @@ -44,7 +44,7 @@ MaixCDK 不光是一套 C++ SDK,同时会自动生成 Python API 绑定,即 ``` sudo apt update -sudo apt install git cmake build-essential python3 python3-pip +sudo apt install git cmake build-essential python3 python3-pip autoconf automake libtool cmake --version # cmake 版本应该 >= 3.13 ``` > 如果你希望编译出来到 Linux PC 上跑,而不是交叉编译到开发板,如果是 `Ubuntu`,请使用系统版本`>=20.04`,否则有些依赖包可能会版本太旧无法编译通过,并且按照[Dockerfile](https://github.com/sipeed/MaixCDK/blob/main/docs/doc/dev/docker/Dockerfile)里面的安装依赖的命令来安装依赖。 diff --git a/docs/doc_zh/faq.md b/docs/doc_zh/faq.md index 54ce84f3..6f0e2047 100644 --- a/docs/doc_zh/faq.md +++ b/docs/doc_zh/faq.md @@ -46,3 +46,39 @@ class CommProtocol Here `class CommProtocol` not add `@maixpy maix.comm.CommProtocol` but its method `get_msg` add it. So we add `@maixpy maix.comm.CommProtocol` to `class CommProtocol` comment will fix this error. + + +## 使用WSL编译OpenSSL时出错的修复方法 + +当我在工程中使用openssl时: +![a0cee88e7a7a747c2d34eadb31a925bd](https://github.com/user-attachments/assets/7de123b5-aae6-4a92-8d88-9d9a7a57f419) + +编译报错: + +![3b42197634ee4cd6a7b0462636e8dd34](https://github.com/user-attachments/assets/5ffe5433-ac0f-4096-8374-5d76c43ed320) + + 用verbose查看命令发现, Path里是包含“(”的,这是windows的Path将WSL的path污染了。 + +参照网上的方法,在WSL中: +``` +sudo nano /etc/wsl.conf +``` + +如果没有则新建,内容如下: + +```conf +[interop] +appendWindowsPath = false +``` + +重启WSL后, Path干净了。 + +![9a86a628630209725d362f07b51ecb9a](https://github.com/user-attachments/assets/af7f11d2-9bef-4df1-aeeb-0388dce18241) + + +编译openssl也成功了。 + +![d6e43b3bf8e5c68d9966636464b08a43](https://github.com/user-attachments/assets/c41eaa03-f1d8-49b9-bc27-88c63ee4cf4f) + + + diff --git a/examples/peripheral_adc/main/CMakeLists.txt b/examples/peripheral_adc/main/CMakeLists.txt index 066d461c..6a04c39a 100755 --- a/examples/peripheral_adc/main/CMakeLists.txt +++ b/examples/peripheral_adc/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic peripheral) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### Add components that depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ###############################################