glut linux 安装包,linux 下glut.h使用

在Linux系统中进行OpenGL编程,需要安装glut和tmake。本文详细介绍了从下载到安装glut库的过程,包括修改Makefile以解决依赖问题,并提到了tmake的配置与使用,用于生成工程文件和makefile。
摘要由CSDN通过智能技术生成

linux下编写OpenGL程序的一些准备工作

需要用到的软件包有两个,glut 和tmake,分别可以从以下两个网址下载:

下载后的文件假设都放在/usr/src中

首先是安装glut库,以下是从找到的编译glut库的手册()。

Install GLUT 3.7 Distribution (optional)

If you installed the MesaDemos/MesaLib package, then you have

already installed GLUT 3.7 since it is included with MesaDemos.

However, you may be interested in installing the GLUT

manpages and you can skip right to the "Install GLUT manual pages", below ...

Installing GLUT is a bit tricky. I'm not too familiar with imake,

the program that it uses to manage the Makefiles, and didn't quite see

how to get GLUT to install to where I wanted it (/usr/lib,

but MesaDemos will do this without any trouble though). It can be done manually anyhow:

cd /usr/src

tar -xvzf glut-3.7.tar.gz

cd glut-3.7

Read the file: README.linux

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值