English 中文(简体)
如何在 Linux 上作为常规用户安装 OpenCV
原标题:How to install OpenCV on Linux as regular user

I am trying to install opencv on a remote server. They said I am allowed to do it but I should do it as a regular user and I won t have high level access which means no sudo ! So I want to know if there is a way to install it only on my own account as a regular user.

I m really new to Linux (I use ubuntu 11.10 ) and I used this guide for my own PC: Installing OpenCV 2.2 in Ubuntu 11.04

谢谢

最佳回答

在这种情况下,你需要自己汇编它,请在此解释:http://opencv.willowgarage.com/wiki/InstallGuide

你只需下载 tar.gz, 然后提取它,然后在终端中进入目录。

当您完成此任务时, 您需要配置您想要的, 而不是首先想要的 。 您可以通过运行 cmake 或 cmake- gui 来做到这一点 。 如果您想要使用 cmake- gui, 请使用 cmake- gui ;)

cmake-gui

在 cmake- gui 中,您需要指定一个目录, 用于放置一些文件, 然后在终端中进行创建 。

make

在此之后, 您应该用页眉文件( h 或.hpp) 和 库文件(. a,. so 和. o) 查找目录。 将第一个添加到 INCLUDE_ PATH 目录中, 第二个添加到您的 LD_ library_ PATH 变量中 ;)

应该如此。请注意,这是一个记忆中的表征,因为汇编 Opencv 需要很长时间,我本人没有尝试。但如果你还有问题,请随意评论。我想给你的最好建议是使用 cmake-gui, 看看那里有什么选择。祝你好运!

问题回答

再给你几个数据点

我无法让OpenCV 2.4.0 建在我的Debian 6箱(Bubuntu 11以Debian 6为基础)上(Ubuntu 11以Debian 6为基础),

但要知道,为了建立 OpenCV, 有一些包件依赖性。 安装任何这些依赖性都需要sudo 或 root 特权 。

赫伯特建议使用 cmake- gui, 而不是 cmake 的指令行版本。 吉字版本 cmake- gui 使得在您实际进行编译之前, 更容易获得所有选项 。





相关问题
Add a changing icon to Ubuntu Panel

What would be the most simple way of adding and changing an icon in the Ubuntu (Gnome) Panel? I m looking for something as simple as shell scripting, but I m not restricted to that. Will write a ...

Configuring kernel

After create a new system call, how to update the kernel? I tried these lines, make-kpkg clean fakeroot make-kpkg -initrd -append-to-version=-custom kernel_image kernel_headers But Ubuntu asked me ...

save Exceptions to file in python

I want to save all following Exceptions in a file. The reason why I need this is because the IDLE for python 3.1.1 in Ubuntu raises an Exception at calltipps, but close to fast, that it isn t readble. ...

How can i monitor system statistics in kubuntu using Java?

i am doing a project related to configuration and memory analyzer for kubuntu. i want to display the system statistics information like CPU usage, RAM usage and proceses etc. graphically using an ...

How to pass "--external-locking" for mysqld in Ubuntu

I would like to start my mysql server with the --external-locking option. As mysqld is run by the /etc/init.d/mysql script ubuntu (karmic), I guess that s where I should set this "--external-locking" ...

"g++" and "c++" compiler

I just found on my Ubuntu, there are two different C++ compilers: /usr/bin/g++ and /usr/bin/c++. I am not familiar with the latter, but man c++ just jumps to the manpage of gcc. I wonder what is their ...

热门标签