免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2854 | 回复: 7
打印 上一主题 下一主题

[IRIX] IRIX下OpenGL库问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-15 11:13 |只看该作者 |倒序浏览
我机器上只有基本库gl.h,没有辅助库和实用库glut.h,glaux.h,乍办

论坛徽章:
0
2 [报告]
发表于 2005-01-15 11:44 |只看该作者

IRIX下OpenGL库问题

http://bbs.chinaunix.net/forum/viewtopic.php?t=336340&show_type=old

Get glut from

www.freeware.sgi.com -->; alphabetical order -->; fw_glut...

论坛徽章:
0
3 [报告]
发表于 2005-01-15 12:13 |只看该作者

IRIX下OpenGL库问题

telnet server: INDIGO
Xclient: INDIGO ->; IP20 CPU:R4000 50 MHz (1992 machine)


telnet client: O2
Xserver: O2 ->; IP32 CPU:R5k 180 MHz


opengl program: polygon.cc
compile on INDIGO using gcc-3.3  (from -->; freeware.sgi.com )
execute program on INDIGO
display result via X at O2

indigo-o2-opengl-telnet-export-DISPLAY.JPG (81.93 KB, 下载次数: 65)

indigo-o2-opengl-telnet-export-DISPLAY.JPG

论坛徽章:
0
4 [报告]
发表于 2005-01-25 19:45 |只看该作者

IRIX下OpenGL库问题

按楼上说的把glut装上了,自动生成一个文件夹freeware,在makefile里直接指向它好像还出毛病(glut.h unavailable),还差那一步啊?

论坛徽章:
0
5 [报告]
发表于 2005-01-25 21:27 |只看该作者

IRIX下OpenGL库问题

Take a good look at the contents of /usr/freeware/include/GL, especially if you use gcc  

论坛徽章:
0
6 [报告]
发表于 2005-01-28 13:24 |只看该作者

IRIX下OpenGL库问题

There are many header file under the directory including glut.h,and I have tried to copy them to the directory /usr/include/GL too,but it is still unavailable,what can I do?

论坛徽章:
0
7 [报告]
发表于 2005-01-29 06:59 |只看该作者

IRIX下OpenGL库问题

[quote]原帖由 "kodong122"]There are many header file under the directory including glut.h,and I have tried to copy them to the directory /usr/include/GL too,but it is still unavailable,what can I do?[/quote 发表:


Hmmmm... No good.

Try something like:

1.
  1. gcc -o prog prog.c -I/usr/freeware/include/GL ...
复制代码


or

1' less desirable

in your program

  1. #include "/usr/freeware/include/GL/glut.h"
复制代码


instead of

  1. #include <glut.h>;
复制代码


2. read the glut man pages
  1. % man glut
复制代码

论坛徽章:
0
8 [报告]
发表于 2005-01-29 08:56 |只看该作者

IRIX下OpenGL库问题

是啊,不能这样拷贝了事,有时候文件同名破坏了原文件引起其他问题,更重要的是这样你开发的东西在你机器的环境可能没有问题,不是规范标准的东西。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP