Unresolved external symbol with openCV
Asked Answered
S

0

0

I'm trying to initialize OpenNI sensors using OpenCV in order to get depth map from depth sensor of my kinect.

The code I used to get one depth image:

and The output I get:

LNK2019: unresolved external symbol "int __cdelc cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) reference in function _main

In the .pro file I have:

QT += widgets
WITH_OPENNI = ON
Saladin answered 16/4, 2013 at 13:36 Comment(4)
you've got an unresolved external symbol, are you sure you have all your includes?Foah
This is not an include but a linking error. You are missing some library (don't know which though)Malachi
Its highgui library that you are missing..Jerejereld
solved! I edited CMake.txt and now OpenCV can be recognized. Thank you, it was, as you said, a missing librarySaladin

© 2022 - 2024 — McMap. All rights reserved.