error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: ma
Posted defe_feath
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: ma相关的知识,希望对你有一定的参考价值。
在把DSO移植到QT工程中,出现了
/usr/bin/ld: KeyFrameDisplay.o: undefined reference to symbol ‘__glewBufferSubData‘
报错,原因是.pro文件中没有加 GLEW库。
解决方案:
在.pro文件中加上这句:
##### GLEW #####
LIBS += -lGLEW
error: main.o: undefined reference to symbol ‘glTexImage2D‘
报错,原因是.pro文件中没有加OpenGL
解决方案:qt中内置了opengl,因此在.pro文件中加上这句:
QT += opengl
以上是关于error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: ma的主要内容,如果未能解决你的问题,请参考以下文章