# Issues on building OpenCV 5.0.0

**URL:** <https://forum.opencv.org/t/issues-on-building-opencv-5-0-0/24690>\
**Category:** C++\
**Tags:** build\
**Created:** [August 21, 2026, 3:49am UTC](https://forum.opencv.org/t/issues-on-building-opencv-5-0-0/24690 "2026-08-21T03:49:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jg98](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jg98](https://forum.opencv.org/u/jg98)\
**Post date:** [August 21, 2026, 3:49am UTC](https://forum.opencv.org/t/issues-on-building-opencv-5-0-0/24690/1 "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.

1. there is a link error on building gapi, I need to add “ws2\_32.lib” dependency manually
2. the built library format is “dll.a” but not “lib”, I need to change their suffix manually (and then works)

**env** : cmake 4.0.0, MSVC 2019

**configuration:  
disabled:** BUILD\_opencv\_dnn, BUILD\_PERF\_TESTS, BUILD\_TESTS  
**enabled** : OPENCV\_EXTRA\_MODULES\_PATH=…
