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

ubuntu 20.04中编译完成C++的demo,但是运行卡住不动 #377

Open
gswgit opened this issue Jul 18, 2023 · 7 comments
Open

ubuntu 20.04中编译完成C++的demo,但是运行卡住不动 #377

gswgit opened this issue Jul 18, 2023 · 7 comments

Comments

@gswgit
Copy link

gswgit commented Jul 18, 2023

image

@gswgit
Copy link
Author

gswgit commented Jul 18, 2023

系统版本信息
image

@gswgit
Copy link
Author

gswgit commented Jul 18, 2023

补充说明:实体机为阿里云主机,centos7系统,运行环境为搭建的docker,ubuntu 20.04系统,请排查

@tunmx
Copy link
Collaborator

tunmx commented Jul 18, 2023

收到,我们这边排查一下

@tunmx
Copy link
Collaborator

tunmx commented Jul 20, 2023

你好,经过测试,发现卡住不动的问题是因为不同的Linux系统和环境的本地依赖库和一些工具链版本冲突导致的,目前主要发现崩溃的原因在opencv库的函数上,我们目前整理了两种解决方案供参考:
1、自行编译系统支持的opencv库并安装,拉取最新代码默认会去链接系统的opencv;
2、自行编译系统可用opencv静态库,并替换3rdparty_hyper_inspire_op中的linux-opencv静态库,需拉取最新代码,编译hyperlpr3库时需要开启LINUX_USE_3RDPARTY_OPENCV项;

注:为防止MNN库也出现该问题,我修改了工程让MNN支持从git在线拉取仓库进行编译,如果不需要拉取则需要将LINUX_FETCH_MNN项关闭

以上仅针对linux系统版本

@gswgit
Copy link
Author

gswgit commented Jul 27, 2023

感谢,我这边验证一下

@chuqingq
Copy link

chuqingq commented Sep 1, 2023

我在RK3588平台上验证OK了,系统信息不太一样:
$ uname -a Linux teamhd 5.10.110 #5 SMP Mon Jul 10 14:24:59 CST 2023 aarch64 aarch64 aarch64 GNU/Linux $ cat /etc/issue Ubuntu 20.04.5 LTS \n \l

编译MNN时出现报错HWCAP2_I8MM’ was not declared in this scope; did you mean ‘HWCAP_SM3’?
换用2.2.3版本就OK了。

@SCUT-chenjia
Copy link

我在RK3588平台上验证OK了,系统信息不太一样: $ uname -a Linux teamhd 5.10.110 #5 SMP Mon Jul 10 14:24:59 CST 2023 aarch64 aarch64 aarch64 GNU/Linux $ cat /etc/issue Ubuntu 20.04.5 LTS \n \l

编译MNN时出现报错HWCAP2_I8MM’ was not declared in this scope; did you mean ‘HWCAP_SM3’?。 换用2.2.3版本就OK了。

老哥稳,我最近也在rk3588部署这个模型,按照你的改了MNN的tag2.2.3,就可以编译了,另外想问一下,这里的模型有试过转换为rknn模型使用吗?可以交流下?

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

4 participants