找不到架构x86_64的openGL对象 [英] openGL object not found for architecture x86_64

查看:104
本文介绍了找不到架构x86_64的openGL对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用opencv和openGL在OSX上使用Cmake进行编译的项目.我收到此错误消息:

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

我想我必须使用64位而不是32位的openGL,但是我不知道如何指定它.

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

推荐答案

为MacOS X编译时,必须添加OpenGL框架.编译器命令行选项为

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

-Framework OpenGL

这篇关于找不到架构x86_64的openGL对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆