LinuxQuestions.org
Visit Jeremy's Blog.
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 11-08-2006, 05:09 PM   #1
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Rep: Reputation: 31
compile problem of ffmpeg


Quote:
make[1]: Leaving directory `/usr/src/ffmpeg/libavformat'
gcc -Wl,--warn-common -rdynamic -g -o ffplay_g ffplay.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil -lavutil -lm -lvorbis -lvorbisenc -logg -lz -ldl -L/usr/lib -lSDL -lpthread
ffplay.o: In function `main':
/usr/src/ffmpeg/ffplay.c:2451: undefined reference to `XOpenDisplay'
/usr/src/ffmpeg/ffplay.c:2455: undefined reference to `XCloseDisplay'
collect2: ld returned 1 exit status
make: *** [ffplay_g] Error 1
The above is the error I get when I try to compile ffmpeg.

Any obvious solutions, or suggestions?

I'm on Fedora Core 6.

Thank you.

Last edited by fw12; 11-08-2006 at 05:12 PM.
 
Old 11-08-2006, 05:20 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
According to a mailing list response, -lX11 is needed so that libX11 is picked up. The "make" file may be in error. Also check the output of "./configure --help" for a with_x11 or no_x11 option argument that should be added to ./configure.

Last edited by jschiwal; 11-08-2006 at 05:22 PM.
 
Old 11-08-2006, 05:49 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Ffmpeg is in the Livna repo if you wish to install it from an rpm.
 
Old 11-08-2006, 06:38 PM   #4
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
Quote:
According to a mailing list response, -lX11 is needed so that libX11 is picked up. The "make" file may be in error.
Thanks for throwing me a bone.
Can you shed some more light on what needs to be done with -lX11? I'm just an enthusiast learning as I go along.

Quote:
Also check the output of "./configure --help" for a with_x11 or no_x11 option argument that should be added to ./configure.
It doesn't have it. I can post the output of ./configure --help if required.

Quote:
Ffmpeg is in the Livna repo if you wish to install it from an rpm.
It failed dependencies. I'm working on that right now.

Thank you.
 
Old 11-08-2006, 10:03 PM   #5
fw12
Member
 
Registered: Mar 2006
Distribution: Fedora core, Ubuntu
Posts: 175

Original Poster
Rep: Reputation: 31
After installing about ten dependencies, ffmpeg installed from rpm.

Thanks again.
 
Old 11-09-2006, 07:56 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
Installing from source can be just as trying. I once found out that I needed to drop the dependencies source code into the project directory itself.
 
Old 08-29-2009, 08:46 AM   #7
gkrellm
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Run ./configure
Then edit Makefile

Remove string

Code:
LDFLAGS+= -g
and input instead

Code:
LDFLAGS+= -g -lX11
Then make, make install.

All works.

ffmpeg-cvs-20060306
 
  


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
cant compile ffmpeg on FC5 aditya1 Linux - Software 1 09-19-2006 09:06 PM
ffmpeg compile help gfem Linux - Software 4 01-06-2006 03:28 PM
Problem with ffmpeg.. BDiddy Linux - Software 0 10-18-2005 03:38 PM
I'm trying to compile ffmpeg using arm compiler Jeon, Chang-Min Linux - General 2 09-15-2005 05:31 AM
Curious problem with ffmpeg EwanG Linux - Software 0 05-07-2004 08:30 AM

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

All times are GMT -5. The time now is 11:29 PM.

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