# Unable to find the symbols for the functions \`cvSetOpenGlDrawCallback\` , \`cvSetOpenGlContext\` , and \`cvUpdateWindow\`

**URL:** <https://forum.opencv.org/t/unable-to-find-the-symbols-for-the-functions-cvsetopengldrawcallback-cvsetopenglcontext-and-cvupdatewindow/13912>\
**Category:** Uncategorized\
**Tags:** opengl, highgui, build\
**Created:** [July 17, 2023, 4:00pm UTC](https://forum.opencv.org/t/unable-to-find-the-symbols-for-the-functions-cvsetopengldrawcallback-cvsetopenglcontext-and-cvupdatewindow/13912 "2023-07-17T16:00:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![donvirtus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/donvirtus/32/7676_2.png) [@donvirtus](https://forum.opencv.org/u/donvirtus)\
**Post date:** [July 17, 2023, 4:00pm UTC](https://forum.opencv.org/t/unable-to-find-the-symbols-for-the-functions-cvsetopengldrawcallback-cvsetopenglcontext-and-cvupdatewindow/13912/1 "2023-07-17T16:00:13Z")

</div>

Seems that the linker is still unable to find the symbols for the functions `cvSetOpenGlDrawCallback` , `cvSetOpenGlContext` , and `cvUpdateWindow`

Here the errors while I compile my opencv build:  
[25%] Building CXX object modules/dnn/CMakeFiles/opencv\_dnn.dir/src/layers/prior\_box\_layer.cpp.o  
/usr/bin/ld: CMakeFiles/opencv\_highgui.dir/src/window.cpp.o: in function `cv::setOpenGlDrawCallback(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, void (*)(void*), void*)': window.cpp:(.text._ZN2cv21setOpenGlDrawCallbackERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPFvPvES8_+0x43): undefined reference to `cvSetOpenGlDrawCallback’  
/usr/bin/ld: CMakeFiles/opencv\_highgui.dir/src/window.cpp.o: in function `cv::setOpenGlContext(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': window.cpp:(.text._ZN2cv16setOpenGlContextERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x35): undefined reference to `cvSetOpenGlContext’  
/usr/bin/ld: CMakeFiles/opencv\_highgui.dir/src/window.cpp.o: in function `cv::updateWindow(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': window.cpp:(.text._ZN2cv12updateWindowERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x35): undefined reference to `cvUpdateWindow’  
collect2: error: ld returned 1 exit status  
make[2]: \*\*\* [modules/highgui/CMakeFiles/opencv\_highgui.dir/build.make:164: lib/libopencv\_highgui.so.4.7.0] Error 1  
make[1]: \*\*\* [CMakeFiles/Makefile2:5872: modules/highgui/CMakeFiles/opencv\_highgui.dir/all] Error 2  
make[1]: \*\*\* Waiting for unfinished jobs…

Anyone have the same problems?

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [July 17, 2023, 4:04pm UTC](https://forum.opencv.org/t/unable-to-find-the-symbols-for-the-functions-cvsetopengldrawcallback-cvsetopenglcontext-and-cvupdatewindow/13912/2 "2023-07-17T16:04:48Z")

</div>

please post cmake output as text and cmake command.
