零基础搭建小安派Windows 开发环境

  [复制链接]
linyu777 | 2023-11-12 13:49:40 | 显示全部楼层
QRSKF 发表于 2023-11-12 00:56
参考这个 http://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=42129&_dsign=f70da3b5

没效果
回复 支持 反对

使用道具 举报

X安派9527 | 2023-11-12 13:58:06 | 显示全部楼层
PS E:\xiaoanpai\AiPi-Open-Kits\AiPi-Eyes_weather> make
./../aithinker_Ai-M6X_SDK/tools/cmake/bin/cmake.exe -S . -B build -G "MinGW 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 : mbedtls], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/crypto/mbedtls
-- [register library : lvgl], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/graphics/lvgl
-- [register library : libc], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/libc
-- [register library : mm], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/mm
-- [register library : lwip], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/net/lwip/lwip
-- [register library : dhcpd], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/net/lwip/lwip_apps/dhcpd
-- [register library : ping], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/net/lwip/lwip_apps/ping
-- [register library : freertos], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/os/freertos
-- [register library : utils], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/utils
-- [register extern library : libwifi6], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/wireless/wifi6
-- [register library : bl6_os_adapter], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/wireless/wifi6/bl6_os_adapter
-- [register library : easyflash4], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/components/easyflash4
-- [register library : lhal], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libcsi_xt900p32f_dsp], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register extern library : libpka], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/lhal
-- [register library : std], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/std
-- [register extern library : librf], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/soc/bl616/rf
-- [register library : rfparam], path:E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/drivers/rfparam
-- Configuring done
You have changed variables that require your cache to be deleted.
Configure will be re-run and you may have to reset some variables.
The following variables have changed:
CMAKE_C_COMPILER= riscv64-unknown-elf-gcc.exe
CMAKE_CXX_COMPILER= riscv64-unknown-elf-g++.exe
CMAKE_ASM_COMPILER= riscv64-unknown-elf-gcc.exe
CMAKE_ASM_COMPILER= riscv64-unknown-elf-gcc.exe
CMAKE_C_COMPILER= riscv64-unknown-elf-gcc.exe
CMAKE_CXX_COMPILER= riscv64-unknown-elf-g++.exe

-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Found assembler: gcc.exe
CMake Error at E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_C_COMPILER:

    gcc.exe

  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 E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_CXX_COMPILER:

    g++.exe

  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 E:/xiaoanpai/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/cmake/bouffalo_sdk-config.cmake:31 (enable_language):
  The CMAKE_ASM_COMPILER:

    gcc.exe

  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.
  CMakeLists.txt:5 (find_package)


-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
See also "E:/xiaoanpai/AiPi-Open-Kits/AiPi-Eyes_weather/build/CMakeFiles/CMakeOutput.log".
See also "E:/xiaoanpai/AiPi-Open-Kits/AiPi-Eyes_weather/build/CMakeFiles/CMakeError.log".
make: *** [../aithinker_Ai-M6X_SDK/project.build:72: build] Error 1
PS E:\xiaoanpai\AiPi-Open-Kits\AiPi-Eyes_weather>  riscv64-unknown-elf-gcc -v   
Using built-in specs.
COLLECT_GCC=E:\xiaoanpai\AiPi-Open-Kits\aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin\riscv64-unknown-elf-gcc.exe
COLLECT_LTO_WRAPPER=e:/xiaoanpai/aipi-open-kits/aithinker_ai-m6x_sdk/toolchain_gcc_t-head_windows/bin/../libexec/gcc/riscv64-unknown-elf/10.2.0/lto-wrapper.exe
Target: riscv64-unknown-elf
Configured with: /mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/./source/riscv/riscv-gcc/configure --target=riscv64-unknown-elf --host=i686-w64-mingw32 --with-gmp=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/build-Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/lib-for-gcc-mingw --with-mpfr=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/build-Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/lib-for-gcc-mingw --with-mpc=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/build-Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/lib-for-gcc-mingw --with-libexpat-prefix=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/build-Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/lib-for-gcc-mingw --with-libmpfr-prefix=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/build-Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/lib-for-gcc-mingw --with-pkgversion='Xuantie-900 elf newlib gcc Toolchain V2.6.1 B-20220906' CXXFLAGS='-g -O2 -DTHEAD_VERSION_NUMBER=2.6.1 ' --enable-libgcctf --prefix=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/Xuantie-900-gcc-elf-newlib-mingw-V2.6.1 --disable-shared --enable-threads=posix --enable-languages=c,c++ --without-system-zlib --enable-tls --with-newlib --with-sysroot=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/build-gcc-riscv64-unknown-elf/Xuantie-900-gcc-elf-newlib-mingw-V2.6.1/riscv64-unknown-elf --with-native-system-header-dir=/include --disable-libmudflap --disable-libssp --disable-libquadmath --disable-libgomp --disable-nls --disable-tm-clone-registry --src=/mnt/ssd/jenkins_iotsw/slave/workspace/Toolchain/build-gnu-riscv/./source/riscv/riscv-gcc --enable-multilib --with-abi=lp64d --with-arch=rv64gcxthead 'CFLAGS_FOR_TARGET=-Os   -mcmodel=medany' 'CXXFLAGS_FOR_TARGET=-Os   -mcmodel=medany'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (Xuantie-900 elf newlib gcc Toolchain V2.6.1 B-20220906)
PS E:\xiaoanpai\AiPi-Open-Kits\AiPi-Eyes_weather>

打开天气站源码,这个是什么报错?
回复 支持 反对

使用道具 举报

liloooo | 2023-11-12 15:03:02 | 显示全部楼层
ckdsx.cn 发表于 2023-8-14 14:56
汇报学习进展:
编译好像没成功,git下来文件什么的,完全没有改动过啊!是我这里git的文件不全么?
下面的 ...

这个没问题的,不影响编译烧录。主要看终端里的错误
回复 支持 反对

使用道具 举报

liloooo | 2023-11-12 15:37:37 | 显示全部楼层
是橘子不是橙子 发表于 2023-11-12 09:24
你好,三个环境变量已经添加,但是powershell中第二个命令验证失败是什么原因 ...

在 管理员里面运行一下
回复 支持 反对

使用道具 举报

liloooo | 2023-11-12 15:39:01 | 显示全部楼层
linyu777 发表于 2023-11-12 13:23
cp ./../aithinker_Ai-M6X_SDK/bsp/board/bl616dk/config/edata.bin build/build_out
process_begin: Creat ...

我也是,解决了吗,同学?
回复 支持 反对

使用道具 举报

liloooo | 2023-11-12 16:02:07 | 显示全部楼层

http://bbs.ai-thinker.com/forum. ... amp;_dsign=a3a51b80
第六章   ------    需要将project.build的75、76、90行注释掉
回复 支持 反对

使用道具 举报

麻露美 | 2023-11-12 17:05:25 | 显示全部楼层
这个问题是什么呢?-- Build files have been written to: F:/立创eda/安信可/AiPi-Open-Kits/aithinker_Ai-M6X_SDK/examples/helloworld/build
cd build && make -j16 && make combine
process_begin: CreateProcess(NULL, F:\绔嬪垱eda\瀹変俊鍙痋AiPi-Open-Kits\aithinker_Ai-M6X_SDK\tools\cmake\bin\cmake.exe -SF:\绔嬪垱eda\瀹変俊鍙痋AiPi-Open-Kits\aithinker_Ai-M6X_SDK\examples\helloworld -BF:\绔嬪垱eda\瀹変俊鍙痋AiPi-Open-Kits\aithinker_Ai-M6X_SDK\examples\helloworld\build
--check-build-system CMakeFiles\Makefile.cmake 0, ...) failed.
make (e=2): 系统找不到指定的文件。
make[1]: *** [Makefile:330: cmake_check_build_system] Error 2
make: *** [../../project.build:51: build] Error 2
回复 支持 反对

使用道具 举报

Fkklek | 2023-11-12 20:48:33 来自手机 | 显示全部楼层
nb啊
回复

使用道具 举报

枯叶流水 | 2023-11-12 21:16:41 | 显示全部楼层
您好,我在编译AiPi_Eyes_weather时发生了如下错误


[21:13:40.664] - create OTA file:C:\aithinker\AiPi-Open-Kits\AiPi-Eyes_weather\build\build_out\Eyes_bl616.bin.ota
[21:13:40.766] - create XZ file:C:\aithinker\AiPi-Open-Kits\AiPi-Eyes_weather\build\build_out\Eyes_bl616.xz
[21:13:41.218] - create XZ OTA file:C:\aithinker\AiPi-Open-Kits\AiPi-Eyes_weather\build\build_out\Eyes_bl616.xz.ota
Built target combine
cp ./../aithinker_Ai-M6X_SDK/bsp/board/bl616dk/config/edata.bin build/build_out
process_begin: CreateProcess(NULL, cp ./../aithinker_Ai-M6X_SDK/bsp/board/bl616dk/config/edata.bin build/build_out, ...) failed.
make (e=2): 系统找不到指定的文件。
make: *** [../aithinker_Ai-M6X_SDK/project.build:75: build] Error 2

请问该如何解决呢
回复 支持 反对

使用道具 举报

QRSKF | 2023-11-12 22:01:53 | 显示全部楼层

我的成功了,仔细看代码。
回复 支持 反对

使用道具 举报

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

本版积分规则