Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

How to include OpenCV source code in C++ project to make it portable?

$
0
0
In my C++ project I use (3.1) OpenCV Mat for (only) storing and operating matrices (thus only the **core** module is used). Now I would like to make the code portable: if a user (running Linux or Windows or OS X) takes my code then he can compile and run it, without installing the whole OpenCV pack. Moreover, I would like the user to run the fastest version of the code (i.e. compiled in Release mode, Optimizations, etc...). Could you please suggest a way to do that? I copied the source code from modules/cores to the project directory but not sure how to proceed. I guess I have to modify the original OpenCV CMakeLists to take into account only the core module, but the file looks complicated for me :( Thank you in advance for any suggestions!

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>