4

Now I have a opencv project which was build in Linux platform, and of course it can run successfully.

I want to share the execution file of the project to other person(like boss), and other person's computer didn't install opencv

Is it possible to modified the makefile file to let the other person's computer run the project without installing opencv library?

3 Answers 3

5

You have to link to static OpenCV libraries. This way they are bundled with your executable, so the target system doesn't have to have shared libraries installed.

Sign up to request clarification or add additional context in comments.

Comments

1

I've successfully built my executable with RPATH=$ORIGIN, which mean that I can put the openCV libraries in the same directory as the executable. This means they don't clash with existing openCV installations (or lack thereof)

Comments

0

When you run the executable, you will need the libraries to process the image. So, those libraries must be present for the processing purpose either by providing them in your system or by linking them to your executable itself.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.