LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   MPlayer checking problem (https://www.linuxquestions.org/questions/slackware-14/mplayer-checking-problem-165444/)

flubber 04-02-2004 01:58 PM

MPlayer checking problem
 
When I tried to do this comman (./configure --enable-gui) in Mplayer's source I got an error message: Error: X11 support required for GUI compilation. I don't understand! What kind of X11 support Mplayer needs? Please help me! Thanks in advance.

Andrew Benton 04-02-2004 05:01 PM

What you've posted doesn't make much sense, it would help if you could copy and paste the actual text from the shell and don't forget to include a 5 or 10 lines before the error so we can see what lead up to it.

vi0lat0r 04-02-2004 05:28 PM

MPlayer is difficult to setup the first time you set it up... considering you have to do it in shell ;-)

Also, you have to execute the program from shell, unless you add it to the start menu. Plus for GUI you have to have a skin in the skins folder, and a font in the fonts folder. Difficult, like I said, the first time installing, but it's -WELL- worth it I say :-)

itsjustme 03-16-2005 10:37 PM

Re: MPlayer checking problem
 
Quote:

Originally posted by flubber
When I tried to do this comman (./configure --enable-gui) in Mplayer's source I got an error message: Error: X11 support required for GUI compilation. I don't understand! What kind of X11 support Mplayer needs? Please help me! Thanks in advance.
I have this exact question. I see there was no answer here.

I downloaded mplayer and the codecs and the fonts as detailed in the README.

I ran sudo ./configure (this is in ubuntu)
Then I noticed the README says:

to configure MPlayer with the default options. The codecs you installed above
should be autodetected. GUI support has to be enabled separately, run

./configure --enable-gui

I then did that and got an error that I needed libpng and libpng-dev. Well, I had libpng, but I had to install libpng-dev. Then I ran ./configure --enable-gui again. This time I got the:
Error: X11 support required for GUI compilation.

I saw there's an --enable-x11 option, I tried that: ./configure --enable-x11 --enable-gui, but got the same error message: Error: X11 support required for GUI compilation.

I don't know what it wants. Maybe I should just forget about the gui part and stick with plain ol' ./configure.

I looked in the README for X11 and just discovered this:

- To compile MPlayer with X11 support, you need to have the XFree86 development
packages installed.
- For the GUI you need the libpng and GTK 1.2 development packages.

Maybe it doesn't like xorg?

I have, according to synaptic, gtk2-engines-abunchofstuff, including gtk2-engines-dev. There's no mention of gtk 1.2. Oh, well...

itsjustme 03-16-2005 10:54 PM

Man... does mplayer installation really suck this bad?

EricTheLeg 04-10-2005 09:32 PM

There are bad RPMs floating around. Specifically some of the xorg-libs-devel have a non-working Xext library. Only solution that I found was to download xorg source, compile, move my /usr/X11R6/ directory, make an empty one and install. The follow-up for this is messy though because any of your graphics libraries installed under X need to be reinstalled (gtk, glib, their devel packages etc). This can be done from your source CD, but it's still messy (rpm -i --force...). Installing by this method includes all your xorgs-libs/devel/etc, so don't go and re-install the rpm'd libraries that caused the problem in the first place ;-)

If you decide to go that route don't yell at me when you spend some time on it, but just FYI, it DID work!

itsjustme 04-10-2005 09:52 PM

There's no crying in baseball.

There's no RPM's in slackware.

And, you just helped confirm that mplayer installation really does suck!

:D

EricTheLeg 04-10-2005 11:06 PM

RPMs, Binaries, either way they're out there and seem to be getting onto peoples' systems.

Shade 04-11-2005 12:01 AM

I think you might be missing the xorg devel libraries.

--Shade

kencaz 04-11-2005 12:44 AM

Mplayer has extensive documentation...
http://www.mplayerhq.hu/DOCS/HTML/en/index.html

I use it almost exclusivally for music, video, streaming, and through my web browser and have had no problems with it.

I would suggest using your distros (UPDATED) package mgr. so it will install all the dependencies it needs. don't give up on it. It's a wonderfull program.

KC

AxeZ 04-11-2005 12:53 AM

Funny....I never had any problems like that with compiling mplayer in Slackware and I do it all the time with CVS version.

reddazz 04-11-2005 02:45 AM

You need to make sure that you have the xorg devel package installed. It is called x11-devel (or something similar)

AxeZ 04-11-2005 04:29 PM

Quote:

Originally posted by reddazz
You need to make sure that you have the xorg devel package installed. It is called x11-devel (or something similar)
Slackware doesn't have devel packages...everything is included in regular Slackware package, including headers.

reddazz 04-11-2005 05:13 PM

Yes it has for xorg, check in the package listing for Slackware 10.1.

EricTheLeg 04-11-2005 05:34 PM

does anybody else find it funny that after I suggested that a file found in some versions of the xorg-libs-devel binaries may be corrupt, someone with 1000+ prior posts comes in and suggests that you (or I) might not have xorg-libs-devel installed (actually 2 of them)?

I'm sorry I won't be clicking thanks!

This seems to be quite a specific problem.

BTW, having the corrupt libXext.so file also killed my OpenOffice.org, which if started from command line gave an error indicating that the Xext library was not working. Investigation using ld /usr/...../ lXorg also showed the library as being corrupt.

As most of the threads where I came across this problem also made mention of X86_64, it could be limited to the binaries available for that architecture.

shilo 04-11-2005 06:09 PM

Probably doesn't help anyone, but on one of my Slackware installs, I use my very own self made cheat sheet. It may be useful to others.

Note, this is using a Slackware 10.1 install, with NVidia drivers already installed. Also note that I use tab completion for part of this, because the names tend change every day. :)

**EDIT**
Also, note that the last line, about the ttf fonts can be changed to ANY ttf font from anywhere on your system. This just happens to be a font that I have on my system.
**/EDIT**

Anyway:

Code:

        $ mkdir -p /tmp/mplayer
        $ cd /tmp/mplayer
        $ wget ftp://ftp5.mplayerhq.hu/mplayer/cvs/MPlayer-current.tar.bz2
        $ wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20050216.tar.bz2
        $ tar -xvjf MPlayer-current.tar.bz2
        $ tar -xvjf all-20050216.tar.bz2
        $ cd all<tab><enter>
        $ su
        # mkdir /usr/lib/codecs
        # cp * /usr/lib/codecs
        # ln -s /usr/lib/codecs /usr/lib/win32
        # exit
        $ cd ../MPlayer<tab>2<tab><enter>
        $ ./configure --prefix=/usr --confdir=/etc --enable-gui --with-codecsdir=/usr/lib/win32 --enable-xvmc --with-xvmclib=XvMCNVIDIA --with-extraincdir=/usr/include/cdio
        $ make
        $ su
        # checkinstall
        # exit
        $ mkdir ~/.mplayer
        $ cp /usr/share/mythtv/FreeSans.ttf ~/.mplayer/subfont.ttf
        $

With the issue of what is required from X11, this should tell you what works for me (all 10.1 packages from fresh Slackware install):

Code:

mythuser@mythtv:~$ ls /var/log/packages/x11*
/var/log/packages/x11-6.8.1-i486-3
/var/log/packages/x11-devel-6.8.1-i486-3
/var/log/packages/x11-docs-6.8.1-noarch-2
/var/log/packages/x11-docs-html-6.8.1-noarch-2
/var/log/packages/x11-fonts-100dpi-6.8.1-noarch-2
/var/log/packages/x11-fonts-cyrillic-6.8.1-noarch-2
/var/log/packages/x11-fonts-misc-6.8.1-noarch-2
/var/log/packages/x11-fonts-scale-6.8.1-noarch-2
/var/log/packages/x11-xdmx-6.8.1-i486-2
/var/log/packages/x11-xnest-6.8.1-i486-2
/var/log/packages/x11-xvfb-6.8.1-i486-2

While not ALL are required, I'm guessing that you can use this to figure out what you are missing that needs to be added.

itsjustme 04-11-2005 06:18 PM

hehe....

Did I mention that mplayer installation sucks!!!!?

;) :D

shilo 04-11-2005 06:28 PM

Quote:

Did I mention that mplayer installation sucks!!!!?
Why? Use the above. It's about as easy as it comes.

If that is too hard, just grab the codecs and use the relevant sections above. Then use xine. It comes right from Slackware and can use the MPlayer codecs. I'll even modify the above instructions so that the codecs are sure to work right for you in xine.

Code:

$ mkdir -p /tmp/mplayer
$ cd /tmp/mplayer
$ wget http://www1.mplayerhq.hu/MPlayer/releases/codecs/all-20050216.tar.bz2
$ tar -xvjf all-20050216.tar.bz2
$ cd all<tab><enter>
$ su
# mkdir /usr/lib/codecs
# cp * /usr/lib/codecs
# ln -s /usr/lib/codecs /usr/lib/win32
# exit
$

That is simple and should take less than, oh, 3 minutes, depending on connection speed and how fast you type (or copy and paste).

itsjustme 04-11-2005 06:34 PM

Quote:

Originally posted by shilo
Why?
No... I'm sure you're right. I'll check it out.
But I would like to just go ... 'install mplayer' and be happy. ;)

I installed the codecs and fonts. And, well, I'm doing this in ubuntu. :eek:

But, it was the exact same error from the original poster here in slackware.

shilo 04-11-2005 07:02 PM

Quote:

I'm doing this in ubuntu. :eek:
Maybe this will help.

http://mplayerhq.hu/pipermail/mplaye...il/052452.html


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