Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yolov5n_detection_demo 打包Android APP #359

Open
leigao-dev opened this issue May 23, 2023 · 2 comments
Open

yolov5n_detection_demo 打包Android APP #359

leigao-dev opened this issue May 23, 2023 · 2 comments

Comments

@leigao-dev
Copy link

yolov5n_detection_demo win10环境下进行
打包编译为Android APP报错如下
ld: error: found local symbol '_edata' in global part of symbol table in file D:/lkkj/Paddle-Lite-Demo/object_detection/android/app/cxx/yolov5n_detection_demo/app/src/main/cpp/../../../PaddleLite/cxx/libs/arm64-v8a/libpaddle_light_api_shared.so

@qili93
Copy link

qili93 commented Feb 5, 2024

您好,请问您能提供下lite的版本吗?我们尝试定位下,谢谢!

@LinasEin
Copy link

LinasEin commented Feb 6, 2024

Hi, I have the same error with ocr demo on Android.

My settings:
(Paddle-Lite-Demo cloned today)
Also running under win10 environment
Paddle: paddle_lite_libs_v2_10_rc
OpenCV: opencv-4.2.0-android-sdk
NDK: 26.1.10909125
CMake: 3.22.1

I first ran the bellow lines before gradle build following your guidelines.

cd Paddle-Lite-Demo/libs
# 下载所需要的 Paddle Lite 预测库
sh download.sh
cd ../ocr/assets
# 下载OPT 优化后模型、测试图片、标签文件及 config 文件
sh download.sh
cd ../android/app/c++/ppocr_demo
# 将预测库、模型等资源文件拷贝到当前工程中
sh prepare.sh
# 用 Android Studio 打开 ppocr_demo 工程, 完成APP编译和运行

The only change I made was to build.gradle file where I specifically specified my NDK version (otherwise build fails with 'NDK 21.1.6352462 did not have a source.properties file' error):

android {
ndkVersion '26.1.10909125'
...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants