openGL object not found for architecture x86_64

a 夏天 提交于 2019-12-25 04:12:29

问题


I am working on a project, using both opencv and openGL, compiling with Cmake on OSX. I get this error message:

_glTexImage2D", referenced from:
  matToTexture(cv::Mat) in getimages.cpp.o
ld: symbol(s) not found for architecture x86_64

I guess I have to use openGL 64bit instead of 32bit, but I don't know how to specify this.


回答1:


When compiling for MacOS X you must add the OpenGL framework. The compiler command line option is

-Framework OpenGL


来源:https://stackoverflow.com/questions/16731572/opengl-object-not-found-for-architecture-x86-64

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!