alibaba / AliOS-Things

面向IoT领域的、高可伸缩的物联网操作系统,可去官网了解更多信息https://www.aliyun.com/product/aliosthings
Apache License 2.0
4.59k stars 1.15k forks source link

在VS中,新建项目,老板来了人脸识别案例编译有错误 #1612

Closed gdfsytx closed 2 years ago

gdfsytx commented 2 years ago

Contact Details

gdfsytx@yeah.net

What happened?

开发板haas100,在VS中,使用C语言新建项目,老板来了人脸识别案例编译有错误

Version

master (Default)

What soultions are you seeing the problem on?

ucloud_ai_demo

Relevant log output

> Executing task: aos make <

change dir to E:\rts\aiot\c\hass100\boss3\solutions\test_demo. 
save aos make params !!!
get current path
E:\rts\aiot\c\hass100\boss3\solutions\test_demo\package.yaml
test_demo
3
configuration haas100 written to E:\rts\aiot\c\hass100\boss3\.config. 
Build Solution by haas100 
scons: Reading SConscript files ...
There is no depend component `curl` found! 
========
[{'curl': 'master ? <!CHIP_HAAS1000>'}]
1
Reverse value
lost component check : no need install this component
[]
build toolchain checked =  arm-ali-aoseabi

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\SConstruct", line 8, in <module>
install win_longcmd_spawn patch in windows. 
the script is E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\_haas1000_alios_lds.py
current dir is E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000
toolchain is C:\Users\Administrator\.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi
cflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -std=gnu11 -fno-common -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -DLASTWORD_RAM_ADDR=0x20166000 -DSYSINFO_PRODUCT_MODEL=\"ALI_AOS_HAAS100\"
cxxflag is -D_GLIBCXX_HAS_GTHREADS -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -DDISABLE_CLI_MULTI_CONSOLE=0 -std=gnu++11 -fsigned-char -fno-common -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -fpermissive -DSNTP_PERIODIC_SYNC_INTERVAL_MS=3600000 -g -Os
asmflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -c -x assembler-with-cpp -DLASTWORD_RAM_ADDR=0x20166000
ldflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -nostartfiles --specs=nosys.specs -Wl,-Map=\\\"aos.map\\\" --coverage
cpu is cortex-m33
lib is E:\rts\aiot\c\hass100\boss3\solutions\test_demo\aos_sdk\lib\libhaas1000.a
solution_dir is E:\rts\aiot\c\hass100\boss3\solutions\test_demo
comp_name is haas1000
macro_list is -DAOS_COMP_ACTIVATION="y" -DCONFIG_NETMGR_WIFI_DEBUG=1 -DCONFIG_NETMGR_WIFI_LOG_LEVEL=4 -DNETMGR_SW_VERSION="netmgr_master" -DAOS_COMP_WIFI=1 -DWIFI_SW_VERSION="wifi_master" -DCONFIG_DRV_CORE=1 -DCONFIG_DRV_PLATFORM=1 -DCONFIG_DRV_VFS=1 -DCONFIG_COM_DRV=1 -DBASE_SW_VERSION="base_master" -DAOS_COMP_VFS=1 -DVFS_CONFIG_DEVICE_NODES=50 -DVFS_CONFIG_FD_OFFSET=48 -DVFS_CONFIG_PATH_MAX=256 -DVFS_CONFIG_MAX_FILE_NUM=50 -DVFS_CONFIG_CURRENT_DIRECTORY_ENABLE=1 -DRPM_INCLUDE_DIR="fs" -DVFS_CONFIG_DEBUG=1 -DVFS_SW_VERSION="vfs_master" -DPOSIX_SW_VERSION="posix_master" -DSYSINFO_SYSTEM_VERSION="1.0.3" -DAOS_KERNEL_BUILD=1 -DOSAL_RHINO=1 -DAOS_HAL=1 -DOSAL_AOS_SW_VERSION="osal_aos_master" -DAOS_COMP_DEBUG=1 -DDEBUG_PANIC_CLI=1 -DDEBUG_PANIC_CONTEXT_IN_STACK=1 -DDEBUG_CPUUSAGE_RECODE_TO_FILE_ENABLE=0 -DDEBUG_CPUUSAGE_MAX_TASK=80 -DDEBUG_CPUUSAGE_FILE_NAME="/data/cpuusage" -DDEBUG_LAST_WORD_ENABLE=0 -DDEBUG_LOG_FILE_NUM=10 -DDEBUG_LASTWORD_RAM_ADDR=0 -DDEBUG_LASTWORD_REGION_LEN=16384 -DDEBUG_LOG_DIR_NAME="/data/crash_reports" -DDEBUG_CONFIG_LOG_FILE_NAME="/data/crash_reports/crash_report" -DDEBUG_CONFIG_LOG_FILE_INDEX="/data/crash_reports/log_file_index" -DDEBUG_ULOG_FLUSH=0 -DDEBUG_SW_VERSION="debug_master" -DAOS_COMP_LITTLEFS=1 -DLFS_STATIC_OBJECT=1 -DLITTLEFS_FORMAT=1 -DLFS_CONFIG_TRACE=0 -DLFS_CONFIG_DEBUG=0 -DLFS_CONFIG_WARN=0 -DLFS_CONFIG_ERROR=1 -DLITTLEFS_SW_VERSION="littlefs_master" -DAOS_COMP_ULOG="y" -DULOG_CONFIG_ASYNC=0 -DULOG_CONFIG_POP_UDP=0 -DULOG_CONFIG_POP_FS=0 -DULOG_CONFIG_UPLOAD=0 -DULOG_CONFIG_STOP_FILTER_CLOUD=0 -DULOG_CONFIG_STOP_FILTER_UDP=4 -DULOG_CONFIG_STOP_FILTER_FS=4 -DULOG_CONFIG_STOP_FILTER_DEFAULT=0 -DULOG_CONFIG_SYSLOG_TIME_FORMAT=0 -DULOG_CONFIG_DEFAULT_DIR_ASYNC=0 -DULOG_CONFIG_LOG_SIZE=256 -DULOG_CONFIG_ASYNC_BUF_SIZE=6114 -DULOG_SW_VERSION="ulog_master" -DAOS_COMP_USERVICE=1 -DUSERVICE_SW_VERSION="uservice_master" -DSNTP_SW_VERSION="sntp_master" -DCONFIG_AOS_LWIP=1 -DCONFIG_TCPIP=1 -DWITH_LWIP_PKTPRINT=1 -DIPERF_ENABLED=1 -DLWIP_SW_VERSION="lwip_master" -DAOS_COMP_CLI=1 -DCLI_INBUF_SIZE=256 -DCLI_OUTBUF_SIZE=512 -DCLI_MAX_COMMANDS=128 -DCLI_MAX_ARG_NUM=16 -DCLI_MAX_ONCECMD_NUM=4 -DCLI_TASK_PRIORITY=60 -DCLI_CONFIG_STACK_SIZE=8192 -DCLI_TELNET_ENABLE=0 -DCLI_UAGENT_ENABLE=0 -DCLI_SEPRATED_CONSOLE=0 -DCLI_IOBOX_ENABLE=1 -DCLI_SW_VERSION="cli_master" -DLINKSDK_SW_VERSION="linksdk_master" -DAI_AGENT_SW_VERSION="ai_agent_master" -DCONFIG_ALICLOUD_FACEBODY_ENABLE=1 -DCONFIG_ALICLOUD_IMAGERECOG_ENABLE=1 -DCONFIG_ALICLOUD_IMAGEENHAN_ENABLE=1 -DCONFIG_ALICLOUD_OBJECTDET_ENABLE=1 -DCONFIG_ALICLOUD_IMAGESEG_ENABLE=1 -DCONFIG_ALICLOUD_OCR_ENABLE=1 -DCONFIG_ALICLOUD_CHATBOT_ENABLE=1 -DUSE_CRYPTO_MBEDTLS=1 -DOSS_ACCESS_KEY="Your-Access-Key" -DOSS_ACCESS_SECRET="Your-Access-Secret" -DOSS_ENDPOINT="Your-OSS-Endpoint" -DOSS_BUCKET="Your-OSS-Bucket" -DUCLOUD_AI_SW_VERSION="ucloud_ai_master" -DUSE_AOS_TIME_POSIX_API=1 -DOSS_DEBUG=0 -DREAD_SD_SIZE_MAX="1024*15" -DOSS_DISABLE_BUCKET=1 -DOSS_DISABLE_LIVECHANNEL=1 -DOSS_DISABLE_RESUAMABLE=1 -DOSS_DISABLE_ENCRYPTION=1 -DOSS_SW_VERSION="oss_master" -DCONFIG_HTTP_FILE_OPERATE=0 -DCONFIG_HTTP_SECURE=1 -DMBEDTLS_CONFIG_TLS_MAX_CONTENT_LEN=16384 -DHTTP_SW_VERSION="http_master" -DJSONCPP_SW_VERSION="jsoncpp_master" -DCONFIG_UGRAPHICS_FORMAT=0 -DCONFIG_UGRAPHICS_ROTATE=0 -DUGRAPHICS_SW_VERSION="ugraphics_master" -D__ALIOS__=1 -DLOAD_JPG=1 -DLOAD_BMP=1 -DLOAD_PNG=1 -D__native_client__=1 -DAOS_COMP_SDL2=1 -DSDL2_SW_VERSION="SDL2_master" -DFT2_BUILD_LIBRARY="y" -DFREETYPE_SW_VERSION="freetype_master" -DAOS_COMP_UDISPLAY=1 -DUDISPLAY_SW_VERSION="udisplay_master" -DFBDEV_SW_VERSION="fbdev_master" -DCONFIG_WIFI_CAMERA_ENABLE=1 -DWIFICAMERA_URL="http://192.168.43.166:80/capture" -DWIFICAMERA_FRAME_SIZE_CONTROL_URL="http://192.168.43.166:80/control\?var=framesize\&val=5" -DUCAMERA_SW_VERSION="ucamera_master" -DCONFIG_U_SPI_DEV=1 -DCONFIG_U_SPI_CORE=0 -DSPI_SW_VERSION="spi_master" -DAOS_COMP_GPIO=1 -DCONFIG_U_GPIO_DEV=1 -DCONFIG_U_GPIO_CORE=0 -DGPIO_SW_VERSION="gpio_master" -DCONFIG_CSI="csi2" -DCSI_SW_VERSION="csi_master" -DLIBC_STUB_SW_VERSION="libc_stub_master" -DCONFIG_U_I2C_DEV=1 -DCONFIG_U_I2C_CORE=1 -DCONFIG_U_I2C_WEAK_CSI=1 -DI2C_SW_VERSION="i2c_master" -DCONFIG_EPOLL_LWIP=1 -DCONFIG_WITH_MUSL=0 -DEPOLL_SW_VERSION="epoll_master" -DAOS_COMP_FLASH=1 -DCONFIG_U_FLASH_DEV=1 -DCONFIG_U_FLASH_CORE=1 -DFLASH_SW_VERSION="flash_master" -DAOS_COMP_UART=1 -DCONFIG_U_UART_DEV=1 -DCONFIG_U_UART_CORE=0 -DUART_SW_VERSION="uart_master" -DPWM_SW_VERSION="pwm_master" -DCONFIG_U_ADC_DEV=1 -DCONFIG_U_ADC_CORE=0 -DADC_SW_VERSION="adc_master" -DCONFIG_U_TIMER_DEV=1 -DCONFIG_U_TIMER_CORE=0 -DTIMER_SW_VERSION="timer_master" -DCONFIG_U_WDG_DEV=1 -DCONFIG_U_WDG_CORE=1 -DWATCHDOG_SW_VERSION="watchdog_master" -DINIT_SW_VERSION="init_master" -DAOS_COMP_KV=1 -DKV_SW_VERSION="kv_master" -DCONFIG_KERNEL_WORKQUEUE=1 -DCONFIG_SYSTICK_HZ=1000 -DCONFIG_KERNEL_RHINO=1 -DRHINO_CONFIG_MM_TLF=1 -DRHINO_CONFIG_MM_MINISIZEBIT=6 -DRHINO_CONFIG_MM_MAXMSIZEBIT=28 -DRHINO_CONFIG_MM_QUICK=0 -DRHINO_CONFIG_MM_REGION_MUTEX=0 -DRHINO_CONFIG_MM_DEBUG=0 -DRHINO_CONFIG_MM_BLK=1 -DRHINO_CONFIG_MM_BLK_SIZE=256 -DRHINO_CONFIG_MM_TLF_BLK_SIZE=2048 -DRHINO_CONFIG_MM_TRACE_LVL=0 -DRHINO_SW_VERSION="rhino_master" -DILI9341_SW_VERSION="ili9341_master" -DARMV8M_SW_VERSION="armv8m_master" -DCHIP_HAAS1000=1 -DSWD_ENABLE_AS_DEFAULT=1 -DCONFIG_LWIP_VERSION="lwip2.0.0" -DCONFIG_LWIP_V200="y" -D__FPU_PRESENT=1 -DCMSIS_DSP_LIB=1 -DCMSIS_NN_LIB=1 -DSPEECH_LIB=1 -DCONFIG_ADC_NUM=3 -DCONFIG_DAC_NUM=0 -DCONFIG_GPIO_NUM=42 -DCONFIG_U_PWM_DEV=1 -DCONFIG_U_PWM_CORE=1 -DCONFIG_I2C_NUM=2 -DCONFIG_PWM_NUM=4 -DCONFIG_QSPI_NUM=0 -DCONFIG_SPI_NUM=2 -DCONFIG_TIMER_NUM=1 -DCONFIG_UART_NUM=3 -DSUPPORT_SET_DRIVER_TRACE_FLAG=1 -DAOS_CONFIG_GPIOC_CSI=1 -D__AP_MODE__=1 -DCONFIG_DM=0 -DCONFIG_KWS_AI_ENGINE_ENABLE=1 -DHAAS1000_SW_VERSION="haas1000_master" -DBOARD_HAAS100=1 -DSTDIO_UART=0 -DRHINO_CONFIG_TICKS_PER_SECOND=1000 -DWITH_LWIP=1 -DPOSIX_DEVICE_IO_NEED=1 -DAOS_2ND_BOOT_NO_LDS=1 -DAOS_2ND_BOOT_AB=1 -DAOS_2ND_BOOT_LATER_ERASE=1 -DCONFIG_NETMGR_V2=1 -DCONFIG_A7_DSP_ENABLE=0 -DSYSINFO_PRODUCT_MODEL="ALI_AOS_HAAS100" -DSYSINFO_DEVICE_NAME="HAAS100" -DSYSINFO_ARCH="Cortex-M4F" -DSYSINFO_MCU="haas1000" -DSYSINFO_BOARD="haas100" -DOS_CLOCK_NOMINAL=16000 -DCONFIG_LITTLEFS_CNT=1 -DCONFIG_LFS_MOUNTPOINT="/data" -DCONFIG_LFS_PROG_SIZE=1024 -DCONFIG_LFS_PAGE_NUM_PER_BLOCK=4 -DCONFIG_LFS_BLOCK_NUMS=1198 -DMTD_PART_ID_BOOT=0 -DMTD_PART_ID_ENV2=1 -DMTD_PART_ID_2ND_BOOT=2 -DMTD_PART_ID_KERNEL=3 -DMTD_PART_ID_2ND_BOOT2=4 -DMTD_PART_ID_KERNEL2=5 -DMTD_PART_ID_FS=6 -DMTD_PART_ID_BOOT_SEC=7 -DMTD_PART_ID_ENV=8 -DMTD_PART_ID_KV=9 -DMTD_PART_ID_FACTORY=10 -DHAAS100_SW_VERSION="haas100_master" -DCONFIG_UCLOUD_AI_ENGINE_ENABLE=1 -DCONFIG_ALICLOUD_OSS_ENABLE=1 -DPRODUCT_KEY="Your-Product-Key" -DRODUCT_SECRET="Your-Product-Secret" -DDEVICE_NAME="Your-Device-Name" -DDEVICE_SECRET="Your-Device-Secret" -DMYFACE_PATH="http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/CompareFace/CompareFace-left1.png" -DTEST_DEMO_SW_VERSION="test_demo_master" -DMULTITHREADS="-j12" -D__AOS_CPU__="CORTEX-M33" -D__AOS_ARCH__="arm" -D__ARCH_ARM__=1 -D__CPU_CORTEXM33__=1 -D__AOS_VENDOR__="ALIBABA IOT" -D__AOS_CHIP__="HAAS1000" -D__AOS_BOARD__="HAAS100" -D__AOS_CHIP_PATH__="E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000" -D__AOS_BOARD_PATH__="E:\rts\aiot\c\hass100\boss3\hardware\board\haas100" -D__AOS_SOLUTION_PATH__="E:\rts\aiot\c\hass100\boss3\solutions\test_demo" -DFD_SETSIZE=64 -DSELECT_SW_VERSION="select_master" -DMBEDTLS_CIPHER_MODE_CFB=1 -DMBEDTLS_SW_VERSION="mbedtls_master" -DCJSON_SW_VERSION="cjson_master" -DAOS_COMP_CPLUSPLUS="y" -DCPLUSPLUS_SW_VERSION="cplusplus_master" -DCONFIG_AOS_FATFS_SUPPORT_MMC=1 -DAOS_COMP_FATFS=1 -DFATFS_SW_VERSION="fatfs_master"
global_inc is "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\netdev/include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\net/include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\wifi\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\core\base\include" "E:\rts\aiot\c\hass100\boss3\components\vfs\include/" "E:\rts\aiot\c\hass100\boss3\components\posix\include" "E:\rts\aiot\c\hass100\boss3\components\osal_aos\include" "E:\rts\aiot\c\hass100\boss3\kernel\rhino\include" "E:\rts\aiot\c\hass100\boss3\components\debug\include/" "E:\rts\aiot\c\hass100\boss3\components\littlefs\include" "E:\rts\aiot\c\hass100\boss3\components\ulog\include" "E:\rts\aiot\c\hass100\boss3\components\uservice\include" "E:\rts\aiot\c\hass100\boss3\components\sntp\include" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/include" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/include/posix" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/port/include" "E:\rts\aiot\c\hass100\boss3\components\cli\include/" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core/utils" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core/sysdep" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/bootstrap" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/data-model" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/subdev" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/devinfo" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/mqtt-upload" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/dynreg" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/ntp" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\include" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/flatbuffers/include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/gemmlowp/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/ruy/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/CMSIS/DSP/Include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/kissfft/" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/core/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/core/src" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/facebody/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imagerecog/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imageseg/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imageenhan/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/objectdet/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/ocr/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\./" "E:\rts\aiot\c\hass100\boss3\components\oss\include" "E:\rts\aiot\c\hass100\boss3\components\oss\src" "E:\rts\aiot\c\hass100\boss3\components\http\internal" "E:\rts\aiot\c\hass100\boss3\components\http\include" "E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include" "E:\rts\aiot\c\hass100\boss3\components\jsoncpp\src/lib_json/" "E:\rts\aiot\c\hass100\boss3\components\ugraphics\include" "E:\rts\aiot\c\hass100\boss3\components\SDL2\include" "E:\rts\aiot\c\hass100\boss3\components\SDL2\src/ttf" "E:\rts\aiot\c\hass100\boss3\components\SDL2\src/image" "E:\rts\aiot\c\hass100\boss3\components\freetype\include" "E:\rts\aiot\c\hass100\boss3\components\udisplay\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\core\fbdev\include" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include/device/wifi" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include/device/uart" "E:\rts\aiot\c\hass100\boss3\components\drivers\external_device\ili9341\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\spi\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\gpio\include" "E:\rts\aiot\c\hass100\boss3\components\csi\csi2/include" "E:\rts\aiot\c\hass100\boss3\hardware\board\haas100\drivers/" "E:\rts\aiot\c\hass100\boss3\hardware\board\haas100\config/" "E:\rts\aiot\c\hass100\boss3\components\libc_stub\compilers/gcc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\hal/2ndboot/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\aos/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\aos/arch/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/hal/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/cmsis/inc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/rtos/rhino/cmsis/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/utils/hwtimer_list/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/hal/haas1000/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/wifi_app/alsa_adapter/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/multimedia/speech/inc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/a7_dsp/common/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/utils/heap/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/net/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/rtos/rhino/kernel/include/network/" "E:\rts\aiot\c\hass100\boss3\hardware\arch\armv8m\include/" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\i2c\include" "E:\rts\aiot\c\hass100\boss3\components\epoll\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\flash\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\uart\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\pwm\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\adc\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\timer\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\watchdog\include" "E:\rts\aiot\c\hass100\boss3\components\init\include/" "E:\rts\aiot\c\hass100\boss3\components\kv\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\select\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/yoc/include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/aos/include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\cjson\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\cplusplus\include" "E:\rts\aiot\c\hass100\boss3\components\cplusplus\./" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\fatfs\include"
C:\\Users\\Administrator\\.aliot\\arm-ali-aoseabi\\main\\bin\\arm-ali-aoseabi-gcc -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -std=gnu11 -fno-common -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -DLASTWORD_RAM_ADDR=0x20166000 -DSYSINFO_PRODUCT_MODEL=\"ALI_AOS_HAAS100\" --specs=nosys.specs -imacros macro_defines.h -E -D__ARM__  -D__ALIGN__=4 -P E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000/_haas1000_alios.c -o E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000/_haas1000_alios.lds
In file included from <command-line>:
./macro_defines.h:990:24: warning: missing terminating " character
  990 | #define DEVICE_NAME    "Your
      |                        ^
./macro_defines.h:994:26: warning: missing terminating " character
  994 | #define DEVICE_SECRET    "Your
      |                          ^
run external script success
Run script 'python "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\_haas1000_alios_lds.py" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\out\haas1000_prebuild.txt" ' success 
comp_path:
E:\rts\aiot\c\hass100\boss3\solutions\test_demo
Delete /data/ai_demo_image firstly
Delete /data/font firstly
run external script success
Run script 'python "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\cp_resources.py" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\out\test_demo_prebuild.txt" ' success
scons: done reading SConscript files.
scons: Building targets ...
scons: `aos_sdk\lib\libnetmgr.a' is up to date.
scons: `aos_sdk\lib\libwifi.a' is up to date.
scons: `aos_sdk\lib\libbase.a' is up to date.
scons: `aos_sdk\lib\libvfs.a' is up to date.
scons: `aos_sdk\lib\libposix.a' is up to date.
scons: `aos_sdk\lib\libosal_aos.a' is up to date.
scons: `aos_sdk\lib\librhino.a' is up to date.
scons: `aos_sdk\lib\libdebug.a' is up to date.
scons: `aos_sdk\lib\liblittlefs.a' is up to date.
scons: `aos_sdk\lib\libulog.a' is up to date.
scons: `aos_sdk\lib\libuservice.a' is up to date.
scons: `aos_sdk\lib\libsntp.a' is up to date.
scons: `aos_sdk\lib\liblwip.a' is up to date.
scons: `aos_sdk\lib\libcli.a' is up to date.
scons: `aos_sdk\lib\liblinksdk.a' is up to date.
CC out\ai_agent\src\engine\kws_engine.o
In file included from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/facebody.h:8,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/common.h:10,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/ucloud_ai_common.h:7,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\include/aiagent_common.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\include/aiagent_engine.h:9,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:7:
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/internal.h:16: warning: "OSS_ENDPOINT" redefined
   16 | #define OSS_ENDPOINT "oss-cn-shanghai.aliyuncs.com"
      |
<command-line>: note: this is the location of the previous definition
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'callback_main':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:34:31: error: cast to union type from type not present in union
   34 |                 eng->callback((ai_result_t)&kws_ret);
      |                               ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'kws_engine_init':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:69:37: warning: passing argument 1 of 'set_a7_cmd_callback_handler' from incompatible pointer type [-Wincompatible-pointer-types]
   69 |         set_a7_cmd_callback_handler(my_kws_process);
      |                                     ^~~~~~~~~~~~~~
      |                                     |
      |                                     void (*)(uint8_t *, uint32_t) {aka void (*)(unsigned char *, unsigned int)}
In file included from E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/aud_dump.h:19,
                 from E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/mcu_audio.h:18,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:5:
E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/a7_cmd.h:57:53: note: expected 'a7_cmd_callback_t' {aka 'void (*)(char *, int)'} but argument is of type 'void (*)(uint8_t *, uint32_t)' {aka 'void (*)(unsigned char *, unsigned int)'}
   57 | void set_a7_cmd_callback_handler (a7_cmd_callback_t callback);
      |                                   ~~~~~~~~~~~~~~~~~~^~~~~~~~
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'kws_engine_create':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:143:27: warning: assignment to 'void (*)(struct _aiagent_engine_t *)' from incompatible pointer type 'int32_t (*)(aiagent_engine_t *)' {aka 'int (*)(struct _aiagent_engine_t *)'} [-Wincompatible-pointer-types]
  143 |     eng->ai_engine_uninit = kws_engine_uninit;
      |                           ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:144:27: warning: assignment to 'void (*)(struct _aiagent_engine_t *)' from incompatible pointer type 'int32_t (*)(aiagent_engine_t *)' {aka 'int (*)(struct _aiagent_engine_t *)'} [-Wincompatible-pointer-types]
  144 |     eng->ai_engine_config = kws_engine_config;
      |                           ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: At top level:
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:153:5: warning: initialization of 'int (*)(void)' from incompatible pointer type '_Bool (*)(void)' [-Wincompatible-pointer-types]
  153 |     kws_engine_available, kws_engine_create
      |     ^~~~~~~~~~~~~~~~~~~~
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:153:5: note: (near initialization for 'kws_engine.available')
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Error.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Executor.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HmacSha1Signer.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpClient.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpMessage.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpRequest.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpResponse.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\NetworkProxy.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Outcome.o
scons: *** [out\ai_agent\src\engine\kws_engine.o] Error 1
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\RoaServiceClient.o
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc: In member function 'void AlibabaCloud::InstanceProfileCredentialsProvider::loadCredentials()':
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:58:20: warning: 'Reader' is deprecated: Use CharReader and CharReaderBuilder instead. [-Wdeprecated-declarations]
   58 |       Json::Reader reader;
      |                    ^~~~~~
In file included from E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/json.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:22:
E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/reader.h:37:63: note: declared here
   37 |     "Use CharReader and CharReaderBuilder instead.") JSON_API Reader {
      |                                                               ^~~~~~
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:58:20: warning: 'Json::Reader::Reader()' is deprecated: Use CharReader and CharReaderBuilder instead [-Wdeprecated-declarations]
   58 |       Json::Reader reader;
      |                    ^~~~~~
In file included from E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/json.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:22:
E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/reader.h:56:3: note: declared here
   56 |   Reader();
      |   ^~~~~~
scons: building terminated because of errors.
make: *** [all] Error 2
Build takes 0 Minutes 15 Seconds.

终端将被任务重用,按任意键关闭。
skylarCai commented 2 years ago
感谢您提出的宝贵问题,我们有7x24小时服务的“HaaS百事通”客服系统,
您可以先尝试能否解决您的问题(https://haas.iot.aliyun.com/?ask=1&f=a2cre.b82925042)

如果“HaaS百事通”没有解决您的问题,请回复“人工支持”,我们会在工作日(10:00-12:00/14:00-18:00)10分钟内回复您。
QingjiangXu commented 2 years ago

详细的使用方法需要看案例里面的README.md文档。

比如下面的"" 需要替换成你自己的设备信息

/开发者需要在此更换你的三元组信息:产品key、secret、设备名称、设备密钥/

define PRODUCT_KEY ""

define PRODUCT_SECRET ""

define DEVICE_NAME ""

define DEVICE_SECRET ""

如果你再遇到问题,请继续回复

QingjiangXu commented 2 years ago

Contact Details

gdfsytx@yeah.net

What happened?

开发板haas100,在VS中,使用C语言新建项目,老板来了人脸识别案例编译有错误

Version

master (Default)

What soultions are you seeing the problem on?

ucloud_ai_demo

Relevant log output

> Executing task: aos make <

change dir to E:\rts\aiot\c\hass100\boss3\solutions\test_demo. 
save aos make params !!!
get current path
E:\rts\aiot\c\hass100\boss3\solutions\test_demo\package.yaml
test_demo
3
configuration haas100 written to E:\rts\aiot\c\hass100\boss3\.config. 
Build Solution by haas100 
scons: Reading SConscript files ...
There is no depend component `curl` found! 
========
[{'curl': 'master ? <!CHIP_HAAS1000>'}]
1
Reverse value
lost component check : no need install this component
[]
build toolchain checked =  arm-ali-aoseabi

scons: warning: No version of Visual Studio compiler found - C/C++ compilers most likely not set correctly
File "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\SConstruct", line 8, in <module>
install win_longcmd_spawn patch in windows. 
the script is E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\_haas1000_alios_lds.py
current dir is E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000
toolchain is C:\Users\Administrator\.aliot\arm-ali-aoseabi\main\bin\arm-ali-aoseabi
cflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -std=gnu11 -fno-common -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -DLASTWORD_RAM_ADDR=0x20166000 -DSYSINFO_PRODUCT_MODEL=\"ALI_AOS_HAAS100\"
cxxflag is -D_GLIBCXX_HAS_GTHREADS -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -DDISABLE_CLI_MULTI_CONSOLE=0 -std=gnu++11 -fsigned-char -fno-common -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -fpermissive -DSNTP_PERIODIC_SYNC_INTERVAL_MS=3600000 -g -Os
asmflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -c -x assembler-with-cpp -DLASTWORD_RAM_ADDR=0x20166000
ldflag is -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -nostartfiles --specs=nosys.specs -Wl,-Map=\\\"aos.map\\\" --coverage
cpu is cortex-m33
lib is E:\rts\aiot\c\hass100\boss3\solutions\test_demo\aos_sdk\lib\libhaas1000.a
solution_dir is E:\rts\aiot\c\hass100\boss3\solutions\test_demo
comp_name is haas1000
macro_list is -DAOS_COMP_ACTIVATION="y" -DCONFIG_NETMGR_WIFI_DEBUG=1 -DCONFIG_NETMGR_WIFI_LOG_LEVEL=4 -DNETMGR_SW_VERSION="netmgr_master" -DAOS_COMP_WIFI=1 -DWIFI_SW_VERSION="wifi_master" -DCONFIG_DRV_CORE=1 -DCONFIG_DRV_PLATFORM=1 -DCONFIG_DRV_VFS=1 -DCONFIG_COM_DRV=1 -DBASE_SW_VERSION="base_master" -DAOS_COMP_VFS=1 -DVFS_CONFIG_DEVICE_NODES=50 -DVFS_CONFIG_FD_OFFSET=48 -DVFS_CONFIG_PATH_MAX=256 -DVFS_CONFIG_MAX_FILE_NUM=50 -DVFS_CONFIG_CURRENT_DIRECTORY_ENABLE=1 -DRPM_INCLUDE_DIR="fs" -DVFS_CONFIG_DEBUG=1 -DVFS_SW_VERSION="vfs_master" -DPOSIX_SW_VERSION="posix_master" -DSYSINFO_SYSTEM_VERSION="1.0.3" -DAOS_KERNEL_BUILD=1 -DOSAL_RHINO=1 -DAOS_HAL=1 -DOSAL_AOS_SW_VERSION="osal_aos_master" -DAOS_COMP_DEBUG=1 -DDEBUG_PANIC_CLI=1 -DDEBUG_PANIC_CONTEXT_IN_STACK=1 -DDEBUG_CPUUSAGE_RECODE_TO_FILE_ENABLE=0 -DDEBUG_CPUUSAGE_MAX_TASK=80 -DDEBUG_CPUUSAGE_FILE_NAME="/data/cpuusage" -DDEBUG_LAST_WORD_ENABLE=0 -DDEBUG_LOG_FILE_NUM=10 -DDEBUG_LASTWORD_RAM_ADDR=0 -DDEBUG_LASTWORD_REGION_LEN=16384 -DDEBUG_LOG_DIR_NAME="/data/crash_reports" -DDEBUG_CONFIG_LOG_FILE_NAME="/data/crash_reports/crash_report" -DDEBUG_CONFIG_LOG_FILE_INDEX="/data/crash_reports/log_file_index" -DDEBUG_ULOG_FLUSH=0 -DDEBUG_SW_VERSION="debug_master" -DAOS_COMP_LITTLEFS=1 -DLFS_STATIC_OBJECT=1 -DLITTLEFS_FORMAT=1 -DLFS_CONFIG_TRACE=0 -DLFS_CONFIG_DEBUG=0 -DLFS_CONFIG_WARN=0 -DLFS_CONFIG_ERROR=1 -DLITTLEFS_SW_VERSION="littlefs_master" -DAOS_COMP_ULOG="y" -DULOG_CONFIG_ASYNC=0 -DULOG_CONFIG_POP_UDP=0 -DULOG_CONFIG_POP_FS=0 -DULOG_CONFIG_UPLOAD=0 -DULOG_CONFIG_STOP_FILTER_CLOUD=0 -DULOG_CONFIG_STOP_FILTER_UDP=4 -DULOG_CONFIG_STOP_FILTER_FS=4 -DULOG_CONFIG_STOP_FILTER_DEFAULT=0 -DULOG_CONFIG_SYSLOG_TIME_FORMAT=0 -DULOG_CONFIG_DEFAULT_DIR_ASYNC=0 -DULOG_CONFIG_LOG_SIZE=256 -DULOG_CONFIG_ASYNC_BUF_SIZE=6114 -DULOG_SW_VERSION="ulog_master" -DAOS_COMP_USERVICE=1 -DUSERVICE_SW_VERSION="uservice_master" -DSNTP_SW_VERSION="sntp_master" -DCONFIG_AOS_LWIP=1 -DCONFIG_TCPIP=1 -DWITH_LWIP_PKTPRINT=1 -DIPERF_ENABLED=1 -DLWIP_SW_VERSION="lwip_master" -DAOS_COMP_CLI=1 -DCLI_INBUF_SIZE=256 -DCLI_OUTBUF_SIZE=512 -DCLI_MAX_COMMANDS=128 -DCLI_MAX_ARG_NUM=16 -DCLI_MAX_ONCECMD_NUM=4 -DCLI_TASK_PRIORITY=60 -DCLI_CONFIG_STACK_SIZE=8192 -DCLI_TELNET_ENABLE=0 -DCLI_UAGENT_ENABLE=0 -DCLI_SEPRATED_CONSOLE=0 -DCLI_IOBOX_ENABLE=1 -DCLI_SW_VERSION="cli_master" -DLINKSDK_SW_VERSION="linksdk_master" -DAI_AGENT_SW_VERSION="ai_agent_master" -DCONFIG_ALICLOUD_FACEBODY_ENABLE=1 -DCONFIG_ALICLOUD_IMAGERECOG_ENABLE=1 -DCONFIG_ALICLOUD_IMAGEENHAN_ENABLE=1 -DCONFIG_ALICLOUD_OBJECTDET_ENABLE=1 -DCONFIG_ALICLOUD_IMAGESEG_ENABLE=1 -DCONFIG_ALICLOUD_OCR_ENABLE=1 -DCONFIG_ALICLOUD_CHATBOT_ENABLE=1 -DUSE_CRYPTO_MBEDTLS=1 -DOSS_ACCESS_KEY="Your-Access-Key" -DOSS_ACCESS_SECRET="Your-Access-Secret" -DOSS_ENDPOINT="Your-OSS-Endpoint" -DOSS_BUCKET="Your-OSS-Bucket" -DUCLOUD_AI_SW_VERSION="ucloud_ai_master" -DUSE_AOS_TIME_POSIX_API=1 -DOSS_DEBUG=0 -DREAD_SD_SIZE_MAX="1024*15" -DOSS_DISABLE_BUCKET=1 -DOSS_DISABLE_LIVECHANNEL=1 -DOSS_DISABLE_RESUAMABLE=1 -DOSS_DISABLE_ENCRYPTION=1 -DOSS_SW_VERSION="oss_master" -DCONFIG_HTTP_FILE_OPERATE=0 -DCONFIG_HTTP_SECURE=1 -DMBEDTLS_CONFIG_TLS_MAX_CONTENT_LEN=16384 -DHTTP_SW_VERSION="http_master" -DJSONCPP_SW_VERSION="jsoncpp_master" -DCONFIG_UGRAPHICS_FORMAT=0 -DCONFIG_UGRAPHICS_ROTATE=0 -DUGRAPHICS_SW_VERSION="ugraphics_master" -D__ALIOS__=1 -DLOAD_JPG=1 -DLOAD_BMP=1 -DLOAD_PNG=1 -D__native_client__=1 -DAOS_COMP_SDL2=1 -DSDL2_SW_VERSION="SDL2_master" -DFT2_BUILD_LIBRARY="y" -DFREETYPE_SW_VERSION="freetype_master" -DAOS_COMP_UDISPLAY=1 -DUDISPLAY_SW_VERSION="udisplay_master" -DFBDEV_SW_VERSION="fbdev_master" -DCONFIG_WIFI_CAMERA_ENABLE=1 -DWIFICAMERA_URL="http://192.168.43.166:80/capture" -DWIFICAMERA_FRAME_SIZE_CONTROL_URL="http://192.168.43.166:80/control\?var=framesize\&val=5" -DUCAMERA_SW_VERSION="ucamera_master" -DCONFIG_U_SPI_DEV=1 -DCONFIG_U_SPI_CORE=0 -DSPI_SW_VERSION="spi_master" -DAOS_COMP_GPIO=1 -DCONFIG_U_GPIO_DEV=1 -DCONFIG_U_GPIO_CORE=0 -DGPIO_SW_VERSION="gpio_master" -DCONFIG_CSI="csi2" -DCSI_SW_VERSION="csi_master" -DLIBC_STUB_SW_VERSION="libc_stub_master" -DCONFIG_U_I2C_DEV=1 -DCONFIG_U_I2C_CORE=1 -DCONFIG_U_I2C_WEAK_CSI=1 -DI2C_SW_VERSION="i2c_master" -DCONFIG_EPOLL_LWIP=1 -DCONFIG_WITH_MUSL=0 -DEPOLL_SW_VERSION="epoll_master" -DAOS_COMP_FLASH=1 -DCONFIG_U_FLASH_DEV=1 -DCONFIG_U_FLASH_CORE=1 -DFLASH_SW_VERSION="flash_master" -DAOS_COMP_UART=1 -DCONFIG_U_UART_DEV=1 -DCONFIG_U_UART_CORE=0 -DUART_SW_VERSION="uart_master" -DPWM_SW_VERSION="pwm_master" -DCONFIG_U_ADC_DEV=1 -DCONFIG_U_ADC_CORE=0 -DADC_SW_VERSION="adc_master" -DCONFIG_U_TIMER_DEV=1 -DCONFIG_U_TIMER_CORE=0 -DTIMER_SW_VERSION="timer_master" -DCONFIG_U_WDG_DEV=1 -DCONFIG_U_WDG_CORE=1 -DWATCHDOG_SW_VERSION="watchdog_master" -DINIT_SW_VERSION="init_master" -DAOS_COMP_KV=1 -DKV_SW_VERSION="kv_master" -DCONFIG_KERNEL_WORKQUEUE=1 -DCONFIG_SYSTICK_HZ=1000 -DCONFIG_KERNEL_RHINO=1 -DRHINO_CONFIG_MM_TLF=1 -DRHINO_CONFIG_MM_MINISIZEBIT=6 -DRHINO_CONFIG_MM_MAXMSIZEBIT=28 -DRHINO_CONFIG_MM_QUICK=0 -DRHINO_CONFIG_MM_REGION_MUTEX=0 -DRHINO_CONFIG_MM_DEBUG=0 -DRHINO_CONFIG_MM_BLK=1 -DRHINO_CONFIG_MM_BLK_SIZE=256 -DRHINO_CONFIG_MM_TLF_BLK_SIZE=2048 -DRHINO_CONFIG_MM_TRACE_LVL=0 -DRHINO_SW_VERSION="rhino_master" -DILI9341_SW_VERSION="ili9341_master" -DARMV8M_SW_VERSION="armv8m_master" -DCHIP_HAAS1000=1 -DSWD_ENABLE_AS_DEFAULT=1 -DCONFIG_LWIP_VERSION="lwip2.0.0" -DCONFIG_LWIP_V200="y" -D__FPU_PRESENT=1 -DCMSIS_DSP_LIB=1 -DCMSIS_NN_LIB=1 -DSPEECH_LIB=1 -DCONFIG_ADC_NUM=3 -DCONFIG_DAC_NUM=0 -DCONFIG_GPIO_NUM=42 -DCONFIG_U_PWM_DEV=1 -DCONFIG_U_PWM_CORE=1 -DCONFIG_I2C_NUM=2 -DCONFIG_PWM_NUM=4 -DCONFIG_QSPI_NUM=0 -DCONFIG_SPI_NUM=2 -DCONFIG_TIMER_NUM=1 -DCONFIG_UART_NUM=3 -DSUPPORT_SET_DRIVER_TRACE_FLAG=1 -DAOS_CONFIG_GPIOC_CSI=1 -D__AP_MODE__=1 -DCONFIG_DM=0 -DCONFIG_KWS_AI_ENGINE_ENABLE=1 -DHAAS1000_SW_VERSION="haas1000_master" -DBOARD_HAAS100=1 -DSTDIO_UART=0 -DRHINO_CONFIG_TICKS_PER_SECOND=1000 -DWITH_LWIP=1 -DPOSIX_DEVICE_IO_NEED=1 -DAOS_2ND_BOOT_NO_LDS=1 -DAOS_2ND_BOOT_AB=1 -DAOS_2ND_BOOT_LATER_ERASE=1 -DCONFIG_NETMGR_V2=1 -DCONFIG_A7_DSP_ENABLE=0 -DSYSINFO_PRODUCT_MODEL="ALI_AOS_HAAS100" -DSYSINFO_DEVICE_NAME="HAAS100" -DSYSINFO_ARCH="Cortex-M4F" -DSYSINFO_MCU="haas1000" -DSYSINFO_BOARD="haas100" -DOS_CLOCK_NOMINAL=16000 -DCONFIG_LITTLEFS_CNT=1 -DCONFIG_LFS_MOUNTPOINT="/data" -DCONFIG_LFS_PROG_SIZE=1024 -DCONFIG_LFS_PAGE_NUM_PER_BLOCK=4 -DCONFIG_LFS_BLOCK_NUMS=1198 -DMTD_PART_ID_BOOT=0 -DMTD_PART_ID_ENV2=1 -DMTD_PART_ID_2ND_BOOT=2 -DMTD_PART_ID_KERNEL=3 -DMTD_PART_ID_2ND_BOOT2=4 -DMTD_PART_ID_KERNEL2=5 -DMTD_PART_ID_FS=6 -DMTD_PART_ID_BOOT_SEC=7 -DMTD_PART_ID_ENV=8 -DMTD_PART_ID_KV=9 -DMTD_PART_ID_FACTORY=10 -DHAAS100_SW_VERSION="haas100_master" -DCONFIG_UCLOUD_AI_ENGINE_ENABLE=1 -DCONFIG_ALICLOUD_OSS_ENABLE=1 -DPRODUCT_KEY="Your-Product-Key" -DRODUCT_SECRET="Your-Product-Secret" -DDEVICE_NAME="Your-Device-Name" -DDEVICE_SECRET="Your-Device-Secret" -DMYFACE_PATH="http://viapi-test.oss-cn-shanghai.aliyuncs.com/viapi-3.0domepic/facebody/CompareFace/CompareFace-left1.png" -DTEST_DEMO_SW_VERSION="test_demo_master" -DMULTITHREADS="-j12" -D__AOS_CPU__="CORTEX-M33" -D__AOS_ARCH__="arm" -D__ARCH_ARM__=1 -D__CPU_CORTEXM33__=1 -D__AOS_VENDOR__="ALIBABA IOT" -D__AOS_CHIP__="HAAS1000" -D__AOS_BOARD__="HAAS100" -D__AOS_CHIP_PATH__="E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000" -D__AOS_BOARD_PATH__="E:\rts\aiot\c\hass100\boss3\hardware\board\haas100" -D__AOS_SOLUTION_PATH__="E:\rts\aiot\c\hass100\boss3\solutions\test_demo" -DFD_SETSIZE=64 -DSELECT_SW_VERSION="select_master" -DMBEDTLS_CIPHER_MODE_CFB=1 -DMBEDTLS_SW_VERSION="mbedtls_master" -DCJSON_SW_VERSION="cjson_master" -DAOS_COMP_CPLUSPLUS="y" -DCPLUSPLUS_SW_VERSION="cplusplus_master" -DCONFIG_AOS_FATFS_SUPPORT_MMC=1 -DAOS_COMP_FATFS=1 -DFATFS_SW_VERSION="fatfs_master"
global_inc is "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\netdev/include" "E:\rts\aiot\c\hass100\boss3\components\netmgr\net/include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\wifi\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\core\base\include" "E:\rts\aiot\c\hass100\boss3\components\vfs\include/" "E:\rts\aiot\c\hass100\boss3\components\posix\include" "E:\rts\aiot\c\hass100\boss3\components\osal_aos\include" "E:\rts\aiot\c\hass100\boss3\kernel\rhino\include" "E:\rts\aiot\c\hass100\boss3\components\debug\include/" "E:\rts\aiot\c\hass100\boss3\components\littlefs\include" "E:\rts\aiot\c\hass100\boss3\components\ulog\include" "E:\rts\aiot\c\hass100\boss3\components\uservice\include" "E:\rts\aiot\c\hass100\boss3\components\sntp\include" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/include" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/include/posix" "E:\rts\aiot\c\hass100\boss3\components\lwip\lwip2.0.0/port/include" "E:\rts\aiot\c\hass100\boss3\components\cli\include/" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core/utils" "E:\rts\aiot\c\hass100\boss3\components\linksdk\core/sysdep" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/bootstrap" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/data-model" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/subdev" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/devinfo" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/mqtt-upload" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/dynreg" "E:\rts\aiot\c\hass100\boss3\components\linksdk\components/ntp" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\include" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/flatbuffers/include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/gemmlowp/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/ruy/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/cmsis/CMSIS/DSP/Include/" "E:\rts\aiot\c\hass100\boss3\components\ai_agent\src/engine/tflite-micro/third_party/kissfft/" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/core/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/core/src" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/facebody/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imagerecog/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imageseg/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/imageenhan/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/objectdet/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src/model/aliyun-openapi/ocr/include" "E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\./" "E:\rts\aiot\c\hass100\boss3\components\oss\include" "E:\rts\aiot\c\hass100\boss3\components\oss\src" "E:\rts\aiot\c\hass100\boss3\components\http\internal" "E:\rts\aiot\c\hass100\boss3\components\http\include" "E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include" "E:\rts\aiot\c\hass100\boss3\components\jsoncpp\src/lib_json/" "E:\rts\aiot\c\hass100\boss3\components\ugraphics\include" "E:\rts\aiot\c\hass100\boss3\components\SDL2\include" "E:\rts\aiot\c\hass100\boss3\components\SDL2\src/ttf" "E:\rts\aiot\c\hass100\boss3\components\SDL2\src/image" "E:\rts\aiot\c\hass100\boss3\components\freetype\include" "E:\rts\aiot\c\hass100\boss3\components\udisplay\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\core\fbdev\include" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include/device/wifi" "E:\rts\aiot\c\hass100\boss3\components\ucamera\include/device/uart" "E:\rts\aiot\c\hass100\boss3\components\drivers\external_device\ili9341\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\spi\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\gpio\include" "E:\rts\aiot\c\hass100\boss3\components\csi\csi2/include" "E:\rts\aiot\c\hass100\boss3\hardware\board\haas100\drivers/" "E:\rts\aiot\c\hass100\boss3\hardware\board\haas100\config/" "E:\rts\aiot\c\hass100\boss3\components\libc_stub\compilers/gcc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\hal/2ndboot/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\aos/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\aos/arch/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/hal/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/cmsis/inc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/rtos/rhino/cmsis/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/utils/hwtimer_list/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/platform/hal/haas1000/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/wifi_app/alsa_adapter/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/multimedia/speech/inc/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/services/a7_dsp/common/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/utils/heap/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/net/" "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers/rtos/rhino/kernel/include/network/" "E:\rts\aiot\c\hass100\boss3\hardware\arch\armv8m\include/" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\i2c\include" "E:\rts\aiot\c\hass100\boss3\components\epoll\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\flash\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\uart\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\pwm\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\adc\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\timer\include" "E:\rts\aiot\c\hass100\boss3\components\drivers\peripheral\watchdog\include" "E:\rts\aiot\c\hass100\boss3\components\init\include/" "E:\rts\aiot\c\hass100\boss3\components\kv\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\select\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/yoc/include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/aos/include" "E:\rts\aiot\c\hass100\boss3\components\mbedtls\platform/include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\cjson\include" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\cplusplus\include" "E:\rts\aiot\c\hass100\boss3\components\cplusplus\./" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\include" "E:\rts\aiot\c\hass100\boss3\components\fatfs\include"
C:\\Users\\Administrator\\.aliot\\arm-ali-aoseabi\\main\\bin\\arm-ali-aoseabi-gcc -mthumb -mcpu=cortex-m33 -mfpu=fpv5-sp-d16 -mfloat-abi=hard -g -Os -DSECURE_BOOT -DHAAS_OTA_ENABLED=1 -DHAAS_OTA_BIN_VER=\"HAAS_AOS_3.1\" -DCHIP=haas1000 -DKERNEL=RHINO -DCHIP_HAAS1000_ARCH_ENHANCE -DCHIP_HAAS1000 -DMIC_SAMPLERATE=48000 -DMIC_PERIOD_MS=48 -DFLASH_SIZE=0x1000000 -DCRASH_DUMP_SECTION_SIZE=0 -DAUD_SECTION_SIZE=0 -DUSERDATA_SECTION_SIZE=0x1000 -DFACTORY_SECTION_SIZE=0x1000 -DNV_REC_DEV_VER=2 -DREVISION_INFO=x -DCHIP_HAS_UART=3 -DRESAMPLE_ANY_SAMPLE_RATE -DCHIP_HAS_TRANSQ -DRTOS=1 -DCQ_FUNC_ATTR= -DDEBUG=1 -DREL_TRACE_ENABLE -DLWIP_ETHERNETIF=1 -DLWIP_SUPPORT=0 -DPERSIST_DATA_SECTION_SIZE=0x1000 -std=gnu11 -fno-common -fmessage-length=0 -fno-exceptions -ffunction-sections -fdata-sections -fomit-frame-pointer -DLASTWORD_RAM_ADDR=0x20166000 -DSYSINFO_PRODUCT_MODEL=\"ALI_AOS_HAAS100\" --specs=nosys.specs -imacros macro_defines.h -E -D__ARM__  -D__ALIGN__=4 -P E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000/_haas1000_alios.c -o E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000/_haas1000_alios.lds
In file included from <command-line>:
./macro_defines.h:990:24: warning: missing terminating " character
  990 | #define DEVICE_NAME    "Your
      |                        ^
./macro_defines.h:994:26: warning: missing terminating " character
  994 | #define DEVICE_SECRET    "Your
      |                          ^
run external script success
Run script 'python "E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\_haas1000_alios_lds.py" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\out\haas1000_prebuild.txt" ' success 
comp_path:
E:\rts\aiot\c\hass100\boss3\solutions\test_demo
Delete /data/ai_demo_image firstly
Delete /data/font firstly
run external script success
Run script 'python "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\cp_resources.py" "E:\rts\aiot\c\hass100\boss3\solutions\test_demo\out\test_demo_prebuild.txt" ' success
scons: done reading SConscript files.
scons: Building targets ...
scons: `aos_sdk\lib\libnetmgr.a' is up to date.
scons: `aos_sdk\lib\libwifi.a' is up to date.
scons: `aos_sdk\lib\libbase.a' is up to date.
scons: `aos_sdk\lib\libvfs.a' is up to date.
scons: `aos_sdk\lib\libposix.a' is up to date.
scons: `aos_sdk\lib\libosal_aos.a' is up to date.
scons: `aos_sdk\lib\librhino.a' is up to date.
scons: `aos_sdk\lib\libdebug.a' is up to date.
scons: `aos_sdk\lib\liblittlefs.a' is up to date.
scons: `aos_sdk\lib\libulog.a' is up to date.
scons: `aos_sdk\lib\libuservice.a' is up to date.
scons: `aos_sdk\lib\libsntp.a' is up to date.
scons: `aos_sdk\lib\liblwip.a' is up to date.
scons: `aos_sdk\lib\libcli.a' is up to date.
scons: `aos_sdk\lib\liblinksdk.a' is up to date.
CC out\ai_agent\src\engine\kws_engine.o
In file included from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/facebody.h:8,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/common.h:10,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/ucloud_ai_common.h:7,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\include/aiagent_common.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\include/aiagent_engine.h:9,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:7:
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\include/model/internal.h:16: warning: "OSS_ENDPOINT" redefined
   16 | #define OSS_ENDPOINT "oss-cn-shanghai.aliyuncs.com"
      |
<command-line>: note: this is the location of the previous definition
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'callback_main':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:34:31: error: cast to union type from type not present in union
   34 |                 eng->callback((ai_result_t)&kws_ret);
      |                               ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'kws_engine_init':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:69:37: warning: passing argument 1 of 'set_a7_cmd_callback_handler' from incompatible pointer type [-Wincompatible-pointer-types]
   69 |         set_a7_cmd_callback_handler(my_kws_process);
      |                                     ^~~~~~~~~~~~~~
      |                                     |
      |                                     void (*)(uint8_t *, uint32_t) {aka void (*)(unsigned char *, unsigned int)}
In file included from E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/aud_dump.h:19,
                 from E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/mcu_audio.h:18,
                 from E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:5:
E:\rts\aiot\c\hass100\boss3\hardware\chip\haas1000\drivers\services\a7_dsp\common/a7_cmd.h:57:53: note: expected 'a7_cmd_callback_t' {aka 'void (*)(char *, int)'} but argument is of type 'void (*)(uint8_t *, uint32_t)' {aka 'void (*)(unsigned char *, unsigned int)'}
   57 | void set_a7_cmd_callback_handler (a7_cmd_callback_t callback);
      |                                   ~~~~~~~~~~~~~~~~~~^~~~~~~~
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: In function 'kws_engine_create':
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:143:27: warning: assignment to 'void (*)(struct _aiagent_engine_t *)' from incompatible pointer type 'int32_t (*)(aiagent_engine_t *)' {aka 'int (*)(struct _aiagent_engine_t *)'} [-Wincompatible-pointer-types]
  143 |     eng->ai_engine_uninit = kws_engine_uninit;
      |                           ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:144:27: warning: assignment to 'void (*)(struct _aiagent_engine_t *)' from incompatible pointer type 'int32_t (*)(aiagent_engine_t *)' {aka 'int (*)(struct _aiagent_engine_t *)'} [-Wincompatible-pointer-types]
  144 |     eng->ai_engine_config = kws_engine_config;
      |                           ^
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c: At top level:
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:153:5: warning: initialization of 'int (*)(void)' from incompatible pointer type '_Bool (*)(void)' [-Wincompatible-pointer-types]
  153 |     kws_engine_available, kws_engine_create
      |     ^~~~~~~~~~~~~~~~~~~~
E:\rts\aiot\c\hass100\boss3\components\ai_agent\src\engine\kws_engine.c:153:5: note: (near initialization for 'kws_engine.available')
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Error.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Executor.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HmacSha1Signer.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpClient.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpMessage.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpRequest.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\HttpResponse.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\NetworkProxy.o
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\Outcome.o
scons: *** [out\ai_agent\src\engine\kws_engine.o] Error 1
CXX out\ucloud_ai\src\model\aliyun-openapi\core\src\RoaServiceClient.o
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc: In member function 'void AlibabaCloud::InstanceProfileCredentialsProvider::loadCredentials()':
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:58:20: warning: 'Reader' is deprecated: Use CharReader and CharReaderBuilder instead. [-Wdeprecated-declarations]
   58 |       Json::Reader reader;
      |                    ^~~~~~
In file included from E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/json.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:22:
E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/reader.h:37:63: note: declared here
   37 |     "Use CharReader and CharReaderBuilder instead.") JSON_API Reader {
      |                                                               ^~~~~~
E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:58:20: warning: 'Json::Reader::Reader()' is deprecated: Use CharReader and CharReaderBuilder instead [-Wdeprecated-declarations]
   58 |       Json::Reader reader;
      |                    ^~~~~~
In file included from E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/json.h:11,
                 from E:\rts\aiot\c\hass100\boss3\components\ucloud_ai\src\model\aliyun-openapi\core\src\InstanceProfileCredentialsProvider.cc:22:
E:\rts\aiot\c\hass100\boss3\components\jsoncpp\include/json/reader.h:56:3: note: declared here
   56 |   Reader();
      |   ^~~~~~
scons: building terminated because of errors.
make: *** [all] Error 2
Build takes 0 Minutes 15 Seconds.

终端将被任务重用,按任意键关闭。

请问下您试的结果怎样,如果没有问题的话,我们就讲这个close了?

gdfsytx commented 2 years ago

我是直接使用案例的,除了修改三元组信息,其他都没有修改,然后编译,但还是有上面的错误产生,你们自己生成一个老板来了的案例编译看看,是不是也有这个错误

QingjiangXu commented 2 years ago

给您带来困扰,深感歉意。 为了不阻碍您的试用,麻烦手动注释掉一行代码。 hardware/chip/haas1000/package.yaml中189行

CONFIG_KWS_AI_ENGINE_ENABLE: 1 (前面加# 表示注释这行)

然后在下面点“清理”, 再点“编译”

最终的patch我们会在近期提交,感谢您的试用

YiluMao commented 2 years ago

@gdfsytx 请问您的问题有没有被解决,如果没有进一步问题,请帮忙把问题close掉

skylarCai commented 2 years ago

This issue has not been updated for a while, so we close this issue. If you have further request, please reopen it or add it. We will response as soon as possible.

本issue因太久未更新而关闭,如果您还有进一步的问题,请reopen本issue,或者新开一个issue,我们会尽快回复您。