# \#build

**URL:** https://forum.opencv.org/tag/build/207.md

[Latest](https://forum.opencv.org/latest.md) · [Categories](https://forum.opencv.org/categories.md) · [Tags](https://forum.opencv.org/tags.md)

---

## [Issues on building OpenCV 5.0.0](https://forum.opencv.org/t/issues-on-building-opencv-5-0-0/24690)

<div class="topic-metadata">

**Author:** [@jg98](https://forum.opencv.org/u/jg98)\
**Replies:** 0\
**Last updated:** [August 21, 2026, 3:49am UTC](https://forum.opencv.org/t/issues-on-building-opencv-5-0-0/24690 "2026-08-21T03:49:02Z")

</div>

I built couple version of 4.xx successfully but there are some issues on building OpenCV 5 in same way. there is a link error on building gapi, I need to add “ws2\_32.lib” dependency manually the built library format is…

---

## [Making a desktop app using opencv in java/kotlin on Linux (Ubuntu)](https://forum.opencv.org/t/making-a-desktop-app-using-opencv-in-java-kotlin-on-linux-ubuntu/24239)

<div class="topic-metadata">

**Author:** [@Samuel\_Le](https://forum.opencv.org/u/Samuel_Le)\
**Replies:** 4\
**Last updated:** [August 3, 2026, 8:29pm UTC](https://forum.opencv.org/t/making-a-desktop-app-using-opencv-in-java-kotlin-on-linux-ubuntu/24239 "2026-08-03T20:29:27Z")

</div>

Hi, I am trying to make a desktop app in kotlin to experiment with various ideas to analyze videos. However I am unable to get opencv on my app. Things I have tried: importing opencv as a dependency by adding it to m…

---

## [Build OpenCV 5 with CMake failed](https://forum.opencv.org/t/build-opencv-5-with-cmake-failed/24592)

<div class="topic-metadata">

**Author:** [@Simon1](https://forum.opencv.org/u/Simon1)\
**Replies:** 3\
**Last updated:** [July 1, 2026, 6:59am UTC](https://forum.opencv.org/t/build-opencv-5-with-cmake-failed/24592 "2026-07-01T06:59:12Z")

</div>

I build opencv 5 with following command but failed cmake -G “Visual Studio 18 2026” -A x64 -S C:/Github/opencv-5.0.0 -B C:/Github/opencv-5-build -D CMAKE\_BUILD\_TYPE=RELEASE -D BUILD\_CUDA\_STUBS=ON -D BUILD\_JAVA=OFF …

---

## [Microsoft made std::mutex constexpr in the STL for VS17.10 and later](https://forum.opencv.org/t/microsoft-made-std-mutex-constexpr-in-the-stl-for-vs17-10-and-later/24597)

<div class="topic-metadata">

**Author:** [@Pragmataraxia](https://forum.opencv.org/u/Pragmataraxia)\
**Replies:** 1\
**Last updated:** [June 24, 2026, 11:29am UTC](https://forum.opencv.org/t/microsoft-made-std-mutex-constexpr-in-the-stl-for-vs17-10-and-later/24597 "2026-06-24T11:29:30Z")

</div>

If you try to build OpenCV 4 or 5 Release with Visual Studio 17.10 or later with dynamic C runtime, it will die on the first attempt to use a mutex (which will be during trace initialization, or logging initialization if…

---

## [OpenCV with CUDA for C++ help](https://forum.opencv.org/t/opencv-with-cuda-for-c-help/24506)

<div class="topic-metadata">

**Author:** [@Robin\_Gorrilla](https://forum.opencv.org/u/Robin_Gorrilla)\
**Replies:** 0\
**Last updated:** [May 12, 2026, 7:09pm UTC](https://forum.opencv.org/t/opencv-with-cuda-for-c-help/24506 "2026-05-12T19:09:34Z")

</div>

Hi, I am a beginner in OpenCV. I’m trying to add CUDA support to my OpenCV build following the tutorial given in this video: The vid is a bit outdated, but I managed to build a library that “looks” alright…

---

## [OpenCV 4.12.0 CMake Shows freetype2: NO / harfbuzz: NO (vcpkg, VS2022, Windows 11)](https://forum.opencv.org/t/opencv-4-12-0-cmake-shows-freetype2-no-harfbuzz-no-vcpkg-vs2022-windows-11/23959)

<div class="topic-metadata">

**Author:** [@Hiroki\_Okamoto](https://forum.opencv.org/u/Hiroki_Okamoto)\
**Replies:** 1\
**Last updated:** [May 9, 2026, 1:06am UTC](https://forum.opencv.org/t/opencv-4-12-0-cmake-shows-freetype2-no-harfbuzz-no-vcpkg-vs2022-windows-11/23959 "2026-05-09T01:06:32Z")

</div>

OS: Windows 11 OpenCV version: 4.12.0 CMake GUI: 4.0.3 Generator: Visual Studio 17 2022 (x64) Compiler: MSVC (Visual Studio 2022) Architecture: x64 (Build type: (e.g. Release + Debug) – can add if needed) Goal: En…

---

## [OpenCV CMake config file sets OpenCV\_FOUND to FALSE](https://forum.opencv.org/t/opencv-cmake-config-file-sets-opencv-found-to-false/24488)

<div class="topic-metadata">

**Author:** [@Dr\_Nic](https://forum.opencv.org/u/Dr_Nic)\
**Replies:** 0\
**Last updated:** [April 30, 2026, 10:01am UTC](https://forum.opencv.org/t/opencv-cmake-config-file-sets-opencv-found-to-false/24488 "2026-04-30T10:01:42Z")

</div>

I’m using CMake to build Depth-Anything-TensorRT I’ve changed the paths to the corresponding path to OpenCV & TensorRT but CMkae keeps throwing the following error (full trace), – Building for: Visual Studio 17 2022 …

---

## [Topic: OpenCV error in code::blocks](https://forum.opencv.org/t/topic-opencv-error-in-code-blocks/24428)

<div class="topic-metadata">

**Author:** [@jhongramatickus](https://forum.opencv.org/u/jhongramatickus)\
**Replies:** 1\
**Last updated:** [April 14, 2026, 7:47pm UTC](https://forum.opencv.org/t/topic-opencv-error-in-code-blocks/24428 "2026-04-14T19:47:54Z")

</div>

I’m trying to use OpenCV (version 4.12.0) in Code::Blocks (version 25.03). When installing OpenCV, I used CMake to generate the libraries in Code::Blocks and Mingw. Once I obtained openCV.cbp, I compiled it in Code::Bloc…

---

## [Introduction – Interested in QR / Barcode / ArUco Deep Detector Project (GSoC 2026)](https://forum.opencv.org/t/introduction-interested-in-qr-barcode-aruco-deep-detector-project-gsoc-2026/24385)

<div class="topic-metadata">

**Author:** [@harsh5d5](https://forum.opencv.org/u/harsh5d5)\
**Replies:** 0\
**Last updated:** [March 10, 2026, 10:22am UTC](https://forum.opencv.org/t/introduction-interested-in-qr-barcode-aruco-deep-detector-project-gsoc-2026/24385 "2026-03-10T10:22:07Z")

</div>

Hello OpenCV community, My name is Harsh Patel, and I am a 3rd-year Information Technology student from India. I am interested in contributing to OpenCV for GSoC 2026. I have experience with Python, FastAPI, Flask, and…

---

## [VC++ 2022 (C++17) Compile Errors](https://forum.opencv.org/t/vc-2022-c-17-compile-errors/16229)

<div class="topic-metadata">

**Author:** [@JayJayEl](https://forum.opencv.org/u/JayJayEl)\
**Replies:** 1\
**Last updated:** [February 12, 2026, 11:27am UTC](https://forum.opencv.org/t/vc-2022-c-17-compile-errors/16229 "2026-02-12T11:27:32Z")

</div>

I’m getting the following errors when compiling a C++ app in Visual Studio 2022 (C++ 17 standard). Note that this is just a small excerpt; many other related or similar errors follow. 1\>------ Build started: Project: Je…

---

## [Opencv-contrib C++ VSCode](https://forum.opencv.org/t/opencv-contrib-c-vscode/24303)

<div class="topic-metadata">

**Author:** [@RDS](https://forum.opencv.org/u/RDS)\
**Replies:** 0\
**Last updated:** [January 8, 2026, 11:16am UTC](https://forum.opencv.org/t/opencv-contrib-c-vscode/24303 "2026-01-08T11:16:38Z")

</div>

I’m trying to compile a program using cmake that uses opencv-contrib to use WeChat QRCode in C++ in VSCode on Windows 11. I need: #include \<chrono\> #include \<iostream\> #include \<opencv2/opencv.hpp\> #include \<opencv2/we…

---

## [OCV libs for static linking](https://forum.opencv.org/t/ocv-libs-for-static-linking/24279)

<div class="topic-metadata">

**Author:** [@andrei186](https://forum.opencv.org/u/andrei186)\
**Replies:** 0\
**Last updated:** [December 25, 2025, 1:53pm UTC](https://forum.opencv.org/t/ocv-libs-for-static-linking/24279 "2025-12-25T13:53:04Z")

</div>

Book Learning OpenCV 3- Computer Vision in C++ With the OpenCV Library by Adrian Kaehler and Gary Bradski reads: Installing on Windows. At the page: Releases - OpenCV , you will see a link to download the latest version…

---

## [Is my iOS build likely failing at this part due to linking Homebrew libraries?](https://forum.opencv.org/t/is-my-ios-build-likely-failing-at-this-part-due-to-linking-homebrew-libraries/24240)

<div class="topic-metadata">

**Author:** [@Daniel\_Vonrhein](https://forum.opencv.org/u/Daniel_Vonrhein)\
**Replies:** 0\
**Last updated:** [December 8, 2025, 8:10am UTC](https://forum.opencv.org/t/is-my-ios-build-likely-failing-at-this-part-due-to-linking-homebrew-libraries/24240 "2025-12-08T08:10:39Z")

</div>

On Mac OS 26.1, I am trying my best to get iOS Pack running, with the opencv\_contrib libraries added on. But I would like some advice regarding my configuration. I believe that my build script is failing after configura…

---

## [(solved)CMake error while following instructions - fatal error C1083: Cannot open include file: 'numpy/ndarrayobject.h': No such file or directory](https://forum.opencv.org/t/solved-cmake-error-while-following-instructions-fatal-error-c1083-cannot-open-include-file-numpy-ndarrayobject-h-no-such-file-or-directory/24230)

<div class="topic-metadata">

**Author:** [@Carmatic\_frua](https://forum.opencv.org/u/Carmatic_frua)\
**Replies:** 0\
**Last updated:** [November 25, 2025, 11:27pm UTC](https://forum.opencv.org/t/solved-cmake-error-while-following-instructions-fatal-error-c1083-cannot-open-include-file-numpy-ndarrayobject-h-no-such-file-or-directory/24230 "2025-11-25T23:27:32Z")

</div>

trying to follow this Build OpenCV (including Python) with CUDA on Windows: Comprehensive Guide including Python Bindings, cuDNN, and Nvidia Video Codec SDK – cudawarped , in particular the method using Ninja: "C:/Prog…

---

## [Improvement in HDR Tutorial – Clarifying Gamma Correction (Fix for Issue #22219)](https://forum.opencv.org/t/improvement-in-hdr-tutorial-clarifying-gamma-correction-fix-for-issue-22219/24106)

<div class="topic-metadata">

**Author:** [@Jay\_Pol](https://forum.opencv.org/u/Jay_Pol)\
**Replies:** 1\
**Last updated:** [October 22, 2025, 9:10am UTC](https://forum.opencv.org/t/improvement-in-hdr-tutorial-clarifying-gamma-correction-fix-for-issue-22219/24106 "2025-10-22T09:10:32Z")

</div>

Hello everyone, My name is Jay Pol, a C++ and Python developer passionate about computer vision and OpenCV. I recently explored the HDR imaging tutorials and noticed that the gamma correction step could be confusing fo…

---

## [Install and configure OpenCV for python/anaconda with GPU support on windows 11](https://forum.opencv.org/t/install-and-configure-opencv-for-python-anaconda-with-gpu-support-on-windows-11/10018)

<div class="topic-metadata">

**Author:** [@makan\_souleymane\_Cam](https://forum.opencv.org/u/makan_souleymane_Cam)\
**Replies:** 11\
**Last updated:** [February 16, 2024, 7:34pm UTC](https://forum.opencv.org/t/install-and-configure-opencv-for-python-anaconda-with-gpu-support-on-windows-11/10018 "2024-02-16T19:34:04Z")

</div>

Hello everyone, I’m trying install and configure OpenCV for python/anaconda with GPU support on windows 11. I’d like to work locally on a computer vision project, but can’t find an efficient and recent step by step p…

---

## [No java so (shared object) with docker build of custom modules](https://forum.opencv.org/t/no-java-so-shared-object-with-docker-build-of-custom-modules/24164)

<div class="topic-metadata">

**Author:** [@wwx](https://forum.opencv.org/u/wwx)\
**Replies:** 1\
**Last updated:** [November 3, 2025, 9:35pm UTC](https://forum.opencv.org/t/no-java-so-shared-object-with-docker-build-of-custom-modules/24164 "2025-11-03T21:35:30Z")

</div>

Attempting to add the stitcher module from contrib to opencv build for android within a docker container. Everything builds except the java#.so file. I’ve attempted to force it thru env variables (genai suggestions) to f…

---

## [\[MinGW64 on Win11\]Failed to build OpenCV-Python-headless via pip install](https://forum.opencv.org/t/mingw64-on-win11-failed-to-build-opencv-python-headless-via-pip-install/24176)

<div class="topic-metadata">

**Author:** [@UltraBlackCat](https://forum.opencv.org/u/UltraBlackCat)\
**Replies:** 4\
**Last updated:** [November 1, 2025, 2:14am UTC](https://forum.opencv.org/t/mingw64-on-win11-failed-to-build-opencv-python-headless-via-pip-install/24176 "2025-11-01T02:14:45Z")

</div>

Mingw64 on Windows11 Python 3.12.12 \[GCC 15.2.0 64 bit (AMD64)\] on win32 MSYS2 Package ,mingw-w64-x86\_64-python-opencv goes very well with no trouble, However, I was encountered one issue: the import process takes an …

---

## [Trouble building a FULL version of OpenCV (C++) with open source QT5](https://forum.opencv.org/t/trouble-building-a-full-version-of-opencv-c-with-open-source-qt5/24153)

<div class="topic-metadata">

**Author:** [@htartisan](https://forum.opencv.org/u/htartisan)\
**Replies:** 6\
**Last updated:** [October 28, 2025, 8:33pm UTC](https://forum.opencv.org/t/trouble-building-a-full-version-of-opencv-c-with-open-source-qt5/24153 "2025-10-28T20:33:29Z")

</div>

I have been trying to build a full version of OpenCV for C++/Windows/x86\_64, that includes QT5 (open source) integration. (I want to use it to help me test some embedded software that I developed.) It has been a real h…

---

## [Static linking with vcpkg installation](https://forum.opencv.org/t/static-linking-with-vcpkg-installation/24144)

<div class="topic-metadata">

**Author:** [@mjan](https://forum.opencv.org/u/mjan)\
**Replies:** 0\
**Last updated:** [October 24, 2025, 9:02am UTC](https://forum.opencv.org/t/static-linking-with-vcpkg-installation/24144 "2025-10-24T09:02:57Z")

</div>

Hi, this might be one of those beginner questions you guys have seen alot already and you’re probably thinking: “why didn’t the guy just use the search function”, but I did and I couldn’t find a topic regarding both vcp…

---

## [How to Compile Source Code to opencv-4.11.0-android-sdk.zip](https://forum.opencv.org/t/how-to-compile-source-code-to-opencv-4-11-0-android-sdk-zip/24039)

<div class="topic-metadata">

**Author:** [@zheng\_wang](https://forum.opencv.org/u/zheng_wang)\
**Replies:** 0\
**Last updated:** [September 20, 2025, 4:29am UTC](https://forum.opencv.org/t/how-to-compile-source-code-to-opencv-4-11-0-android-sdk-zip/24039 "2025-09-20T04:29:56Z")

</div>

如何从源码编译成opencv-4.11.0-android-sdk.zip How to Compile Source Code to opencv-4.11.0-android-sdk.zip

---

## [SIFT algorithm in opencvjs is undefined](https://forum.opencv.org/t/sift-algorithm-in-opencvjs-is-undefined/23973)

<div class="topic-metadata">

**Author:** [@2297098619pcz](https://forum.opencv.org/u/2297098619pcz)\
**Replies:** 5\
**Last updated:** [September 11, 2025, 10:03am UTC](https://forum.opencv.org/t/sift-algorithm-in-opencvjs-is-undefined/23973 "2025-09-11T10:03:50Z")

</div>

OpenCV version: 4.12.0 I added “‘SIFT’: \[‘create’\],” to features2d in opencv\_js.config.py. However, after building, references to cv.SIFT are still undefined. I also added the opencv\_contrib add-on module and enabled --…

---

## [I want to ask some question about openCV samples](https://forum.opencv.org/t/i-want-to-ask-some-question-about-opencv-samples/23900)

<div class="topic-metadata">

**Author:** [@vici](https://forum.opencv.org/u/vici)\
**Replies:** 2\
**Last updated:** [September 2, 2025, 1:29pm UTC](https://forum.opencv.org/t/i-want-to-ask-some-question-about-opencv-samples/23900 "2025-09-02T13:29:06Z")

</div>

I downloaded the OpenCV source code and used CMake-GUI to configure various project properties to generate a VS2022 project. When generating the solution, I also included the OpenCV examples, and the compilation passed s…

---

## [Build from source for release](https://forum.opencv.org/t/build-from-source-for-release/23841)

<div class="topic-metadata">

**Author:** [@nklskyoy](https://forum.opencv.org/u/nklskyoy)\
**Replies:** 0\
**Last updated:** [August 19, 2025, 10:40am UTC](https://forum.opencv.org/t/build-from-source-for-release/23841 "2025-08-19T10:40:29Z")

</div>

Hi all, I am trying to build OpenCV from source to enable optimzations. I check in the build directory cat CMakeCache.txt | grep CMAKE\_BUILD\_TYPE CMAKE\_BUILD\_TYPE:STRING=Debug //STRINGS property for variable: CMAKE\_B…

---

## [Having trouble getting OPEN CV 4.12 working on VS22](https://forum.opencv.org/t/having-trouble-getting-open-cv-4-12-working-on-vs22/23806)

<div class="topic-metadata">

**Author:** [@GoodNewsJim](https://forum.opencv.org/u/GoodNewsJim)\
**Replies:** 4\
**Last updated:** [August 19, 2025, 2:53am UTC](https://forum.opencv.org/t/having-trouble-getting-open-cv-4-12-working-on-vs22/23806 "2025-08-19T02:53:40Z")

</div>

Hello, I was able to get OPENCV to make an image and save it, but loading an image always says: \[ WARN:0@0.060\] global loadsave.cpp:275 cv::findDecoder imread\_(‘’): can’t open/read file: check file path/integrity Open…

---

## [Minimal build opencv](https://forum.opencv.org/t/minimal-build-opencv/23830)

<div class="topic-metadata">

**Author:** [@F\_o\_r\_t\_M\_e](https://forum.opencv.org/u/F_o_r_t_M_e)\
**Replies:** 1\
**Last updated:** [August 18, 2025, 4:43pm UTC](https://forum.opencv.org/t/minimal-build-opencv/23830 "2025-08-18T16:43:43Z")

</div>

What is the minimal static C++ OpenCV build (modules + CMake flags) needed just to grab one webcam frame and save it as photo.png?

---

## [Vcpkg and CLion: ximgproc cannot be found](https://forum.opencv.org/t/vcpkg-and-clion-ximgproc-cannot-be-found/23745)

<div class="topic-metadata">

**Author:** [@Mateusz\_PL](https://forum.opencv.org/u/Mateusz_PL)\
**Replies:** 2\
**Last updated:** [August 13, 2025, 11:27am UTC](https://forum.opencv.org/t/vcpkg-and-clion-ximgproc-cannot-be-found/23745 "2025-08-13T11:27:46Z")

</div>

Hi! I’m currently working on a project that uses OpenCV. I’m using CLion and Vcpkg to install OpenCV. I have a problem with ximgproc — CLion doesn’t recognize this directory, so I cannot access it, although it has no pro…

---

## [Mutex and AutoLock are not member of CV](https://forum.opencv.org/t/mutex-and-autolock-are-not-member-of-cv/15679)

<div class="topic-metadata">

**Author:** [@ago\_cv](https://forum.opencv.org/u/ago_cv)\
**Replies:** 4\
**Last updated:** [August 5, 2025, 5:57am UTC](https://forum.opencv.org/t/mutex-and-autolock-are-not-member-of-cv/15679 "2025-08-05T05:57:18Z")

</div>

I set up a pretty simple project to understand if I could move to C++20 with my C++/CLI project using opencv. Compiling with C++17 is not a problem, but if I try to compile in C++20 I get two errors: Mutex is not a mem…

---

## [Build OpenCV Applications with MSVC on ARM64 Windows](https://forum.opencv.org/t/build-opencv-applications-with-msvc-on-arm64-windows/23467)

<div class="topic-metadata">

**Author:** [@wak](https://forum.opencv.org/u/wak)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 5:29am UTC](https://forum.opencv.org/t/build-opencv-applications-with-msvc-on-arm64-windows/23467 "2025-08-01T05:29:52Z")

</div>

when I build opencv on ARM64 Windows, it causes an error. The error message is as follows: C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.26100.0\\ucrt\\wchar.h(254,33): error C2664: “\_\_n64 \_\_uint64x1\_t\_to\_n 64(uin…

---

## [Persistent CUDA/cuDNN Build Errors (4.12.0, CUDA 12.9, VS2022)](https://forum.opencv.org/t/persistent-cuda-cudnn-build-errors-4-12-0-cuda-12-9-vs2022/23451)

<div class="topic-metadata">

**Author:** [@mercylotus](https://forum.opencv.org/u/mercylotus)\
**Replies:** 7\
**Last updated:** [August 1, 2025, 11:19am UTC](https://forum.opencv.org/t/persistent-cuda-cudnn-build-errors-4-12-0-cuda-12-9-vs2022/23451 "2025-08-01T11:19:29Z")

</div>

Hello, I am attempting to build OpenCV 4.12.0 with CUDA and cuDNN support for use with my python project including EasyOCR. I want GPU acceleration inside my python project. I’ve encountered persistent build errors rel…

[Next page](https://forum.opencv.org/tag/build/207.md?match_all_tags=true&page=1&tags%5B%5D=build)
