配置OpenGL遇到的问题
Tofloor
poster avatar
Emmmmmmmm
deepin
2019-04-27 06:53
Author
PS:总是发这类帖子,惭愧,惭愧...

书上的示例程序包含了GLTools.h和GLShaderManager.h但在网上翻了大半天OpenGL环境配置也没遇到这两个头文件
GL/glut.h能找到,但有如图所示的问题
Reply Favorite View the author
All Replies
avatar
superendermansm
deepin
2019-04-27 17:38
#1
类似的事情我也发生过,百度根本不好使。帮顶
Reply View the author
avatar
paopao123
deepin
2019-04-27 19:27
#2
对xxx未定义的引用,一般是通过头文件引用了某些函数但是在编译过程没有找到对应的实现,一般是没有链接对应的库,你这里应该加上-lGL试试
Reply View the author
avatar
Emmmmmmmm
deepin
2019-04-27 21:11
#3
paopao123 发表于 2019-4-27 11:27
对xxx未定义的引用,一般是通过头文件引用了某些函数但是在编译过程没有找到对应的实现,一般是没有链接对 ...

-IGL和-Iglut都已经加上了
Reply View the author
avatar
电脑迷
deepin
2019-04-27 22:28
#4
The user is banned, and the content is hidden.
avatar
paopao123
deepin
2019-04-27 23:03
#5
https://bbs.deepin.org/post/177189
-IGL和-Iglut都已经加上了

看仔细一点不是大写的I(ai),是小写的l(L)
Reply View the author
avatar
魔法师
deepin
2019-04-27 23:44
#6
使用webGL的表示很懵逼,表示一个V8就够用了
Reply View the author