Ask Your Question
1

How to statically compile my program with openCV in Linux?

asked 2014-10-02 00:41:20 -0600

Julia gogogo gravatar image

I want to statically compile my C++ program with openCV in Linux so that my program could be a stand alone program that could run on any other computers without openCV installed. But I'm totally at lost of what to do now. I need some tutorial materials with each steps and instructions on that. I've used cmake but I can't find a proper file to set something like shared_library=OFF, static_library=ON. Also, I have found that my openCV has a lot of dependencies, i.e. dynamically linked libraries which all require to be compiled. I've searched a lot of web pages, but all of them just show a little part of the whole progress. No one could give me a complete instruction on each steps. However, in a word, I want to find a complete tutorial on how to statically compile my program with openCV in Linux. Could anyone help me and provide some? Thanks very much!

edit retag flag offensive close merge delete

Comments

I have tried to do the same, but I could not finish it. I would also like to know this.

thdrksdfthmn gravatar imagethdrksdfthmn ( 2014-10-02 03:27:28 -0600 )edit

A word of advice, there isn't a complete guide available. That is why I stopped trying on Ubuntu/Linux. Got it working on Windows but seems a slow and long process expecially due to all system dependencies that become standalone also....

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-02 03:31:53 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-30 00:49:52 -0600

Ohei gravatar image

Hi, i have the same problem, did you find any solution for that?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-02 00:41:20 -0600

Seen: 411 times

Last updated: Oct 02 '14