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.
Everyone is raving about how cool mplayer is so I thought Id give it a try, I use xine now with a gtk-based media player style gui so I have compiled using gtk...
When I try to "./configure --enable-gui" mplayer I get an error that states:
Quote:
-snip-
Checking for GUI ... yes
Checking for XShape extension ... yes
Checking for gtk version ...
Error: The GUI requires GTK devel packages (which were not found).
Check "configure.log" if you do not understand why it failed.
[root@cdc1 MPlayer-1.0pre4]#
do you have gtk2-devel in the default directories?
If not, you may want to tell the config where they are. I can't remember exactly how but there's a way. If you do, you may want to try to tell it anyways. Couldn't hurt.
I think it's ./configure --libdir=/path/to/gtk2/libs
or something like that.
all else fails, ./configure --help and try try again.
good luck
Yeah, I have gtk & gtk-2.0 directories installed by the system discs when I built the machine in /usr/lib
I guess thats the default place..
-edit-
I guess /usr/lib is incorrect.
After looking through the directories it seems as though the only thing in those dirs is some RedHat specific stuff...
Can anyone tell me where gtk and glib are usually installed?
Last edited by chrisknight; 06-07-2004 at 07:46 PM.
It's in /usr/lib
in slack ... if you compiled from source, and didn't change
the prefix, it's in /usr/local/lib
If you installed from rpm, use rpm -q<x> to find out where
they are ...
Or a
locate libgtk
Well... I got it to work... I guess by default, Fedora2/KDE does not come with GLIB or GTK installed.
I had to install GLIB 1.2 first then GTK 1.2 from source ( http://www.gtk.org/download/ ) ...
after that, "./configure --enable-gui" worked fine.. make & make install went ok and im now watching a video from command line...
Well, I've spent a couple of hours fooling around with mplayer and I finally got it to work. Since I ran into the same issues, I thought I'd write how I made it work, maybe that helps someone.
I use Suse 10.0 Evaluation and this mplayer file "MPlayer v1.0pre7try2 source":
The first step consists in deinstalling the gtk and gtklib which are too recent, for instance via the "Software management" tool in Yast. This will solve the "GTK devel" problem.
Then download a few rpms or the source, whatever you like and install them onto your system. For me, following files worked perfectly:
a)glib-1.2.10-586.i586.rpm
b)glib-devel-1.2.10-595.i586.rpm
c)gtk-devel-1.2.10.885.i586.rpm
That solved the problem I was having while running configure with disabled gcc version check, that is the "GTK devel needed" problem.
Now to the gcc version issue:
At first, I tried to configure mplayer with the "--disable-gcc-checking" option because I figured out that my version of gcc would do and I wasn't thrilled at the thought of downgrading a working program. Well, I was wrong and ran into problems with the compilation of the libacodecs during make. To make a long story short, take the warning concerning the required version of gcc seriously.
So deinstall your gcc, libgcc and cpp using, for instance, the "software management" tool in Yast. Then install the museum version, for me, following files worked perfectly:
a)cpp-3.3.3-1.i586.rpm
b)libgcc-3.3.3-1.i586.rpm
c)gcc-3.3.3-1.i586.rpm
After installing all these files in this version, I had no problem whatsoever configuring and making mplayer with gui support.
Hope this helps anyone. Oh, and you still can reupdate gtk and gcc when you're done compiling mplayer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.