LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-16-2009, 11:38 AM   #1
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Rep: Reputation: 19
ffmpeg build - "undeclared" errors


I've been trying so hard not to resort to the forums for this problem, but I have been looking for an answer for weeks now and haven't found it.

I'm trying to compile ffmpeg with a few extras like mp3 enabled. Configuring goes ok, but when I try to build, I get this: (I'll only post the relevent bit at the end)
Code:
dsputil.c: In function `h263_v_loop_filter_c':
dsputil.c:2685: error: `ENABLE_H263_ENCODER' undeclared (first use in this function)
dsputil.c:2685: error: (Each undeclared identifier is reported only once
dsputil.c:2685: error: for each function it appears in.)
dsputil.c:2685: error: `ENABLE_H263P_ENCODER' undeclared (first use in this function)
dsputil.c:2685: error: `ENABLE_MPEG4_ENCODER' undeclared (first use in this function)
dsputil.c:2685: error: `ENABLE_MSMPEG4V1_ENCODER' undeclared (first use in this function)
dsputil.c:2685: error: `ENABLE_MSMPEG4V2_ENCODER' undeclared (first use in this function)
dsputil.c:2685: error: `ENABLE_MSMPEG4V3_ENCODER' undeclared (first use in this function)
dsputil.c: In function `h263_h_loop_filter_c':
dsputil.c:2722: error: `ENABLE_H263_ENCODER' undeclared (first use in this function)
dsputil.c:2722: error: `ENABLE_H263P_ENCODER' undeclared (first use in this function)
dsputil.c:2722: error: `ENABLE_MPEG4_ENCODER' undeclared (first use in this function)
dsputil.c:2722: error: `ENABLE_MSMPEG4V1_ENCODER' undeclared (first use in this function)
dsputil.c:2722: error: `ENABLE_MSMPEG4V2_ENCODER' undeclared (first use in this function)
dsputil.c:2722: error: `ENABLE_MSMPEG4V3_ENCODER' undeclared (first use in this function)
dsputil.c: In function `dsputil_init':
dsputil.c:4247: error: `ENABLE_H263_ENCODER' undeclared (first use in this function)
dsputil.c:4247: error: `ENABLE_H263P_ENCODER' undeclared (first use in this function)
dsputil.c:4247: error: `ENABLE_MPEG4_ENCODER' undeclared (first use in this function)
dsputil.c:4247: error: `ENABLE_MSMPEG4V1_ENCODER' undeclared (first use in this function)
dsputil.c:4247: error: `ENABLE_MSMPEG4V2_ENCODER' undeclared (first use in this function)
dsputil.c:4247: error: `ENABLE_MSMPEG4V3_ENCODER' undeclared (first use in this function)
make[1]: *** [dsputil.o] Error 1
make[1]: Leaving directory `/home/wilsonj/Desktop/ffmpeg/libavcodec'
make: *** [lib] Error 2
I've googled around so much and I'm still not sure why this won't work. any help?
 
Old 01-17-2009, 05:52 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Just to eliminate the obvious, have you made sure that all the library header packages are also installed? If you want to include liblame, for example, you need to have the liblame-dev package installed also. These packages include the header files that are needed to actually compile the program. Configure scripts don't always check for the existence of headers.

Also, please explain the steps you've taken in your build process in greater detail.
 
Old 01-21-2009, 07:39 PM   #3
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
How do I find the names of the header files?? I've been searching the deb archive but to no avail.

Before I was trying to install with TONS of things enabled. I've cut it down to
Code:
 ./configure --enable-shared --enable-libmp3lame --enable-libvorbis
but I still get the same message.
 
Old 01-22-2009, 06:25 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Header (a.k.a. development file) packages nearly always have the same name as the library package, with "-dev" tacked on to the end. So if you install libmp3lame, there should also be a libmp3lame-dev package available. Occasionally there will be slight variations in the package names, but it's still easy to figure them out. An apt search on my system currently shows libvorbis as package name "libvorbis0a", but the headers are all in "libvorbis-dev" (no number), for example.
 
Old 01-23-2009, 09:35 AM   #5
Jinouchi
Member
 
Registered: Jul 2007
Location: WI, USA
Distribution: Debian, Lenny
Posts: 111

Original Poster
Rep: Reputation: 19
Well, I installed the ffmpeg version from the debian-multimedia sources using apt, and that solved my problem of not being able to encode mp3 audio, so I guess all is well for now.

For future reference though, how do I know which codecs I have installed? I understand that the header files are in the "-dev" packages, but I don't know what non dev ones I already have, so I don't know what dev ones I need.
 
Old 01-23-2009, 10:14 AM   #6
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Have a look in /usr/include; I think that's where most of the headers are installed.

Other than that, I don't think there's any easy way to tell. You just have to use your package manager and some guesswork to figure it out. I usually go carefully through the output of the ./configure process myself to see what libraries it's checking for, then confirm that the dev packages are installed for all of them.
 
  


Reply

Tags
ffmpeg


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
"make headers_check" gives errors during "5.5.1 Installation of Linux API headers " void_man() Linux From Scratch 3 09-26-2007 09:16 PM
"NIM thread blocked" & "Deadman Switch (DMS) close to trigger" errors sosborne Linux - Networking 1 06-28-2006 02:07 PM
FC4 install errors, "diabling IRQ #10" "nobody cares" error message??? A6Quattro Fedora 6 07-20-2005 12:49 PM
"undeclared identifier is reported only once for each " KDel Linux - Software 1 04-29-2004 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration