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

android版本调用imread时链接时报错 #152

Open
chinesesoft8 opened this issue Oct 14, 2024 · 2 comments
Open

android版本调用imread时链接时报错 #152

chinesesoft8 opened this issue Oct 14, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@chinesesoft8
Copy link

chinesesoft8 commented Oct 14, 2024

ibopencv_video.a /work/mnn/opencv-mobile-4.10.0-android/sdk/native/staticlibs/arm64-v8a/libopencv_core.a -fopenmp -static-openmp -ldl -lm -llog -latomic -lm
ld.lld: error: undefined symbol: cv::display_fb::open()

referenced by highgui.cpp
highgui.cpp.o:(cv::imshow(std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator> const&, cv::_InputArray const&)) in archive /home/liujt/work/mnn/opencv-mobile-4.10.0-android/sdk/native/staticlibs/arm64-v8a/libopencv_highgui.a

ld.lld: error: undefined symbol: cv::display_fb::get_width() const
想开发一个sdk供android和ios公用,把读取文件放在sdk里头,编译时报错

@chinesesoft8
Copy link
Author

重新编译android库,去掉imshow函数已解决。

@nihui nihui added the bug Something isn't working label Oct 14, 2024
@vinayhvaghamshi
Copy link

Found that imshow is not natively supported on Android platforms. Instead, for Android, some alternative ways for use cv::imwrite to 1. save and display media file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants