• Advertisement
Sign in to follow this  

Playing AVI Files In OpenGL

This topic is 1990 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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 problem.thanks..

Share this post


Link to post
Share on other sites
Advertisement
http://rpmfind.net/l...p?query=avifile
download the rpm and double click on it. (or run rpm -ihv something.rpm from the commandline)

or if it for some reason doesn't work with your version of redhat:
http://avifile.sourceforge.net/

The avifile project is pretty much dead though, last update was in 2006 (NeHes tutorials are ancient aswell) and pretty much everyone would use gstreamer these days. (It is far better and works with both free and commercial codecs) Edited by SimonForsman

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement