OpenCV二进制部署(Linux) [英] OpenCV binary deployment (Linux)

查看:201
本文介绍了OpenCV二进制部署(Linux)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在研究所,我们在集群上使用Scientific Linux 5,我需要部署一个使用现代OpenCV分发(2.3.1或2.4.0)的应用程序。我没有root权限在集群上。



本质上,我如何打包ffmpeg(和希望x264),opencv的所有动态二进制依赖关系,以便我可以xcopy-deploy我的应用程序?



我在Ubuntu上安装了OpenCV 2.3.1。如果有办法可控地加载可执行文件并复制所有动态依赖项,我可以使用它。



谢谢
Vadim

解决方案

如果您没有权限,您不需要在计算机中安装OpenCV



将OpenCV库及其依赖项放在系统中的某个位置,之前执行应用程序,确保调整 LD_LIBRARY_PATH 添加这些路径。



要检索特定二进制应用程序/库的依赖关系列表,请使用 LDD 。您可能有兴趣阅读此信息:复制共享库依赖关系


In the institute we use Scientific Linux 5 on the cluster and I need to deploy an app that uses a modern OpenCV distribution (2.3.1 or 2.4.0). I don't have root privileges on the cluster.

Essentially, how do I package all the dynamic binary dependencies of ffmpeg (and hopefully x264), opencv so that I can xcopy-deploy my app?

I have a working installation of OpenCV 2.3.1 on Ubuntu. If there was a way to controllably load the executable and copy along all the dynamic dependencies, I could use it.

Thanks, Vadim

解决方案

You don't need to install OpenCV in the computers if you don't have permission to do so.

Place the OpenCV libraries and it's dependencies somewhere in the system and before you execute your application make sure you adjust LD_LIBRARY_PATH to add these paths.

To retrieve the list of dependencies of a certain binary application/library, use ldd. You might be interested in reading this post: Copying shared library dependencies

这篇关于OpenCV二进制部署(Linux)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆