当前位置:网站首页>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
类似圆形如下:
三角形如下:
示例代码参考官方案例。
边栏推荐
- LeetCode-876. Middle of the Linked List
- 2025年推出 奥迪透露将推出大型SUV产品
- 易基因|深度综述:m6A RNA甲基化在大脑发育和疾病中的表观转录调控作用
- Mobileye携手极氪通过OTA升级开启高级驾驶辅助新篇章
- 积分可以当钱用,阿里推出个人「碳账户」
- Chapter one module of the re module,
- cmake 小技巧 记录
- 异常处理的超详细讲解
- FP6378AS5CTR SOT - 23-5 effective 1 mhz2a synchronous buck regulator
- PNG如何变gif?教你一招png秒变gif动图的方法
猜你喜欢
随机推荐
FFmpeg 交叉编译
怎么设计产品手册?用什么设计产品手册?
力扣+牛客--刷题记录
架构设计之一——基础架构
Gif动图如何快速制作?教你1分钟图片合成gif的方法
Methodology of multi-living in different places
NPM - Cannot read properties of null (reading 'pickAlgorithm') 解决方案
找到一个超级神奇,百试百灵的解决 ModuleNotFoundError: No module named xxx 的方法
颜色空间
Colocate Join :ClickHouse的一种高性能分布式join查询模型
photoshop入门教程
软件配置 | pip下载第三方库文件及配置pip源的不完全总结
商业版SSL证书
LeetCode-101. Symmetric Tree
[FreeRTOS] 13 Dynamic Memory Management
【服务器数据恢复】raid5崩溃导致lvm信息和VXFS文件系统损坏的数据恢复案例
JVM学习——2——内存加载过程(类加载器)
一种新的测试方法:视觉感知测试
web安全入门-Kill Chain测试流程
关于Web渗透测试需要知道的一切:完整指南









