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..
Playing AVI Files In OpenGL
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)
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)
[size="1"]I don't suffer from insanity, I'm enjoying every minute of it.
The voices in my head may not be real, but they have some good ideas!
The voices in my head may not be real, but they have some good ideas!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement