# How to make a monolitic build of OpenCV

**URL:** <https://forum.opencv.org/t/how-to-make-a-monolitic-build-of-opencv/18609>\
**Category:** C++\
**Tags:** build\
**Created:** [August 29, 2024, 12:34am UTC](https://forum.opencv.org/t/how-to-make-a-monolitic-build-of-opencv/18609 "2024-08-29T00:34:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trylz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/trylz/32/10999_2.png) [@Trylz](https://forum.opencv.org/u/Trylz)\
**Post date:** [August 29, 2024, 12:34am UTC](https://forum.opencv.org/t/how-to-make-a-monolitic-build-of-opencv/18609/1 "2024-08-29T00:34:43Z")

</div>

I am migrating my software from OpenCv 3.2.0 to 4.10.0. I need to have support of the **dnn\_superres** module. According to [this](https://forum.opencv.org/t/where-is-the-dnn-superres-hpp-located/18434) the only way to do so is to build OpenCV myself.

When i look at the OpenCV 4.1.0 .exe package from GitHub a single .LIB and .DLL are provided for release builds: **opencv\_world4100.lib** and **opencv\_world4100.dll**

This is what i want. But when i build the source myself i get several .LIB and .DLL.  
How to fix that? Here how i generate the SLN from command line:

**cmake -B build -G “Visual Studio 15 2017 Win64”**

---

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [August 29, 2024, 12:38am UTC](https://forum.opencv.org/t/how-to-make-a-monolitic-build-of-opencv/18609/2 "2024-08-29T00:38:38Z")

</div>

among the cmake variables is something called “world”. enable that.

---

<div class="post-metadata">

**Author:** ![Trylz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/trylz/32/10999_2.png) [@Trylz](https://forum.opencv.org/u/Trylz)\
**Post date:** [August 29, 2024, 1:14am UTC](https://forum.opencv.org/t/how-to-make-a-monolitic-build-of-opencv/18609/3 "2024-08-29T01:14:21Z")

</div>

**BUILD\_opencv\_world** did it thank you! I didnt see cmake GUI has a search button
