G
G
GregoryF12011-08-25 18:15:09
linux
GregoryF1, 2011-08-25 18:15:09

Running C++ Linux library with OpenCV on another computer

Hello, such a problem:
we wrote a small program in C ++ for Linux using OpenCV 2.2. It is required to send it to the customer in the form of a library. We want to make it so that you do not need to install OpenCV on another computer.
We tried to put .so libraries side by side, but there were problems with a large number of dependencies.
Tried to statically link open libraries, but also without success.
Surely someone faced a similar problem? I would be grateful for any information.
Here is my question on Stack Overflow:
stackoverflow.com/questions/7192370/how-to-run-c-library-with-opencv-on-the-other-computer-linux

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
rPman, 2011-08-25
@rPman

what is windows way?
'put required libraries' is 'installation', what's the problem? the required version is not in the repository on the remote computer? find or assemble your assembly for the version of that OS and transfer it along with your program, if on the other hand they are afraid that your assembly will destroy something - let them install the libraries and the program in a chroot copy of themselves, you can write the scripts for this case from a couple of commands yourself ( sudo cp -rx / / chroot; sudo chroot / chroot; ... although not, creating a copy of the system is still a question, it is better to write a list of directories that are guaranteed to belong to the system instead of cp -xr), but then, it seems to me, a perversion of
ps if on a remote computer drivers are not installed, then nothing will work ... you will have to install them without options.
pps ask them about the type of video card on the other side and prepare your demo distribution in the form of an iso file (fortunately, with opencl support, this is either ati, or nvidia, or occasionally intel), and almost any user can burn a CD and run it.

B
bitterman, 2011-08-25
@bitterman

LD_LIBRARY_PATH and custom script. And, what's yours, compile it yourself :-)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question