Error when loading the SDK:

本文提供了解决Android开发环境搭建时遇到的问题的方法,包括使用Android SDK目录下的tools/lib文件中的devices.xml替换错误目录下的同名文件。同时,文中详细介绍了Eclipse启动时报错的解决步骤,通过复制并替换错误文件来修复问题。

android环境搭建:http://www.cnblogs.com/xdp-gacl/p/4322165.html

eclipse启动,报了错。



 解决:

从安装的android-sdk目录下的tools目录lib文件下拷贝devices.xml替换如上图出现错误目录下的devices.xml文件即可。

x30076778@DESKTOP-PUO6BMI MINGW64 /d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt (br_odspTX) $ ./build_and_execute.sh hidsp0 build ; # build without clean TDP env is null, set to default dir: /d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt/hidsp0_llt_result use lib: C:/usr1/local/lib/libgtest.a C:/usr1/local/lib/libmockcpp.a Begin to build 8911 sdk.exe [build] current path len:56 你没有足够的权限执行此操作。 [build] change long current path:/d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build to D:/wecode_project_link/86516724/hlt/build [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: The compilation efficiency will reduced when the project path is too long. [build] Warnning: It is suggested to modify the project directory. [build] BUILD_WORK_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] OUTPUT_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] Parallel job num is 50 1.10.0 [build] MAKEFILE_GENERRATOR=Ninja [build] TARGET_NAME=sdk.exe CMake Error: The source directory "D:/wecode_project_link/86516724/hlt" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. [build] ninja sdk -j50 ... ninja: error: loading 'build.ninja': ϵͳ▒Ҳ▒▒▒ָ▒▒▒▒▒ļ▒▒▒ ls: cannot access 'D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb/sdk.exe': No such file or directory ================ building error ================ Binary file make.log matches [build] make build end. ls: cannot access '/d/xingrufeng/code_src/8911SDK/code_sd8911_git/hlt/build/sd8911_llt/../../work/sd8911_hidsp0_llt/mingw_gdb/sdk.exe': No such file or directory [build] Warnning: It is suggested to modify the project directory. [build] BUILD_WORK_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] OUTPUT_DIR=D:/wecode_project_link/86516724/hlt/build/../../src/../hlt/work/sd8911_hidsp0_llt/mingw_gdb [build] Parallel job num is 50 1.10.0 [build] MAKEFILE_GENERRATOR=Ninja [build] TARGET_NAME=sdk.exe CMake Error: The source directory "D:/wecode_project_link/86516724/hlt" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. [build] ninja sdk -j50 ... Binary file BUILD.LOG matches For more detailed information, please check ./BUILD.LOG. Build Fail! 什么意思
最新发布
09-05
/usr/bin/python3.10 /home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py --> Config model Config done --> Loading model W __init__: rknn-toolkit2 version: 1.6.0+81f21f4d W load_onnx: It is recommended onnx opset 19, but your onnx model opset is 13! W load_onnx: Model converted from pytorch, 'opset_version' should be set 19 in torch.onnx.export for successful convert! Loading : 100%|██████████████████████████████████████████████████| 11/11 [00:00<00:00, 30076.50it/s] E load_onnx: The input shape ['batch_size', 1, 28, 28] of 'input' is not support! Please set the 'inputs' / 'input_size_list' parameters of 'rknn.load_onnx', or set the 'dyanmic_input' parameter of 'rknn.config' to fix the input shape! W load_onnx: ===================== WARN(3) ===================== E rknn-toolkit2 version: 1.6.0+81f21f4d E load_onnx: Catch exception when loading onnx model: /home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/model_Mnist.onnx! E load_onnx: Traceback (most recent call last): E load_onnx: File "rknn/api/rknn_base.py", line 1540, in rknn.api.rknn_base.RKNNBase.load_onnx E load_onnx: File "rknn/api/rknn_base.py", line 769, in rknn.api.rknn_base.RKNNBase._create_ir_and_inputs_meta E load_onnx: File "rknn/api/rknn_log.py", line 92, in rknn.api.rknn_log.RKNNLog.e E load_onnx: ValueError: The input shape ['batch_size', 1, 28, 28] of 'input' is not support! E load_onnx: Please set the 'inputs' / 'input_size_list' parameters of 'rknn.load_onnx', or set the 'dyanmic_input' parameter of 'rknn.config' to fix the input shape! W If you can't handle this error, please try updating to the latest version of the toolkit2 and runtime from: https://console.zbox.filez.com/l/I00fc3 (Pwd: rknn) Path: RKNPU2_SDK / 1.X.X / develop / If the error still exists in the latest version, please collect the corresponding error logs and the model, convert script, and input data that can reproduce the problem, and then submit an issue on: https://redmine.rock-chips.com (Please consult our sales or FAE for the redmine account) Traceback (most recent call last): File "/home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py", line 49, in <module> convert_to_rknn() File "/home/a/rknn-toolkit2/rknn-toolkit2/examples/onnx/yolov5/minist_onnx_to_rknn.py", line 26, in convert_to_rknn raise RuntimeError(f"Load ONNX failed! Error code: {ret}") RuntimeError: Load ONNX failed! Error code: -1
05-30
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值