error:: undefined reference to symbol '__glewBufferSubData' 未定义的引用 以及 error: main.o: undefined reference to symbol 'glTexImage2D'
在把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
posted on 2017-05-12 18:01 defe_feath 阅读(711) 评论(0) 编辑 收藏 举报
【推荐】还在用 ECharts 开发大屏?试试这款永久免费的开源 BI 工具!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步