linux编译错误

[复制链接]
查看377 | 回复14 | 2024-7-9 18:58:22 | 显示全部楼层 |阅读模式
./../../../../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=COM5 -DCMAKE_EXPORT_COMPILE_COMMANDS=OFF -DCONFIG_TLSF=y
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: riscv64-unknown-elf-gcc
CMake Error at /home/mrzefr/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_C_COMPILER:

    riscv64-unknown-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


CMake Error at /home/mrzefr/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_CXX_COMPILER:

    riscv64-unknown-elf-g++

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


CMake Error at /home/mrzefr/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_ASM_COMPILER:

    riscv64-unknown-elf-gcc

  is not a full path and was not found in the PATH.

  Tell CMake where to find the compiler by setting either the environment
  variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "/home/mrzefr/aithinker_Ai-M6X_SDK/examples/wifi/sta/wifi_udp/build/CMakeFiles/CMakeOutput.log".
See also "/home/mrzefr/aithinker_Ai-M6X_SDK/examples/wifi/sta/wifi_udp/build/CMakeFiles/CMakeError.log".
make: *** [../../../../project.build:50:build] 错误 1

希望各路大佬帮一下,我最近做了一个用ai-m61-32s驱动的小车,要安这个环境
回复

使用道具 举报

云梦 | 2024-7-9 19:32:11 | 显示全部楼层
进入sdk目录执行. export.sh了吗
回复 支持 反对

使用道具 举报

MrZeFr | 2024-7-9 19:36:35 | 显示全部楼层
云梦 发表于 2024-7-9 19:32
进入sdk目录执行. export.sh了吗

执行了
回复 支持 反对

使用道具 举报

MrZeFr | 2024-7-9 19:37:48 | 显示全部楼层
本帖最后由 MrZeFr 于 2024-7-9 19:41 编辑
云梦 发表于 2024-7-9 19:32
进入sdk目录执行. export.sh了吗

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: riscv64-unknown-elf-gcc
应该是因为这些找不到,能帮一下马?
回复 支持 反对

使用道具 举报

云梦 | 2024-7-9 19:42:49 | 显示全部楼层
看私聊
回复

使用道具 举报

bzhou830 | 2024-7-10 08:21:10 | 显示全部楼层
看起来编译工具链没有配置好
选择去发光,而不是被照亮
回复 支持 反对

使用道具 举报

爱笑 | 2024-7-10 08:37:06 | 显示全部楼层
马上给你抓个技术来
用心做好保姆工作
回复 支持 反对

使用道具 举报

Ai-Thinker小泽 | 2024-7-10 08:41:15 | 显示全部楼层
编译环境的问题的话,多半是脚本没执行完,去重新执行一下脚本,然后记得make clean一下
回复 支持 反对

使用道具 举报

WT_0213 | 2024-7-10 11:52:52 | 显示全部楼层
跟着学系列
回复 支持 反对

使用道具 举报

lazy | 2024-7-10 14:49:09 | 显示全部楼层
跟着大佬学
回复 支持 反对

使用道具 举报

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

本版积分规则