LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mplayer encoding problems (https://www.linuxquestions.org/questions/linux-server-73/mplayer-encoding-problems-590010/)

brokenpromises 10-07-2007 03:04 AM

Mplayer encoding problems
 
Hello,

I'm trying to compile and install Mplayer with the --enable-jpeg flag like so:

Code:

./configure --enable-jpeg
The above command succeeds, but for some reason, when I run 'make' to compile it, it's failing. Here's what I get just before it fails:

Code:

vd_ijpg.c:8:21: error: jpeglib.h: No such file or directory
vd_ijpg.c:51: error: field 'pub' has incomplete type
vd_ijpg.c: In function 'METHODDEF':
vd_ijpg.c:58: error: expected declaration specifiers before 'init_source'
vd_ijpg.c:62: error: expected declaration specifiers before 'METHODDEF'
vd_ijpg.c:70: error: expected declaration specifiers before 'METHODDEF'
vd_ijpg.c:86: error: expected declaration specifiers before 'METHODDEF'
vd_ijpg.c:88: error: expected declaration specifiers before 'GLOBAL'
vd_ijpg.c:106: error: field 'pub' has incomplete type
vd_ijpg.c:108: warning: empty declaration
vd_ijpg.c:110: error: storage class specified for parameter 'my_error_ptr'
vd_ijpg.c:112: error: expected declaration specifiers before 'METHODDEF'
vd_ijpg.c:119: error: storage class specified for parameter 'cinfo'
vd_ijpg.c:120: error: storage class specified for parameter 'jerr'
vd_ijpg.c:121: error: storage class specified for parameter 'row_stride'
vd_ijpg.c:122: error: storage class specified for parameter 'temp_row'
vd_ijpg.c:122: error: parameter 'temp_row' is initialized
vd_ijpg.c:125: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
vd_ijpg.c:211: error: old-style parameter declarations in prototyped function definition
vd_ijpg.c:211: error: expected '{' at end of input
make[1]: *** [vd_ijpg.o] Error 1
make[1]: Leaving directory `/root/MPlayer-1.0rc1/libmpcodecs'
make: *** [libmpcodecs/libmpcodecs.a] Error 2

Distro is debian etch. Can anyone tell me why it might be failing? I think it's because "jpeglib.h" is not being found. If this is the problem, what is the solution?

Thanks in advance for any replies!

colucix 10-07-2007 03:10 AM

Quote:

I think it's because "jpeglib.h" is not being found. If this is the problem, what is the solution?
Your guess is right, you need the developement includes and libraries from the libjpeg package. On Debian, I think it is something like libjpeg62-dev package, not sure anyway!

brokenpromises 10-10-2007 01:49 AM

Exactly right, I used

Code:

apt-get install libjpeg62 libjpeg62-dev
To install it, and mplayer compiled just fine.


All times are GMT -5. The time now is 06:16 PM.