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
Thank you
In this case you would need to compile it yourself, it is explained here: http://opencv.willowgarage.com/wiki/InstallGuide
You simply download the tar.gz, then you extract it and goto that directory in a terminal.
When you’ve done this, you need to comfigure what you want and don’t want first. You can do so by running either cmake or cmake-gui. Use cmake-gui, if you want a gui 😉
in cmake-gui you needed to specify a directory where to put some files, go there in a terminal and run make.
After this you should search for a directory with your header-files (.h or .hpp) and one with your library-files (.a, .so and .o). Add the first to your INCLUDE_PATH directory and the second to your LD_LIBRARY_PATH variable 😉
That should do it. Please note that this is an ‘in memory’ explenation, as compiling opencv takes a long time, I did not try this myself. But feel free to comment if you still have questions. The best advice I would like to give you is use cmake-gui and see what options are available there. Good luck!