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

opencv 依赖问题 #2

Open
gxxxh opened this issue Aug 23, 2022 · 0 comments
Open

opencv 依赖问题 #2

gxxxh opened this issue Aug 23, 2022 · 0 comments

Comments

@gxxxh
Copy link

gxxxh commented Aug 23, 2022

你好,我直接使用仓库里面的opencv运行的。./test报错
./test: error while loading shared libraries: ../../lib/libopencv_videoio.so: cannot open shared object file: No such file or directory
已经实现把libopencv 和libhisi添加到环境变量中了.
export LD_LIBRARY_PATH='/usr/local/lib:/usr/lib:/home/work/libopencv/lib:/home/work/libhisi/lib'
通过查看read_elf libopencv_highgui.so我发现.so文件中指定了动态链接的相对路径。
![_AIDJP{OG@}I6%@)TJ0 OE](https://user-images.githubusercontent.com/48244371/186081768-17bbd094-d39a-40f6-a380-86bc597eefe6.png)
`
网上说需要从头编译opencv,修改编译参数才行。请问您是如何解决这个问题的呢?如果不得不重新编译opencv的话,请问海思/华为是否有提供编译好的opencv来下载呢。非常感谢

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

1 participant