Visit Our UNIX and Linux User Community


Error: GL/glut.h: No such file or directory


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Error: GL/glut.h: No such file or directory
# 1  
Old 09-07-2009
Error: GL/glut.h: No such file or directory

hi,

I get this error when I compile my source on mac Leopard.

is because I need to configure openGL path ?



Code:
Monitor.h:15:60: error: GL/glut.h: No such file or directory
Monitor.h:16:60: error: GL/gl.h: No such file or directory
Monitor.C: In function 'void display2()':
Monitor.C:77: error: 'glutSetWindow' was not declared in this scope
Monitor.C:78: error: 'GL_COLOR_BUFFER_BIT' was not declared in this scope
Monitor.C:78: error: 'glClear' was not declared in this scope
Monitor.C:87: error: 'glColor3f' was not declared in this scope
Monitor.C:88: error: 'glRasterPos2f' was not declared in this scope
Monitor.C:104: error: 'GLUT_BITMAP_HELVETICA_10' was not declared in this scope
Monitor.C:104: error: 'glutBitmapCharacter' was not declared in this scope
Monitor.C:115: error: 'glutSwapBuffers' was not declared in this scope
Monitor.C: In function 'void display()':
Monitor.C:134: error: 'GL_COLOR_BUFFER_BIT' was not declared in this scope
Monitor.C:134: error: 'glClear' was not declared in this scope
Monitor.C:168: error: 'glColor3f' was not declared in this scope
Monitor.C:169: error: 'glRecti' was not declared in this scope
Monitor.C:195: error: 'glColor3f' was not declared in this scope
Monitor.C:197: error: 'GL_POLYGON' was not declared in this scope
Monitor.C:197: error: 'glBegin' was not declared in this scope
Monitor.C:204: error: 'glVertex2f' was not declared in this scope
Monitor.C:206: error: 'glEnd' was not declared in this scope
Monitor.C:211: error: 'glRasterPos2f' was not declared in this scope
Monitor.C:214: error: 'GLUT_BITMAP_HELVETICA_10' was not declared in this scope
Monitor.C:214: error: 'glutBitmapCharacter' was not declared in this scope
Monitor.C:242: error: 'glColor3f' was not declared in this scope
Monitor.C:244: error: 'GL_POLYGON' was not declared in this scope
Monitor.C:244: error: 'glBegin' was not declared in this scope
Monitor.C:245: error: 'glVertex2f' was not declared in this scope
Monitor.C:248: error: 'glEnd' was not declared in this scope
Monitor.C:253: error: 'glRasterPos2f' was not declared in this scope
Monitor.C:256: error: 'GLUT_BITMAP_HELVETICA_10' was not declared in this scope
Monitor.C:256: error: 'glutBitmapCharacter' was not declared in this scope
Monitor.C:270: error: 'glColor3f' was not declared in this scope
Monitor.C:274: error: 'GL_LINES' was not declared in this scope
Monitor.C:274: error: 'glBegin' was not declared in this scope
Monitor.C:275: error: 'glVertex2d' was not declared in this scope
Monitor.C:277: error: 'glEnd' was not declared in this scope
Monitor.C:282: error: 'GL_LINES' was not declared in this scope
Monitor.C:282: error: 'glBegin' was not declared in this scope
Monitor.C:283: error: 'glVertex2d' was not declared in this scope
Monitor.C:285: error: 'glEnd' was not declared in this scope
Monitor.C:296: error: 'glutSwapBuffers' was not declared in this scope
Monitor.C: In function 'void reshape(int, int)':
Monitor.C:320: error: 'glViewport' was not declared in this scope
Monitor.C:322: error: 'glutSetWindow' was not declared in this scope
Monitor.C:323: error: 'glutReshapeWindow' was not declared in this scope
Monitor.C:324: error: 'glutPositionWindow' was not declared in this scope
Monitor.C: In function 'void reshape2(int, int)':
Monitor.C:336: error: 'glViewport' was not declared in this scope
Monitor.C: In function 'void idle(int)':
Monitor.C:358: error: 'glutSetWindow' was not declared in this scope
Monitor.C:359: error: 'glutPostRedisplay' was not declared in this scope
Monitor.C:364: error: 'glutTimerFunc' was not declared in this scope
Monitor.C: In function 'int main(int, char**)':
Monitor.C:647: error: 'glutInit' was not declared in this scope
Monitor.C:648: error: 'GLUT_DOUBLE' was not declared in this scope
Monitor.C:648: error: 'GLUT_RGB' was not declared in this scope
Monitor.C:648: error: 'glutInitDisplayMode' was not declared in this scope
Monitor.C:649: error: 'glutInitWindowSize' was not declared in this scope
Monitor.C:651: error: 'glutCreateWindow' was not declared in this scope
Monitor.C:653: error: 'GL_PROJECTION' was not declared in this scope
Monitor.C:653: error: 'glMatrixMode' was not declared in this scope
Monitor.C:654: error: 'glLoadIdentity' was not declared in this scope
Monitor.C:655: error: 'GLdouble' was not declared in this scope
Monitor.C:655: error: expected `)' before 'PS'
Monitor.C:656: error: expected `)' before 'PS'
Monitor.C:657: error: 'glOrtho' was not declared in this scope
Monitor.C:658: error: 'GL_MODELVIEW' was not declared in this scope
Monitor.C:661: error: 'glClearColor' was not declared in this scope
Monitor.C:662: error: 'GL_COLOR_BUFFER_BIT' was not declared in this scope
Monitor.C:662: error: 'glClear' was not declared in this scope
Monitor.C:664: error: 'glutTimerFunc' was not declared in this scope
Monitor.C:665: error: 'glutDisplayFunc' was not declared in this scope
Monitor.C:666: error: 'glutReshapeFunc' was not declared in this scope
Monitor.C:668: error: 'glutCreateMenu' was not declared in this scope
Monitor.C:669: error: 'glutAddMenuEntry' was not declared in this scope
Monitor.C:673: error: 'GLUT_LEFT_BUTTON' was not declared in this scope
Monitor.C:673: error: 'glutAttachMenu' was not declared in this scope
Monitor.C:674: error: 'GLUT_RIGHT_BUTTON' was not declared in this scope
Monitor.C:675: error: 'glutKeyboardFunc' was not declared in this scope
Monitor.C:679: error: 'glutCreateSubWindow' was not declared in this scope
Monitor.C:684: error: expected `)' before numeric constant
Monitor.C:684: error: expected `)' before 'PS'
Monitor.C:685: error: expected `)' before numeric constant
Monitor.C:696: error: 'glutMainLoop' was not declared in this scope
make[3]: *** [Monitor.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1


thanks
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #662
Difficulty: Easy
The drives in DOS are referred to by identifying integers.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

No such file or directory error

I am new to shell scripting so I assume there is something basic I am missing but I have not been able to figure it out. When I run the following code from a script it can't find the paths to the directory or files. I can literally cut and paste the commands into terminal and they work fine. Why... (2 Replies)
Discussion started by: TryAgain12
2 Replies

2. Shell Programming and Scripting

Weird Error (: No such file or directory)

Hi Everyone, I am trying to make this script to use, to find out the DAHDI channel status. Every thing works fine, I even get proper results, however I have this weird error that comes along. Can someone please help me. Thanks a lot. #!/bin/bash # Color to set the test to when a channel is... (3 Replies)
Discussion started by: jeetz
3 Replies

3. Shell Programming and Scripting

No Such File or Directory error

Hi! I just recently started messing around with Unix, but I've come upon one problem multiple times. Whenever I try to run a shell script, for example; #! /bin/bash #-------------------------------------- # example1 #-------------------------------------- echo "Hello, World!" I... (5 Replies)
Discussion started by: SoapilyProne
5 Replies

4. Solaris

/bin/find: stat() error <File> : No such file or directory

Hi, I am getting below error in Solaris 10 SPARC when trying to issue a search on /var/tmp partition Below is the query /bin/find /var/tmp/ -type f -atime +1 Below is the result /bin/find: stat() error <File> : No such file or directory (28 Replies)
Discussion started by: prash358
28 Replies

5. Shell Programming and Scripting

No such file or directory error

Hi, After executing load_data.sh script , it completes the steps in script but give following error.Please let me know how to fix it. ./load_data.sh: ' missing ./load_data.sh: 0: not found for i in 1 2 3 do ###some processing#### DLOG=$( eval echo \${TXPCY_${i}_DATA_FILE_LOG} )... (4 Replies)
Discussion started by: sandy162
4 Replies

6. Shell Programming and Scripting

Error : No such file or directory

Hi, I have issued the below command to remove directories under a specific path, it removes them fine. But atlast it tries to find the same directory and fails. Directories: /root/app/dir /root/app/dir/files/ /root/app/dir/backup/ /root/app/dir/archive/ Command: find... (1 Reply)
Discussion started by: vel4ever
1 Replies

7. UNIX for Dummies Questions & Answers

SCP error: No such file or directory

Hi, I am trying to do scp using the following script: #!/usr/local/bin/bash BUILDDATE=20120220 for line in `cat arch_host_plat_src_dest` do src=`echo $line | cut -d: -f4` dest=`echo $line | cut -d: -f5` echo scp -p /builds/${BUILDDATE}/Integration/$src ... (1 Reply)
Discussion started by: Technext
1 Replies

8. UNIX for Advanced & Expert Users

Problems opening GLUT

Hi there, I realize this may not be directly related to Unix, but I have recently been using an fMRI analysis program called FreeSurfer which is primarily run in the tclsh shell. However, I have been unable to open up the GUI, and I get the following error message when I attempt to do so: ... (0 Replies)
Discussion started by: Jahn
0 Replies

9. UNIX for Dummies Questions & Answers

SFTP error: no such file or directory

Hi All, I am using a shell script for SFTPing the files to target server. The problem which I am facing is that even if the files are not transferred, the script finishes successfully. I want the script to fail in case the remote directory does not exists. The script which I am using is as... (1 Reply)
Discussion started by: shalini@@@
1 Replies

10. Linux

error: rw/regexp.h: No such file or directory

Hello every one, i am trying to compile c++ modules. while compiling a module i am getting the following error. cdbh_RecordStore.C:32:23: error: rw/regexp.h: No such file or directory make: *** Error 1 I googled for the solution , i found that this is a Rogue wave class. actually... (0 Replies)
Discussion started by: mannam srinivas
0 Replies

Featured Tech Videos