cv::glTexture linking error (with solution)

asked 2013-01-23 06:11:54 -0500

Rogeeeer gravatar image

updated 2013-01-23 06:21:42 -0500

Hi,

I'm using OpenCV 2.4.9 (cloned from git last week) with visual studio 2010. I had an issue with cv:glTexture the linker couldn't found the function in the libraries :

error LNK2001: symbole externe non résolu "public: virtual class cv::glTexture __cdecl cv::_InputArray::getglTexture(void)const " (?getglTexture@_InputArray@cv@@UEBA?AVglTexture@2@XZ)

Using dependency walker on core_249.dll I saw that the function is called :

?getGlTexture2D@_InputArray@cv@@UEBA?AVGlTexture2D@2@XZ

So just changing in core.hpp every "GlTexture" by "GlTexture2D" (4 places to change) seems to be working for me. If it can help someone...

edit retag flag offensive close merge delete