当前位置:网站首页>glui.h无法找到描述+解决+测试
glui.h无法找到描述+解决+测试
2022-08-10 15:58:00 【zhangrelay】
GL/glui.h无法找到。
尝试安装libglui-dev,发现已经不支持了。
那么怎么办?
老版本程序需要跑起来?
源码编译吧。
GLUI 是一个基于 GLUT 的 C++ 用户界面库,它为 OpenGL 应用程序提供按钮、复选框、单选按钮和微调器等控件。它独立于窗口系统,使用 GLUT 或 FreeGLUT。
三步曲:
- cmake ..
- make
- sudo make install
[email protected]:~/cppcode/glui-master/build$ sudo make install [ 64%] Built target glui_obj [ 66%] Built target glui [ 68%] Built target glui_static [ 75%] Built target ppm2array [ 79%] Built target example1 [ 83%] Built target example2 [ 87%] Built target example3 [ 91%] Built target example4 [ 95%] Built target example5 [100%] Built target example6 Install the project... -- Install configuration: "" -- Installing: /usr/local/lib/libglui_static.a -- Installing: /usr/local/lib/libglui.so.2.37 -- Installing: /usr/local/lib/libglui.so -- Up-to-date: /usr/local/include -- Installing: /usr/local/include/GL -- Installing: /usr/local/include/GL/glui.h -- Installing: /usr/local/lib/cmake/glui/gluiConfig.cmake -- Installing: /usr/local/lib/cmake/glui/gluiConfigVersion.cmake -- Installing: /usr/local/lib/cmake/glui/gluiTargets.cmake -- Installing: /usr/local/lib/cmake/glui/gluiTargets-noconfig.cmake
glui提供了一些案例供学习:
zhan[email protected]:~/cppcode/glui-master/example$ tree . ├── CMakeLists.txt ├── example1.cpp ├── example2.cpp ├── example3.cpp ├── example4.cpp ├── example5.cpp └── example6.cpp
0 directories, 7 files
类似圆形如下:
三角形如下:
示例代码参考官方案例。
边栏推荐
猜你喜欢
随机推荐
可以在家干的兼职都有哪些呢?做自媒体怎么样?
接口测试中,应不应该用数据库
Cesium Quick Start 4-Polylines primitive usage explanation
Bitwarden:免费、开源的密码管理服务
PYSPARK ON YARN报错集合
找到一个超级神奇,百试百灵的解决 ModuleNotFoundError: No module named xxx 的方法
异形屏为led显示行业带来更多希望
WinUI 3 Fundamentals 5小时教学视频
babylonjs shader
如何修改gif尺寸?1分钟教你快速修改gif尺寸
本地导入不报错,服务器端报错 No module named xxx
MySQL command line export import database
Please check the preparation guide for the 2022 Huawei Developer Competition
关于“算力”,这篇文章值得一看
fuse简介
Ameya360成为稳先微电子中国区域授权代理!
LeetCode-692. Top K Frequent Words
2022年软考复习笔记一
不同主机收不到组播消息原因分析
解决mpi4py导入报错ImportError: libmpi.so.40: cannot open shared object file: No such file or directory