完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
neptune开发板,neptunt-hARMony-os1.1-iot-master源码,测试wifi_connect_demo.c时,无法编译。但是测试wifi_scan_demo.c这个样本时,编译通过,并且能够下载到开发板中,能够得到scan后的wifi地址,按照说明更改BUILD.gn后,添加wifi_cnnect_demo.c后,编译无法通过,提示报警“./../applications/sample/wifi-iot/app/wifi/wifi_connect_demo.c:39:28: fatal error: lwip/api_shell.h: No such file or directory”,这个问题如何解决?
下面是build.log 信息: WARNING at the command-line "--args":1:339: Build argument has no effect. ohos_build_compiler_specified="gcc" product_path="/home/wxd/Projects/neptune-harmony-os1.1-iot-master/vendor/winnermicro/neptune" device_path="/home/wxd/Projects/neptune-harmony-os1.1-iot-master/device/winnermicro/neptune/sdk_liteos" ohos_kernel_type="liteos_m" ohos_build_type="debug" ohos_build_time="1640210744417" ohos_build_datetime="2021-12-23 14:05:44" ohos_full_compile=true ^-------------------- The variable "ohos_build_datetime" was set as a build argument but never appeared in a declare_args() block in any buildfile. To view all possible args, run "gn args --list The build continued as if that argument was unspecified. Done. Made 78 targets from 63 files in 195ms ninja: Entering directory `/home/wxd/Projects/neptune-harmony-os1.1-iot-master/out/neptune/wifiiot_neptune' [1/394] gcc cross compiler obj/applications/sample/wifi-iot/app/demolink/libexample_demolink.helloworld.o ../../../applications/sample/wifi-iot/app/demolink/helloworld.c: In function ‘DemoSdkMain’: ../../../applications/sample/wifi-iot/app/demolink/helloworld.c:22:5: warning: implicit declaration of function ‘printf’ [-Wimplicit-function-declaration] printf("start test task ........"); ^~~~~~ [2/394] gcc cross compiler obj/applications/sample/wifi-iot/app/iothardware/libgpio_example.gpio_example.o [3/394] AR libs/libexample_demolink.a [4/394] AR libs/libgpio_example.a [5/394] gcc cross compiler obj/applications/sample/wifi-iot/app/wifi/libwifi_demo.wifi_connect_demo.o FAILED: obj/applications/sample/wifi-iot/app/wifi/libwifi_demo.wifi_connect_demo.o csky-abiv2-elf-gcc -D_XOPEN_SOURCE=700 -DOHOS_DEBUG -D__LITEOS__ -D__LITEOS_M__ -I../../../utils/native/lite/include -I../../../kernel/liteos_m/components/cmsis/2.0 -I../../../base/iot_hardware/interfaces/kits/wifiiot_lite -I../../../foundation/communication/interfaces/kits/wifi_lite/wifiservice -I../../../vendor/hisi/hi3861/hi3861/third_party/lwip_sack/include -I../../../foundation/communication/wifi_lite/interfaces/wifiservice -I../../../kernel/liteos_m/components/bounds_checking_function/include -I../../../kernel/liteos_m/kal -I../../../kernel/liteos_m/kal/cmsis -I../../../kernel/liteos_m/kernel/include -I../../../kernel/liteos_m/targets/csky_ck804ef_w800_gcc -I../../../kernel/liteos_m/utils -I../../../utils/native/lite/include -I../../../third_party/mbedtls/include -I../../../kernel/liteos_m/kal/posix/include -I../../../device/winnermicro/neptune/sdk_liteos/include -I../../../device/winnermicro/neptune/sdk_liteos/include/los -I../../../device/winnermicro/neptune/sdk_liteos/include/wifi -I../../../device/winnermicro/neptune/sdk_liteos/include/platform -I../../../device/winnermicro/neptune/sdk_liteos/include/arch/xt804 -I../../../device/winnermicro/neptune/sdk_liteos/include/arch/xt804/csi_core -I../../../device/winnermicro/neptune/sdk_liteos/include/net -I../../../device/winnermicro/neptune/sdk_liteos/include/driver -I../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include -I../../../device/winnermicro/neptune/sdk_liteos/include/app -I../../../device/winnermicro/neptune/sdk_liteos/include/os -Os -falign-functions=2 -std=c99 -Wextra -Wall -mhard-float -mcpu=ck804ef -Os -fno-schedule-insns -Wpointer-arith -fdata-sections -mcpu=ck804ef -nostdlib -fno-common -fno-builtin -fno-strict-aliasing -Wall -fsigned-char -std=c99 -c ../../../applications/sample/wifi-iot/app/wifi/wifi_connect_demo.c -o obj/applications/sample/wifi-iot/app/wifi/libwifi_demo.wifi_connect_demo.o In file included from ../../../device/winnermicro/neptune/sdk_liteos/include/os/wm_osal.h:17:0, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/arch/sys_arch.h:5, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/lwip/sys.h:95, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/lwip/netifapi.h:39, from ../../../applications/sample/wifi-iot/app/wifi/wifi_connect_demo.c:38: ../../../device/winnermicro/neptune/sdk_liteos/include/arch/xt804/csi_core/core_804.h: In function ‘csi_coret_config’: ../../../device/winnermicro/neptune/sdk_liteos/include/arch/xt804/csi_core/core_804.h:961:67: warning: unused parameter ‘IRQn’ [-Wunused-parameter] __STATIC_INLINE uint32_t csi_coret_config(uint32_t ticks, int32_t IRQn) ^~~~ In file included from ../../../device/winnermicro/neptune/sdk_liteos/include/net/wm_sockets.h:13:0, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/lwip/ip_addr.h:45, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/lwip/netif.h:46, from ../../../device/winnermicro/neptune/sdk_liteos/src/network/lwip2.0.3/include/lwip/netifapi.h:40, from ../../../applications/sample/wifi-iot/app/wifi/wifi_connect_demo.c:38: ../../../device/winnermicro/neptune/sdk_liteos/include/net/wm_sockets2.0.3.h: At top level: ../../../device/winnermicro/neptune/sdk_liteos/include/net/wm_sockets2.0.3.h:471:20: warning: ‘struct timeval’ declared inside parameter list will not be visible outside of this definition or declaration struct timeval *timeout); ^~~~~~~ ../../../applications/sample/wifi-iot/app/wifi/wifi_connect_demo.c:39:28: fatal error: lwip/api_shell.h: No such file or directory #include "lwip/api_shell.h" ^ compilation terminated. [6/394] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_event.o [7/394] gcc cross compiler obj/base/hiviewdfx/hilog_lite/frameworks/mini/libhilog_lite.hiview_log.o [8/394] gcc cross compiler obj/base/hiviewdfx/hiview_lite/libhiview_lite.hiview_cache.o [9/394] gcc cross compiler obj/base/hiviewdfx/hilog_lite/command/libhilog_lite_command.hilog_lite_command.o [10/394] gcc cross compiler obj/base/hiviewdfx/hievent_lite/frameworks/libhievent_lite.hiview_output_event.o ninja: build stopped: subcommand failed. |
|
相关推荐
1个回答
|
|
wifi_cnnect_demo.c,这个你怎么些的,截图看看呢。
|
|
|
|
只有小组成员才能发言,加入小组>>
2241个成员聚集在这个小组
加入小组HiSpark IPC AI摄像头(Hi3518E)串口能输入输出吗?
1093 浏览 1 评论
【星闪派物联网开发套件体验连载】使用Dockerfile搭建润和WS63E的开发环境
1816 浏览 1 评论
【星闪派物联网开发套件体验连载】用HiHope星闪server端BearPi星闪client端互相发代码控制对方板载灯
1714 浏览 0 评论
【星闪派物联网开发套件体验连载】用HiHope星闪server端发代码控制BearPi
1276 浏览 0 评论
【星闪派物联网开发套件体验连载】智能交通灯--云端查看,远程控制视频
1590 浏览 0 评论
12630浏览 10评论
2023浏览 3评论
1673浏览 2评论
1486浏览 2评论
1514浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-4-6 10:54 , Processed in 0.395882 second(s), Total 41, Slave 36 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191
|