Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 am trying to install vlc 0.8.1 on fedora core 2 from a tar.gz.
Once i use the "./configure" command it starts to config and stops with
-------------------------------------------------------------------------------
checking ffmpeg/avcodec.h presence... no
checking for ffmpeg/avcodec.h... no
configure: error: Missing header file ffmpeg/avcodec.h.
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
I hve tryed downloading ffmpeg from the vlc site and extracting then copying the file to the "../modules/codecs/Ffmpeg/" directory and it still does't work.
-------------------------------------------------------------------------------
What am i doing wrong?
you need ffmpeg fully installed. the file should actually reside at somewhere like /usr/include/ffmpeg/avcodec.h but it needs to get there through a proper install, don't just copy it!
i have installed ffmpeg and it still gives me the "header missing" thing. ffmpeg is located in "/usr/local/bin" but vlc keaps saying that avcodec.h is missing.
Also how do i make python install in /usr/local/bin?
I'm guessing the key might be the --enable-shared, as well as it seems they had almost everything disabled by default.
That fixed the avcodec.h problem.
Then vlc's configure complained about a postprocessor (for which I had to create a link from /usr/local/include to /path/to/ffmpeg/libavcodec/libpostproc called postproc
then my configure completed OK.
Now I'm stuck on the make portion - it complains
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-video_filter.o)(.text+0x13b): In function `OpenFilter__ffmpeg':
: undefined reference to `avpicture_alloc'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-video_filter.o)(.text+0x9c5): In function `CloseFilter__ffmpeg':
: undefined reference to `avpicture_free'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-chroma.o)(.text+0x172): In function `OpenChroma__ffmpeg':
: undefined reference to `avpicture_alloc'
./modules/codec/ffmpeg/libffmpeg.a(libffmpeg_a-chroma.o)(.text+0x4fd): In function `CloseChroma__ffmpeg':
: undefined reference to `avpicture_free'
collect2: ld returned 1 exit status
make[2]: *** [vlc] Error 1
make[2]: Leaving directory `/home/pengt/vlc-0.8.1'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pengt/vlc-0.8.1'
make: *** [all] Error 2
The reason for all this is that ffmpeg changed the defns of avpicture_{free,alloc} to static void ().
Changes that inlibavcodec/imgconvert and voila it compiles
Originally posted by cybernytrix The reason for all this is that ffmpeg changed the defns of avpicture_{free,alloc} to static void ().
Changes that inlibavcodec/imgconvert and voila it compiles
Sorry to be rather thick but what exactly do I need to change to get this to work then?
Looking at the imgconvert.c file in ffmpeg the functions you mention definitely are not of type static void() and since the pointer that is passed to them is used withing the function changing them will blow them up.
What do I need to do to get vlc to compile?
It's a great piece of software but amazingly difficult to build so far!
Originally posted by pevelius wouldn´t it be easier to add a repository with vlc to synaptic / yum?
The problem is I need to compile the mozilla plugin so I can use vlc embedded in a web page. Since I'm using Fedora there is no prebuilt plugin. Therefore I have to compile the whole thing. I also need to enhance the http operation of vlc to add my own functions.
It's all deeply frustrating and time wasting doubly so since the package is so versatile.
Linux is all about being 5% there with 95% of your time needed to get to where you want to be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.