Jump to content

  • Log In with Google      Sign In   
  • Create Account


Playing AVI Files In OpenGL


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 praveenchopra   Members   -  Reputation: 102

Like
0Likes
Like

Posted 13 August 2012 - 02:40 AM

hi i am using the code "Playing AVI Files In OpenGL" written by Jeff Molofee (NeHe). when i am building on RHEL 6.1 i am getting this problem.

g++ -g -O2 -Wall -I./ -I/usr/local/include -lglut -lGL -lGLU -laviplay lesson35.cpp -o lesson35
lesson35.cpp:25:29: error: avifile/avifile.h: No such file or directory
lesson35.cpp:26:29: error: avifile/version.h: No such file or directory
lesson35.cpp:31:31: error: avifile/default.h: No such file or directory
lesson35.cpp:34:27: error: avifile/image.h: No such file or directory
lesson35.cpp:35:32: error: avifile/StreamInfo.h: No such file or directory
lesson35.cpp:70: error: ‘avm’ has not been declared
lesson35.cpp:70: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:71: error: ‘avm’ has not been declared
lesson35.cpp:71: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:72: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp:73: error: expected constructor, destructor, or type conversion before ‘*’ token
lesson35.cpp: In function ‘int main(int, char**)’:
lesson35.cpp:110: error: ‘avifile’ was not declared in this scope
lesson35.cpp:110: error: ‘avm’ has not been declared
lesson35.cpp:112: error: ‘avifile’ was not declared in this scope
lesson35.cpp:112: error: ‘avm’ has not been declared
lesson35.cpp:114: error: ‘avifile’ was not declared in this scope
lesson35.cpp:115: error: ‘avistream’ was not declared in this scope
lesson35.cpp:115: error: ‘avm’ has not been declared
lesson35.cpp:117: warning: deprecated conversion from string constant to ‘char*’
lesson35.cpp:119: error: ‘avistream’ was not declared in this scope
lesson35.cpp:120: error: ‘streaminfo’ was not declared in this scope
lesson35.cpp: In function ‘void timer_func(int)’:
lesson35.cpp:268: error: ‘image’ was not declared in this scope
lesson35.cpp:268: error: ‘avistream’ was not declared in this scope
lesson35.cpp:280: error: ‘memcpy’ was not declared in this scope
lesson35.cpp: In function ‘void keyboard_func(unsigned char, int, int)’:
lesson35.cpp:343: error: ‘avistream’ was not declared in this scope
make: *** [all] Error 1

i am new to RHEL and not able to find avifile.h any where in my system.
please guide me to install the avifile package and remove this proble.
thanks..

Sponsor:

#2 hentailoli   Members   -  Reputation: 185

Like
0Likes
Like

Posted 13 August 2012 - 07:42 AM

avifile/avifile.h: No such file or directory

You are missing a header file. That is why you are getting these error. Did you write this file yourself? If so check the file path. Also use "" instead of <> when you are including the file.

EDIT: I am looking at nehe's tutorial and I don't see that file present anywhere. Where did you get it from?
http://nehe.gamedev.net/tutorial/playing_avi_files_in_opengl/23001/

Edited by Solano, 13 August 2012 - 07:43 AM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS