# OpenCV static linking on a commercial product

**URL:** <https://forum.opencv.org/t/opencv-static-linking-on-a-commercial-product/5425>\
**Category:** Uncategorized\
**Tags:** legal, build\
**Created:** [September 30, 2021, 12:45pm UTC](https://forum.opencv.org/t/opencv-static-linking-on-a-commercial-product/5425 "2021-09-30T12:45:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcoventurini](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@marcoventurini](https://forum.opencv.org/u/marcoventurini)\
**Post date:** [September 30, 2021, 12:45pm UTC](https://forum.opencv.org/t/opencv-static-linking-on-a-commercial-product/5425/1 "2021-09-30T12:45:06Z")

</div>

Hello,

my company is about to design a commercial closed source software product that will be based, at least partially, on the OpenCV library.  
My legal background is far from being solid, but per my understanding of the license, we are free to do it, to honor our part of the agreement we must write in our license notice that we make use of the OpenCV library and include the Apache 2.0 license text.

Is the type of linking (static vs dynamic, or even inclusion of the source) making any difference from the licensing point of view?  
Will we break the license agreement in any way if we include the OpenCV as part of our binary blob?

Thanks a lot,

Marco

---

<div class="post-metadata">

**Author:** ![berak](https://avatars.discourse-cdn.com/v4/letter/b/85f322/32.png) [@berak](https://forum.opencv.org/u/berak)\
**Post date:** [September 30, 2021, 1:14pm UTC](https://forum.opencv.org/t/opencv-static-linking-on-a-commercial-product/5425/2 "2021-09-30T13:14:51Z")

</div>

> [@marcoventurini](#):
>
> Is the type of linking (static vs dynamic, or even inclusion of the source) making any difference from the licensing point of view?

no difference.

> [@marcoventurini](#):
>
> Will we break the license agreement in any way if we include the OpenCV as part of our binary blob?

no.

just make sure, you build with `OPENCV_ENABLE_NONFREE=OFF`

---

<div class="post-metadata">

**Author:** ![marcoventurini](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@marcoventurini](https://forum.opencv.org/u/marcoventurini)\
**Post date:** [September 30, 2021, 2:53pm UTC](https://forum.opencv.org/t/opencv-static-linking-on-a-commercial-product/5425/3 "2021-09-30T14:53:19Z")

</div>

That’s what I needed, thanks.

Marco
