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

Sponsor:

#2 SimonForsman   Crossbones+   -  Reputation: 6105

Like
0Likes
Like

Posted 13 August 2012 - 04:23 AM

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, 13 August 2012 - 04:23 AM.

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!




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