零基础搭建小安派Linux开发环境之【编译运行Hello world】

[复制链接]
wzh823 | 2023-12-12 15:19:17 | 显示全部楼层
编译 helloworld 时,错误提示缺少 lwip/dns.h:

[ 97%] Built target libc
make[1]: *** [Makefile:91: all] Error 2
make: *** [../../project.build:73: build] Error 2
wzh@USER-20230518XF:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/examples/helloworld$ make
./../../tools/cmake/bin/cmake -S . -B build -G "Unix Makefiles" -DCROSS_COMPILE=riscv64-unknown-elf- -DCHIP=bl616 -DCPU_ID= -DBOARD=bl616dk -DBOARD_DIR= -DCONFIG_DEBUG=y -DCONFIG_ROMAPI=y -DCONFIG_USB_HS=y -DCONFIG_COMX=/dev/ttyUSB0 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- [register library : libc], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/mm
-- [register library : utils], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/utils
-- [register library : lhal], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- Configuring done
-- Generating done
-- Build files have been written to: /mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/examples/helloworld/build
make -C build -j8
[  0%] Building C object CMakeFiles/app.dir/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c.o
[  3%] Built target mm
[  8%] Built target utils
[ 22%] Built target std
[ 86%] Built target lhal
[ 96%] Built target libc
/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c:11:10: fatal error: lwip/dns.h: No such file or directory
   11 | #include "lwip/dns.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[3]: *** [CMakeFiles/app.dir/build.make:76: CMakeFiles/app.dir/mnt/e/project/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:482: CMakeFiles/app.dir/all] Error 2
make[1]: *** [Makefile:91: all] Error 2
make: *** [../../project.build:73: build] Error 2
回复 支持 2 反对 0

使用道具 举报

ianian13524 | 2023-12-30 23:15:21 | 显示全部楼层
wzh823 发表于 2023-12-12 15:19
编译 helloworld 时,错误提示缺少 lwip/dns.h:

[ 97%] Built target libc

遇到同样问题
回复 支持 反对

使用道具 举报

sansui | 2024-1-24 21:56:59 | 显示全部楼层
666
回复

使用道具 举报

知行合一 | 2024-1-25 11:13:33 | 显示全部楼层
回复

使用道具 举报

起个名字好难啊 | 2024-1-27 23:09:57 | 显示全部楼层

找到/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/bsp/board/bl616dk/board.c 把提示的头文件注释掉就行了
回复 支持 反对

使用道具 举报

知行合一 | 2024-2-10 15:25:44 | 显示全部楼层
回复

使用道具 举报

7788 | 2024-2-24 17:51:02 | 显示全部楼层
回复

使用道具 举报

Sssnnn | 2024-4-9 19:36:15 | 显示全部楼层
打卡
回复

使用道具 举报

axkkj | 2024-4-23 19:02:29 | 显示全部楼层
打卡学习
回复

使用道具 举报

无信之迷茫 | 2024-5-5 20:50:31 | 显示全部楼层
yangguoyi 发表于 2023-8-19 14:57
一直卡在这里git submodule update是什么原因,也改过子模块的路径了

我也卡这里不动啊
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则