移植阿里云esp32 C_SDK 出现的问题idf4.4

goodname
Posts: 1
Joined: Mon May 10, 2021 6:38 am

移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby goodname » Mon May 10, 2021 6:48 am

错误代码:
Executing action: menuconfig
Running cmake in directory /home/esp/esp/station/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/esp/esp/station"...
-- Found Git: /usr/bin/git (found version "2.30.2")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/esp/.espressif/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project is not inside a git repository, or git repository has no commits; will not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32
Cannot parse CMake requirements line: __component_set_property(___idf_LinkSDK REQUIRES "mbedtls;cxx;newlib;freertos;esp_hw_support;heap;log;lwip;soc;hal;esp_rom;esp_common;esp_system;esp32")

CMake Error at /home/esp/esp/esp-idf/tools/cmake/component.cmake:243 (message):
Call Stack (most recent call first):
/home/esp/esp/esp-idf/tools/cmake/build.cmake:487 (__component_get_requirements)
/home/esp/esp/esp-idf/tools/cmake/project.cmake:361 (idf_build_process)
CMakeLists.txt:6 (project)
-- Configuring incomplete, errors occurred!
See also "/home/esp/esp/station/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1



LinkSDK的CMakeLists.txt
9 idf_component_register(SRCS "core/*.c"
8 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ "core/utils/*.c"
7 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ "core/sysdep/*.c"
6 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ "portfiles/aiot_port/*.c"
5 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ "external/*.c"
4 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊INCLUDE_DIRS core
3 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊INCLUDE_DIRS core/sysdep
2 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊INCLUDE_DIRS core/utils
1 ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊ ┊REQUIRES mbedtls)
10

tree
.
├── ChangeLog.md
├── CMakeLists.txt
├── components
│   ├── bootstrap
│   │   ├── aiot_bootstrap_api.c
│   │   ├── aiot_bootstrap_api.h
│   │   ├── bootstrap_private.h
│   │   └── README.md
│   ├── data-model
│   │   ├── aiot_dm_api.c
│   │   ├── aiot_dm_api.h
│   │   ├── dm_private.h
│   │   └── README.md
│   ├── devinfo
│   │   ├── aiot_devinfo_api.c
│   │   ├── aiot_devinfo_api.h
│   │   ├── devinfo_private.h
│   │   └── README.md
│   ├── diag
│   │   ├── aiot_diag_api.c
│   │   ├── aiot_diag_api.h
│   │   ├── diag_private.h
│   │   └── README.md
│   ├── logpost
│   │   ├── aiot_logpost_api.c
│   │   ├── aiot_logpost_api.h
│   │   ├── logpost_private.h
│   │   └── README.md
│   ├── ntp
│   │   ├── aiot_ntp_api.c
│   │   ├── aiot_ntp_api.h
│   │   ├── ntp_private.h
│   │   └── README.md
│   ├── ota
│   │   ├── aiot_ota_api.c
│   │   ├── aiot_ota_api.h
│   │   ├── ota_md5.c
│   │   ├── ota_md5.h
│   │   ├── ota_private.h
│   │   └── README.md
│   ├── remote-access
│   │   ├── aiot_ra_api.c
│   │   ├── aiot_ra_api.h
│   │   ├── aiot_ra_private.h
│   │   ├── COPYING
│   │   ├── NOTICE
│   │   └── src
│   │   ├── nopoll
│   │   │   ├── include
│   │   │   │   ├── nopoll_config.h
│   │   │   │   ├── nopoll_conn.h
│   │   │   │   ├── nopoll_conn_opts.h
│   │   │   │   ├── nopoll_ctx.h
│   │   │   │   ├── nopoll_decl.h
│   │   │   │   ├── nopoll.h
│   │   │   │   ├── nopoll_handlers.h
│   │   │   │   ├── nopoll_log.h
│   │   │   │   ├── nopoll_msg.h
│   │   │   │   └── nopoll_private.h
│   │   │   ├── library
│   │   │   │   ├── nopoll.c
│   │   │   │   ├── nopoll_conn.c
│   │   │   │   ├── nopoll_conn_opts.c
│   │   │   │   ├── nopoll_ctx.c
│   │   │   │   ├── nopoll_decl.c
│   │   │   │   ├── nopoll_log.c
│   │   │   │   └── nopoll_msg.c
│   │   │   └── makefile
│   │   ├── ra_buffer_mgr.c
│   │   ├── ra_buffer_mgr.h
│   │   ├── ra_proxy_channel.c
│   │   ├── ra_proxy_channel.h
│   │   ├── ra_proxy_protocol.c
│   │   ├── ra_proxy_protocol.h
│   │   ├── ra_proxy_thread.c
│   │   ├── ra_proxy_thread.h
│   │   ├── ra_proxy_trans.c
│   │   ├── ra_proxy_trans.h
│   │   ├── ra_session_mgr.c
│   │   └── ra_session_mgr.h
│   ├── shadow
│   │   ├── aiot_shadow_api.c
│   │   ├── aiot_shadow_api.h
│   │   ├── README.md
│   │   └── shadow_private.h
│   ├── subdev
│   │   ├── aiot_subdev_api.c
│   │   ├── aiot_subdev_api.h
│   │   ├── cJSON.c
│   │   ├── cJSON.h
│   │   ├── README.md
│   │   └── subdev_private.h
│   └── task
│   ├── aiot_task_api.c
│   ├── aiot_task_api.h
│   ├── README.md
│   └── task_private.h
├── core
│   ├── aiot_http_api.h
│   ├── aiot_mqtt_api.c
│   ├── aiot_mqtt_api.h
│   ├── aiot_state_api.c
│   ├── aiot_state_api.h
│   ├── aiot_sysdep_api.h
│   ├── README.md
│   ├── sysdep
│   │   ├── core_adapter.c
│   │   ├── core_adapter.h
│   │   ├── core_stdinc.h
│   │   ├── core_sysdep.c
│   │   └── core_sysdep.h
│   └── utils
│   ├── core_auth.c
│   ├── core_auth.h
│   ├── core_diag.c
│   ├── core_diag.h
│   ├── core_global.c
│   ├── core_global.h
│   ├── core_http.c
│   ├── core_http.h
│   ├── core_list.h
│   ├── core_log.c
│   ├── core_log.h
│   ├── core_mqtt.h
│   ├── core_sha256.c
│   ├── core_sha256.h
│   ├── core_string.c
│   └── core_string.h
├── external
│   ├── ali_ca_cert.c
│   ├── mbedtls
│   │   ├── include
│   │   │   └── mbedtls
│   │   │   ├── aes.h
│   │   │   ├── asn1.h
│   │   │   ├── base64.h
│   │   │   ├── bignum.h
│   │   │   ├── bn_mul.h
│   │   │   ├── check_config.h
│   │   │   ├── cipher.h
│   │   │   ├── cipher_internal.h
│   │   │   ├── config.h
│   │   │   ├── ctr_drbg.h
│   │   │   ├── debug.h
│   │   │   ├── des.h
│   │   │   ├── ecp.h
│   │   │   ├── entropy.h
│   │   │   ├── entropy_poll.h
│   │   │   ├── error.h
│   │   │   ├── md5.h
│   │   │   ├── md.h
│   │   │   ├── md_internal.h
│   │   │   ├── net.h
│   │   │   ├── net_sockets.h
│   │   │   ├── oid.h
│   │   │   ├── pem.h
│   │   │   ├── pk.h
│   │   │   ├── pk_internal.h
│   │   │   ├── platform.h
│   │   │   ├── rsa.h
│   │   │   ├── sha1.h
│   │   │   ├── sha256.h
│   │   │   ├── ssl_ciphersuites.h
│   │   │   ├── ssl_cookie.h
│   │   │   ├── ssl.h
│   │   │   ├── ssl_internal.h
│   │   │   ├── timing.h
│   │   │   ├── x509_crl.h
│   │   │   ├── x509_crt.h
│   │   │   └── x509.h
│   │   └── library
│   │   ├── aes.c
│   │   ├── asn1parse.c
│   │   ├── base64.c
│   │   ├── bignum.c
│   │   ├── cipher.c
│   │   ├── cipher_wrap.c
│   │   ├── ctr_drbg.c
│   │   ├── debug.c
│   │   ├── entropy.c
│   │   ├── entropy_poll.c
│   │   ├── error.c
│   │   ├── md.c
│   │   ├── md_wrap.c
│   │   ├── net_sockets.c
│   │   ├── oid.c
│   │   ├── pem.c
│   │   ├── pk.c
│   │   ├── pkparse.c
│   │   ├── pk_wrap.c
│   │   ├── platform.c
│   │   ├── rsa.c
│   │   ├── sha1.c
│   │   ├── sha256.c
│   │   ├── ssl_ciphersuites.c
│   │   ├── ssl_cli.c
│   │   ├── ssl_cookie.c
│   │   ├── ssl_tls.c
│   │   ├── timing.c
│   │   ├── x509.c
│   │   └── x509_crt.c
│   └── README.md
├── Makefile
└── portfiles
├── aiot_port
│   ├── posix_port.c
│   └── posix_port.c(8266)
└── README.md

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby ESP_Gargamel » Mon May 10, 2021 7:15 am

你可以参考 https://github.com/espressif/esp-aliyun 来做,估计是 CMakeLists.txt 没写太正确。或者你把你当前的 sample project 推到 github 或 gitee。

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby ESP_Gargamel » Mon May 10, 2021 7:32 am

https://help.aliyun.com/document_detail ... 3d6b8gc9qk 阿里那边不是已经有移植的介绍了么。

梦笑真美123
Posts: 3
Joined: Fri May 21, 2021 1:21 am

Re: 移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby 梦笑真美123 » Fri May 21, 2021 1:24 am

解决了吗,我基于阿里云官方的移植方法也报错

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: 移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby ESP_YJM » Thu Jun 10, 2021 12:07 pm

建议先按照官方提供的版本进行移植,保证官方的方法是有效的。如果还是不行,可以提交代码至github或者 gitee,我们帮忙分析。

TomYeee
Posts: 2
Joined: Thu Apr 27, 2023 9:08 am

Re: 移植阿里云esp32 C_SDK 出现的问题idf4.4

Postby TomYeee » Thu Apr 27, 2023 9:15 am

ESP_YJM wrote:
Thu Jun 10, 2021 12:07 pm
建议先按照官方提供的版本进行移植,保证官方的方法是有效的。如果还是不行,可以提交代码至github或者 gitee,我们帮忙分析。
按照阿里云官方的文档https://help.aliyun.com/document_detail/163759.html?spm=a2c4g.182038.0.i3,进项 SDK 移植,所有操作均按照文档,ESP32S3 + vscode+idf( v5.0.1),报错显示是官方提供的posix_port.c该文件出现各种问题,请问具体应该怎么操作?

Who is online

Users browsing this forum: No registered users and 3 guests