Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.