LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 10-07-2007, 03:04 AM   #1
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 97

Rep: Reputation: 21
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!
 
Old 10-07-2007, 03:10 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,506

Rep: Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957Reputation: 1957
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!
 
Old 10-10-2007, 01:49 AM   #3
brokenpromises
Member
 
Registered: Jan 2005
Location: NZ
Distribution: Fedora / Debian
Posts: 97

Original Poster
Rep: Reputation: 21
Exactly right, I used

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


Reply

Tags
compile, mplayer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mplayer subtitles central european encoding kule Linux - Software 0 10-07-2005 06:40 PM
Character encoding problems eduac Linux - Software 5 08-02-2005 06:48 PM
Problems with ripperx encoding walterbyrd Linux - Software 1 03-09-2005 03:04 PM
Encoding with MPlayer mykrob Linux - Software 2 09-07-2004 07:02 PM
mp3 encoding problems Stephanie Linux - General 9 11-16-2001 10:43 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration