From 715fdb05d4841aa6779417178e3cb7bf72e34257 Mon Sep 17 00:00:00 2001 From: Savelii Pototskii Date: Sat, 20 Jul 2024 16:34:14 +0500 Subject: [PATCH] fix: correct typos in different files --- docs/doc/application/ui/lvgl.md | 2 +- docs/doc/dev/docker/README.md | 2 +- docs/doc/faq.md | 2 +- examples/audio_demo/main/CMakeLists.txt | 2 +- examples/camera_display/main/CMakeLists.txt | 2 +- examples/comm_protocol/main/CMakeLists.txt | 2 +- examples/comm_uart/main/CMakeLists.txt | 2 +- examples/gui_lvgl/main/CMakeLists.txt | 2 +- examples/gui_simple/main/CMakeLists.txt | 2 +- examples/hello_world/main/CMakeLists.txt | 2 +- examples/i18n/main/CMakeLists.txt | 2 +- examples/image_method/main/CMakeLists.txt | 2 +- examples/image_show/main/CMakeLists.txt | 2 +- examples/jpg_stream_demo/main/CMakeLists.txt | 2 +- examples/key_demo/main/CMakeLists.txt | 2 +- .../maixcdk-example/CMakeLists.txt | 2 +- examples/multi_threads/main/CMakeLists.txt | 2 +- examples/nn_classifier/main/CMakeLists.txt | 2 +- examples/nn_face_detector/README.md | 2 +- examples/nn_face_detector/main/CMakeLists.txt | 2 +- examples/nn_face_recognizer/README.md | 2 +- .../nn_face_recognizer/main/CMakeLists.txt | 2 +- examples/nn_runner/main/CMakeLists.txt | 2 +- examples/nn_yolov5/main/CMakeLists.txt | 2 +- examples/nn_yolov8/main/CMakeLists.txt | 2 +- examples/opencv_demo/main/CMakeLists.txt | 2 +- examples/peripheral_gpio/main/CMakeLists.txt | 2 +- .../peripheral_i2c_eeprom/main/CMakeLists.txt | 2 +- .../peripheral_pinmap/main/CMakeLists.txt | 2 +- .../peripheral_pwm_servo/main/CMakeLists.txt | 2 +- examples/peripheral_spi/main/CMakeLists.txt | 2 +- examples/rtmp_demo/main/CMakeLists.txt | 2 +- examples/rtsp_demo/main/CMakeLists.txt | 2 +- examples/rtsp_yolo_demo/main/CMakeLists.txt | 2 +- examples/video_demo/main/CMakeLists.txt | 2 +- examples/video_record_mp4/main/CMakeLists.txt | 2 +- examples/websocket_client/main/CMakeLists.txt | 2 +- examples/websocket_server/main/CMakeLists.txt | 2 +- examples/wifi_demo/main/CMakeLists.txt | 2 +- projects/app_camera/main/CMakeLists.txt | 2 +- projects/app_classifier/main/CMakeLists.txt | 2 +- projects/app_detector/main/CMakeLists.txt | 2 +- projects/app_find_blobs/main/CMakeLists.txt | 2 +- .../app_line_tracking/main/CMakeLists.txt | 2 +- projects/app_photos/main/CMakeLists.txt | 2 +- test/cvi_tpu_demo/main/CMakeLists.txt | 2 +- test/cvi_tpu_matmul/main/CMakeLists.txt | 2 +- tools/cmake/build.py | 6 +++--- tools/cmake/compile.cmake | 4 ++-- tools/cmake/compile_flags.cmake | 2 +- tools/cmake/file_downloader.py | 4 ++-- tools/cmake/project.py | 2 +- tools/cmake/tools.cmake | 2 +- tools/doc_tool/gen_api.py | 2 +- tools/maixtool/maixtool/i18n.py | 20 +++++++++---------- tools/project_template/main/CMakeLists.txt | 2 +- 56 files changed, 69 insertions(+), 69 deletions(-) diff --git a/docs/doc/application/ui/lvgl.md b/docs/doc/application/ui/lvgl.md index 08be4386..795301e6 100644 --- a/docs/doc/application/ui/lvgl.md +++ b/docs/doc/application/ui/lvgl.md @@ -8,7 +8,7 @@ title: Use LVGL in MaixCDK * Execute `maixcdk build` to build the project for PC. * Execute `maixcdk run` to run the project on PC. -You can also excute `maixcdk menuconfig` to change platform to build for other platform. +You can also execute `maixcdk menuconfig` to change platform to build for other platform. ## Custom your own UI diff --git a/docs/doc/dev/docker/README.md b/docs/doc/dev/docker/README.md index f466b807..9637fcec 100644 --- a/docs/doc/dev/docker/README.md +++ b/docs/doc/dev/docker/README.md @@ -73,7 +73,7 @@ docker attach maixcdk-env ``` -## Execute command though host shell +## Execute command through host shell ```shell docker exec -it --user $USER maixcdk-env "cd /MaixCDK/examples/hello_world && maixcdk build && maixcdk run" diff --git a/docs/doc/faq.md b/docs/doc/faq.md index 116f9761..3e9ccf45 100644 --- a/docs/doc/faq.md +++ b/docs/doc/faq.md @@ -3,7 +3,7 @@ MaixCDK FAQ ## Downloading ippicv_2021.8_lnx_intel64_20230330_general.tgz takes a long time or fail -Mannually download according to the log's url, and put it into: +Manually download according to the log's url, and put it into: `MaixCDK -> components -> opencv -> opencv4 -> .cache -> ippicv` The file name is `43219bdc7e3805adcbe3a1e2f1f3ef3b-ippicv_2021.8_lnx_intel64_20230330_general.tgz`, File name and url can also be found in `MaixCDK/components/3rd_party/opencv/opencv4/3rdparty/ippicv/ippicv.cmake` diff --git a/examples/audio_demo/main/CMakeLists.txt b/examples/audio_demo/main/CMakeLists.txt index 9cb55616..2f1a26d5 100644 --- a/examples/audio_demo/main/CMakeLists.txt +++ b/examples/audio_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS voice) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/camera_display/main/CMakeLists.txt b/examples/camera_display/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/camera_display/main/CMakeLists.txt +++ b/examples/camera_display/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/comm_protocol/main/CMakeLists.txt b/examples/comm_protocol/main/CMakeLists.txt index 7d0ff25c..f417e058 100644 --- a/examples/comm_protocol/main/CMakeLists.txt +++ b/examples/comm_protocol/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic comm) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/comm_uart/main/CMakeLists.txt b/examples/comm_uart/main/CMakeLists.txt index 67480e24..d78a29c9 100644 --- a/examples/comm_uart/main/CMakeLists.txt +++ b/examples/comm_uart/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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/gui_lvgl/main/CMakeLists.txt b/examples/gui_lvgl/main/CMakeLists.txt index 699dba6f..e0e83e2f 100644 --- a/examples/gui_lvgl/main/CMakeLists.txt +++ b/examples/gui_lvgl/main/CMakeLists.txt @@ -41,7 +41,7 @@ list(APPEND ADD_REQUIREMENTS basic lvgl) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/gui_simple/main/CMakeLists.txt b/examples/gui_simple/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/gui_simple/main/CMakeLists.txt +++ b/examples/gui_simple/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/hello_world/main/CMakeLists.txt b/examples/hello_world/main/CMakeLists.txt index d3f518c3..2e5d5425 100644 --- a/examples/hello_world/main/CMakeLists.txt +++ b/examples/hello_world/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/i18n/main/CMakeLists.txt b/examples/i18n/main/CMakeLists.txt index 2aeb7c96..0dceb5aa 100644 --- a/examples/i18n/main/CMakeLists.txt +++ b/examples/i18n/main/CMakeLists.txt @@ -44,7 +44,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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/image_method/main/CMakeLists.txt b/examples/image_method/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/image_method/main/CMakeLists.txt +++ b/examples/image_method/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/image_show/main/CMakeLists.txt b/examples/image_show/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/image_show/main/CMakeLists.txt +++ b/examples/image_show/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/jpg_stream_demo/main/CMakeLists.txt b/examples/jpg_stream_demo/main/CMakeLists.txt index eaf23d82..c013b8d1 100644 --- a/examples/jpg_stream_demo/main/CMakeLists.txt +++ b/examples/jpg_stream_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic media_server vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/key_demo/main/CMakeLists.txt b/examples/key_demo/main/CMakeLists.txt index 86c1d697..b8ef1fb4 100644 --- a/examples/key_demo/main/CMakeLists.txt +++ b/examples/key_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision peripheral) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/maixcdk-example/maixcdk-example/CMakeLists.txt b/examples/maixcdk-example/maixcdk-example/CMakeLists.txt index 01ff37fb..f368ef9c 100644 --- a/examples/maixcdk-example/maixcdk-example/CMakeLists.txt +++ b/examples/maixcdk-example/maixcdk-example/CMakeLists.txt @@ -49,7 +49,7 @@ append_srcs_dir(ADD_SRCS "src") # append source file in src dir to var ADD_S # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/multi_threads/main/CMakeLists.txt b/examples/multi_threads/main/CMakeLists.txt index 1e4c4a6a..3784252a 100644 --- a/examples/multi_threads/main/CMakeLists.txt +++ b/examples/multi_threads/main/CMakeLists.txt @@ -44,7 +44,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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_classifier/main/CMakeLists.txt b/examples/nn_classifier/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_classifier/main/CMakeLists.txt +++ b/examples/nn_classifier/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_face_detector/README.md b/examples/nn_face_detector/README.md index 3457324d..79a32b67 100644 --- a/examples/nn_face_detector/README.md +++ b/examples/nn_face_detector/README.md @@ -4,7 +4,7 @@ face detect based on MaixCDK Model download from: https://maixhub.com/model/zoo/377 (face_detector https://github.com/biubug6/Face-Detector-1MB-with-landmark) - https://maixhub.com/model/zoo/378 (retinafate https://github.com/biubug6/Pytorch_Retinaface) + https://maixhub.com/model/zoo/378 (retinaface https://github.com/biubug6/Pytorch_Retinaface) diff --git a/examples/nn_face_detector/main/CMakeLists.txt b/examples/nn_face_detector/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_face_detector/main/CMakeLists.txt +++ b/examples/nn_face_detector/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_face_recognizer/README.md b/examples/nn_face_recognizer/README.md index 3457324d..79a32b67 100644 --- a/examples/nn_face_recognizer/README.md +++ b/examples/nn_face_recognizer/README.md @@ -4,7 +4,7 @@ face detect based on MaixCDK Model download from: https://maixhub.com/model/zoo/377 (face_detector https://github.com/biubug6/Face-Detector-1MB-with-landmark) - https://maixhub.com/model/zoo/378 (retinafate https://github.com/biubug6/Pytorch_Retinaface) + https://maixhub.com/model/zoo/378 (retinaface https://github.com/biubug6/Pytorch_Retinaface) diff --git a/examples/nn_face_recognizer/main/CMakeLists.txt b/examples/nn_face_recognizer/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_face_recognizer/main/CMakeLists.txt +++ b/examples/nn_face_recognizer/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_runner/main/CMakeLists.txt b/examples/nn_runner/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_runner/main/CMakeLists.txt +++ b/examples/nn_runner/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_yolov5/main/CMakeLists.txt b/examples/nn_yolov5/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_yolov5/main/CMakeLists.txt +++ b/examples/nn_yolov5/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/nn_yolov8/main/CMakeLists.txt b/examples/nn_yolov8/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/examples/nn_yolov8/main/CMakeLists.txt +++ b/examples/nn_yolov8/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/opencv_demo/main/CMakeLists.txt b/examples/opencv_demo/main/CMakeLists.txt index cc5bc8e3..5cf7ee94 100644 --- a/examples/opencv_demo/main/CMakeLists.txt +++ b/examples/opencv_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic opencv opencv_freetype) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/peripheral_gpio/main/CMakeLists.txt b/examples/peripheral_gpio/main/CMakeLists.txt index d3f518c3..2e5d5425 100644 --- a/examples/peripheral_gpio/main/CMakeLists.txt +++ b/examples/peripheral_gpio/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/peripheral_i2c_eeprom/main/CMakeLists.txt b/examples/peripheral_i2c_eeprom/main/CMakeLists.txt index 67480e24..d78a29c9 100644 --- a/examples/peripheral_i2c_eeprom/main/CMakeLists.txt +++ b/examples/peripheral_i2c_eeprom/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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/peripheral_pinmap/main/CMakeLists.txt b/examples/peripheral_pinmap/main/CMakeLists.txt index 066d461c..a21f1ae5 100755 --- a/examples/peripheral_pinmap/main/CMakeLists.txt +++ b/examples/peripheral_pinmap/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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/peripheral_pwm_servo/main/CMakeLists.txt b/examples/peripheral_pwm_servo/main/CMakeLists.txt index 67480e24..d78a29c9 100644 --- a/examples/peripheral_pwm_servo/main/CMakeLists.txt +++ b/examples/peripheral_pwm_servo/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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/peripheral_spi/main/CMakeLists.txt b/examples/peripheral_spi/main/CMakeLists.txt index 066d461c..a21f1ae5 100755 --- a/examples/peripheral_spi/main/CMakeLists.txt +++ b/examples/peripheral_spi/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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/rtmp_demo/main/CMakeLists.txt b/examples/rtmp_demo/main/CMakeLists.txt index eaf23d82..c013b8d1 100644 --- a/examples/rtmp_demo/main/CMakeLists.txt +++ b/examples/rtmp_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic media_server vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/rtsp_demo/main/CMakeLists.txt b/examples/rtsp_demo/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/rtsp_demo/main/CMakeLists.txt +++ b/examples/rtsp_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/rtsp_yolo_demo/main/CMakeLists.txt b/examples/rtsp_yolo_demo/main/CMakeLists.txt index f74540a8..6e2e49ce 100644 --- a/examples/rtsp_yolo_demo/main/CMakeLists.txt +++ b/examples/rtsp_yolo_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision nn) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/video_demo/main/CMakeLists.txt b/examples/video_demo/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/video_demo/main/CMakeLists.txt +++ b/examples/video_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/video_record_mp4/main/CMakeLists.txt b/examples/video_record_mp4/main/CMakeLists.txt index 18fc4dfc..f79dc771 100644 --- a/examples/video_record_mp4/main/CMakeLists.txt +++ b/examples/video_record_mp4/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/websocket_client/main/CMakeLists.txt b/examples/websocket_client/main/CMakeLists.txt index d0847c5f..129e19c9 100644 --- a/examples/websocket_client/main/CMakeLists.txt +++ b/examples/websocket_client/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic websocket) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/websocket_server/main/CMakeLists.txt b/examples/websocket_server/main/CMakeLists.txt index d0847c5f..129e19c9 100644 --- a/examples/websocket_server/main/CMakeLists.txt +++ b/examples/websocket_server/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic websocket) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/examples/wifi_demo/main/CMakeLists.txt b/examples/wifi_demo/main/CMakeLists.txt index dd37b2d9..c8a5757a 100644 --- a/examples/wifi_demo/main/CMakeLists.txt +++ b/examples/wifi_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS network) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_camera/main/CMakeLists.txt b/projects/app_camera/main/CMakeLists.txt index fd351f76..ea6669d2 100644 --- a/projects/app_camera/main/CMakeLists.txt +++ b/projects/app_camera/main/CMakeLists.txt @@ -42,7 +42,7 @@ list(APPEND ADD_REQUIREMENTS basic lvgl) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_classifier/main/CMakeLists.txt b/projects/app_classifier/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/projects/app_classifier/main/CMakeLists.txt +++ b/projects/app_classifier/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_detector/main/CMakeLists.txt b/projects/app_detector/main/CMakeLists.txt index 0334c61e..452f67bd 100644 --- a/projects/app_detector/main/CMakeLists.txt +++ b/projects/app_detector/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic nn vision) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_find_blobs/main/CMakeLists.txt b/projects/app_find_blobs/main/CMakeLists.txt index 7312e568..b7fc5af9 100644 --- a/projects/app_find_blobs/main/CMakeLists.txt +++ b/projects/app_find_blobs/main/CMakeLists.txt @@ -42,7 +42,7 @@ list(APPEND ADD_REQUIREMENTS basic lvgl comm) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_line_tracking/main/CMakeLists.txt b/projects/app_line_tracking/main/CMakeLists.txt index 7312e568..b7fc5af9 100644 --- a/projects/app_line_tracking/main/CMakeLists.txt +++ b/projects/app_line_tracking/main/CMakeLists.txt @@ -42,7 +42,7 @@ list(APPEND ADD_REQUIREMENTS basic lvgl comm) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/projects/app_photos/main/CMakeLists.txt b/projects/app_photos/main/CMakeLists.txt index bb40c6df..19be9844 100644 --- a/projects/app_photos/main/CMakeLists.txt +++ b/projects/app_photos/main/CMakeLists.txt @@ -35,7 +35,7 @@ list(APPEND ADD_REQUIREMENTS basic lvgl) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/test/cvi_tpu_demo/main/CMakeLists.txt b/test/cvi_tpu_demo/main/CMakeLists.txt index 65e09d43..1440a376 100644 --- a/test/cvi_tpu_demo/main/CMakeLists.txt +++ b/test/cvi_tpu_demo/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic cvi_tpu opencv) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/test/cvi_tpu_matmul/main/CMakeLists.txt b/test/cvi_tpu_matmul/main/CMakeLists.txt index e1d14365..c6402382 100644 --- a/test/cvi_tpu_matmul/main/CMakeLists.txt +++ b/test/cvi_tpu_matmul/main/CMakeLists.txt @@ -44,7 +44,7 @@ list(APPEND ADD_REQUIREMENTS basic cvi_tpu pthread) # list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) #### Add compile option for this component -#### and components denpend on this component +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ############################################### diff --git a/tools/cmake/build.py b/tools/cmake/build.py index cb18448e..3de82517 100644 --- a/tools/cmake/build.py +++ b/tools/cmake/build.py @@ -11,7 +11,7 @@ import json try: curr_dir = os.path.abspath(os.path.dirname(__file__)) except Exception: - print("-- [ERROR] Please upgrate maixtool by pip install -U maixtool") + print("-- [ERROR] Please upgrade maixtool by pip install -U maixtool") sys.exit(1) if curr_dir not in sys.path: @@ -182,7 +182,7 @@ def rebuild(build_path, configs, toolchain_info, verbose): print("\n\n---- ERROR -----") traceback.print_exc() print("----------------") - print(f"[ERROR] download for compoent [{name}] failed, please check its component.py") + print(f"[ERROR] download for component [{name}] failed, please check its component.py") sys.exit(1) # cmake @@ -300,7 +300,7 @@ if __name__ == "__main__": find_dirs = sys.argv[2:] for dir in find_dirs: if " " in dir: - raise Exception("Path can not contain space or special charactors") + raise Exception("Path can not contain space or special characters") components = get_components_dirs(find_dirs) valid_components = find_valid_components(components) print(";".join(valid_components), end="") diff --git a/tools/cmake/compile.cmake b/tools/cmake/compile.cmake index 434f6174..028bccdf 100644 --- a/tools/cmake/compile.cmake +++ b/tools/cmake/compile.cmake @@ -429,7 +429,7 @@ macro(project name) # message(FATAL_ERROR "Check Kconfig content") # endif() - # Include confiurations + # Include configurations set(global_config_dir "${PROJECT_BINARY_DIR}/config") include(${global_config_dir}/global_config.cmake) if(WIN32) @@ -502,7 +502,7 @@ macro(project name) # set(CMAKE_SYSTEM_NAME Generic) # set this flag may leads to dymamic(/shared) lib compile fail - # Declare project # This function will cler flags! + # Declare project # This function will clear flags! _project(${name} ASM C CXX) if(CMAKE_EXECUTABLE_SUFFIX STREQUAL ".js") # generate js ang html file for WASM diff --git a/tools/cmake/compile_flags.cmake b/tools/cmake/compile_flags.cmake index 3e99b03a..963375e1 100644 --- a/tools/cmake/compile_flags.cmake +++ b/tools/cmake/compile_flags.cmake @@ -8,7 +8,7 @@ set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} -Wall -fPIC) set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall -fPIC) ################################ -# set(LINK_FLAGS -Wl,-EL) # (default little edian) +# set(LINK_FLAGS -Wl,-EL) # (default little endian) set(CMAKE_C_LINK_FLAGS ${CMAKE_C_LINK_FLAGS} ${LINK_FLAGS} -Wl,-rpath=$ORIGIN/dl_lib diff --git a/tools/cmake/file_downloader.py b/tools/cmake/file_downloader.py index f58aba54..729c64e1 100644 --- a/tools/cmake/file_downloader.py +++ b/tools/cmake/file_downloader.py @@ -220,7 +220,7 @@ def check_download_items(items): if not item["filename"]: item["filename"] = os.path.basename(item["url"]) if not item["path"]: - print("-- Error: path not found in download item: {}, for example, toolchanin can be 'toolchains/board_name'".format(item)) + print("-- Error: path not found in download item: {}, for example, toolchain can be 'toolchains/board_name'".format(item)) sys.exit(1) if not "urls" in item: item["urls"] = [] @@ -283,7 +283,7 @@ def download_extract_files(items): if "sha256sum" in item and item["sha256sum"]: ok, sha256sum = check_sha256sum(pkg_path, item["sha256sum"]) if not ok: - print("-- Error: sha256sum check failed, shoule be {}, but files's sha256sum is {}.\n Please download this file manually".format(item["sha256sum"], sha256sum)) + print("-- Error: sha256sum check failed, should be {}, but files's sha256sum is {}.\n Please download this file manually".format(item["sha256sum"], sha256sum)) sys.exit(1) # extract_dir not empty means already extracted, continue need_extract = False diff --git a/tools/cmake/project.py b/tools/cmake/project.py index 25da7c18..fb7617d4 100644 --- a/tools/cmake/project.py +++ b/tools/cmake/project.py @@ -16,7 +16,7 @@ from multiprocessing import cpu_count try: curr_dir = os.path.abspath(os.path.dirname(__file__)) except Exception: - print("-- [ERROR] Please upgrate maixtool by pip install -U maixtool") + print("-- [ERROR] Please upgrade maixtool by pip install -U maixtool") sys.exit(1) sys.path.insert(0, curr_dir) diff --git a/tools/cmake/tools.cmake b/tools/cmake/tools.cmake index 2d7027e5..316b7398 100644 --- a/tools/cmake/tools.cmake +++ b/tools/cmake/tools.cmake @@ -1,6 +1,6 @@ # add prefix for all list members -# uage: prepend(out_var prefix in_var) +# usage: prepend(out_var prefix in_var) function(prepend out prefix) set(listVar "") foreach(f ${ARGN}) diff --git a/tools/doc_tool/gen_api.py b/tools/doc_tool/gen_api.py index 6271bcfa..5de7fdb0 100644 --- a/tools/doc_tool/gen_api.py +++ b/tools/doc_tool/gen_api.py @@ -711,7 +711,7 @@ if __name__ == "__main__": for r in rm: headers.remove(r) - # generate API documenation according to api_tree + # generate API documentation according to api_tree print("-- Generating MaixCDK API documentation") doc_out_dir = args.doc if not os.path.exists(doc_out_dir): diff --git a/tools/maixtool/maixtool/i18n.py b/tools/maixtool/maixtool/i18n.py index 9c139439..5c92cfb5 100644 --- a/tools/maixtool/maixtool/i18n.py +++ b/tools/maixtool/maixtool/i18n.py @@ -49,9 +49,9 @@ def get_i18n_strs(file, keywords): return strs def main(search_dir, keywords, exts, out, recursive, locales): - print("seach dir: ", dir) + print("search dir:", dir) print("keywords: ", keywords) - print("extentions:", exts) + print("extensions:", exts) print("out dir: ", out) print("") files = get_files(search_dir, recursive, exts) @@ -85,14 +85,14 @@ def main(search_dir, keywords, exts, out, recursive, locales): if __name__ == "__main__": import argparse - paser = argparse.ArgumentParser() - paser.add_argument("-k", "--keywords", nargs="+", type=str, default=["_", "tr"], help="translate function keywords to search") - paser.add_argument("-r", action="store_true", help="recursive search dir") - paser.add_argument("-e", "--exts", nargs="+", type=str, default=[".c", ".cpp", ".h", ".hpp", ".py"], help="file extention to search") - paser.add_argument("-l", "--locales", nargs="+", type=str, default=["en", "zh"], help="locals of region, like en zh ja etc. the locale name can be found in [here](https://www.science.co.il/language/Locale-codes.php) or [wikipedia](https://en.wikipedia.org/wiki/Language_localisation), all letters use lower case.") - paser.add_argument("-o", "--out", type=str, default="locales", help="translation files output directory") - paser.add_argument("-d", "--dir", type=str, help="where to search", required=True) - args = paser.parse_args() + parser = argparse.ArgumentParser() + parser.add_argument("-k", "--keywords", nargs="+", type=str, default=["_", "tr"], help="translate function keywords to search") + parser.add_argument("-r", action="store_true", help="recursive search dir") + parser.add_argument("-e", "--exts", nargs="+", type=str, default=[".c", ".cpp", ".h", ".hpp", ".py"], help="file extension to search") + parser.add_argument("-l", "--locales", nargs="+", type=str, default=["en", "zh"], help="locals of region, like en zh ja etc. the locale name can be found in [here](https://www.science.co.il/language/Locale-codes.php) or [wikipedia](https://en.wikipedia.org/wiki/Language_localisation), all letters use lower case.") + parser.add_argument("-o", "--out", type=str, default="locales", help="translation files output directory") + parser.add_argument("-d", "--dir", type=str, help="where to search", required=True) + args = parser.parse_args() main(args.dir, args.keywords, args.exts, args.out, args.r, args.locales) diff --git a/tools/project_template/main/CMakeLists.txt b/tools/project_template/main/CMakeLists.txt index 4839fe68..64361bd9 100644 --- a/tools/project_template/main/CMakeLists.txt +++ b/tools/project_template/main/CMakeLists.txt @@ -44,7 +44,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 +#### and components depend on this component # list(APPEND ADD_DEFINITIONS -DAAAAA222=1 # -DAAAAA333=1) ###############################################