Jump to content
  • Advertisement
Sign in to follow this  
LostinTime

Lesson #35

This topic is 3859 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

I am wondering about the lesson 35 on the Avi player. Can the Avi player play all sizes of AVI files, or only certain sizes? I tried a 700 mb avi file (sounds crazy I know, but I just wanted to give it a shot), then, an access violation appeared at the pdata. The glSwapBuffer(window.hDC) also gave an error. What is the problem, if the first question evalutes to the former option?

Share this post


Link to post
Share on other sites
Advertisement
Hello
I migrate recently to Linux and I am trying to play NeHe's examples, but =
I can not with the example: Playing AVI Files In OpenGL=20
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=3D35
The mistake is in the class to read the files .avi, please where I can =
obtain it or what can I do ???

Share this post


Link to post
Share on other sites
The problem ist that in this Lesson Jeff made use of windows-only code. He used some windows multimedia library and there is no lib for linux which you can use the same way.

Uhm is this link the one to the linux code for lesson 35 found on the NeHe site?
I just tried it and you need several libs for that:
Make sure you have libavifile-dev installed, you need avifile-win32 or something like that, which makes you able to use windows codecs, and then you need the dlls which can be found in the w32codec package. (they were all in my Ubuntu Repositories..)

But this version you have then for linx wont compile for windows..

Share this post


Link to post
Share on other sites
this are my errorsssssssss

abd@guillex:~/Desktop/Descargas/lesson35_linux$ make
g++ -g -O2 -Wall -I./ -I/usr/local/include -lglut -lGL -lGLU -laviplay lesson35.cpp -o lesson35
In file included from lesson35.cpp:21:
./GL/glut.h:63:1: warning: "APIENTRY" redefined
In file included from lesson35.cpp:19:
/usr/include/GL/gl.h:104:1: warning: this is the location of the previous definition
lesson35.cpp:25:29: error: avifile/avifile.h: No existe el fichero o el directorio
lesson35.cpp:26:29: error: avifile/version.h: No existe el fichero o el directorio
lesson35.cpp:31:31: error: avifile/default.h: No existe el fichero o el directorio
lesson35.cpp:34:27: error: avifile/image.h: No existe el fichero o el directoriolesson35.cpp:35:32: error: avifile/StreamInfo.h: No existe el fichero o el directorio
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: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: In function ‘void keyboard_func(unsigned char, int, int)’:
lesson35.cpp:343: error: ‘avistream’ was not declared in this scope
make: *** [all] Error 1

Share this post


Link to post
Share on other sites
I need to translate this for Linux:

file:///home/abd/Desktop/Descargas/fichier.aspx.html

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!