LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 01-08-2005, 02:10 PM   #1
scripts
Member
 
Registered: Dec 2004
Location: East Wenatchee, WA
Posts: 31

Rep: Reputation: 15
VLC VideoLan Problems


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?
 
Old 01-08-2005, 02:38 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
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!
 
Old 01-08-2005, 04:01 PM   #3
scripts
Member
 
Registered: Dec 2004
Location: East Wenatchee, WA
Posts: 31

Original Poster
Rep: Reputation: 15
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?
 
Old 01-23-2005, 03:43 PM   #4
timlin
LQ Newbie
 
Registered: Jan 2005
Location: Chi-town
Distribution: FC2-i386, FC3-x86_64
Posts: 2

Rep: Reputation: 0
./configure options

Had the same problem. Don't know for sure, but to configure ffmpeg I used

./configure --enable-mp3lame --enable-vorbis --enable-pp --enable-a52 --enable-a52bin --enable-shared

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

Good luck to us both!
 
Old 01-23-2005, 04:36 PM   #5
timlin
LQ Newbie
 
Registered: Jan 2005
Location: Chi-town
Distribution: FC2-i386, FC3-x86_64
Posts: 2

Rep: Reputation: 0
don't waste your time on the new version

I got tired of beating my head against the wall and just downloaded

http://download.videolan.org/pub/vid...-binary.tar.gz

tar zxvf vlc-binary.tar.gz
cd vlc
rpm -i --force *.rpm
vlc&

bingo!
 
Old 01-23-2005, 10:11 PM   #6
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
I tried the previous post, which was also the instructions on the VLC homepage, and I am getting Failed Dependencies errors. Several of them:

libcdio.so.0 is needed by cdinfo-0........
""""""
"""""""
etc.

What's the deal with the difficulty installing this player? It is too bad, cause it rocks on win. I was hoping to get it working on Fedora.

Anyone have any ideas?
 
Old 02-02-2005, 01:26 AM   #7
imblum
LQ Newbie
 
Registered: Nov 2004
Location: colorado springs
Distribution: slackware 10
Posts: 2

Rep: Reputation: 0
linked libraries

did you install new libraries?

have you tried: ldconfig
?

matt
 
Old 02-18-2005, 07:36 PM   #8
cybernytrix
LQ Newbie
 
Registered: Feb 2005
Posts: 1

Rep: Reputation: 0
Solution!

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
 
Old 03-02-2005, 06:16 AM   #9
cliffb
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Re: Solution!

Quote:
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!

Cliff
 
Old 03-02-2005, 06:33 AM   #10
pevelius
Member
 
Registered: Mar 2004
Location: Tampere, Finland
Distribution: Debian, Familiar, OS X
Posts: 145

Rep: Reputation: 16
wouldn´t it be easier to add a repository with vlc to synaptic / yum?
 
Old 03-02-2005, 07:18 AM   #11
cliffb
LQ Newbie
 
Registered: Mar 2005
Posts: 2

Rep: Reputation: 0
Quote:
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.
 
  


Reply


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
Problems installing VLC bmccorm2 Linux - Newbie 2 10-20-2005 03:48 PM
Problems with VLC Ephracis Linux - Software 1 11-25-2004 03:45 AM
Still having problems with installing VLC djljjm Linux - Newbie 1 11-19-2004 05:19 PM
videolan vlc Screener Linux - Newbie 0 06-21-2004 06:04 AM
xine,mplayer ,videolan, screen problems Caper Linux - Software 3 07-12-2003 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration