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

查看:28
本文介绍了找不到架构 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

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

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天全站免登陆