首页 > 其他 > 详细

error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: main.o: undefined reference to symbol 'glTexImage2D'

时间:2017-05-12 20:07:40      阅读:1586      评论:0      收藏:0      [点我收藏+]

在把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: main.o: undefined reference to symbol 'glTexImage2D'

原文:http://www.cnblogs.com/defe-learn/p/6846712.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!