LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 06-07-2004, 06:25 PM   #1
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Rep: Reputation: 15
mplayer needs gtk??? Help?


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]#
config log states:
Quote:
-snip-
libnsl.so.1 => /lib/libnsl.so.1 (0x0464a000)
libc.so.6 => /lib/tls/libc.so.6 (0x009cd000)
libdl.so.2 => /lib/libdl.so.2 (0x00aea000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x009b4000)

Result is: yes
##########################################

============ Checking for gtk version ============
Also, Im running Fedora 2 and checked the install and I DO have gtk2-devel installed...

Can someone help me out?

Thanks,
Chris
 
Old 06-07-2004, 06:26 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Wild guess:

gtk != gtk2
 
Old 06-07-2004, 07:06 PM   #3
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
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
 
Old 06-07-2004, 07:28 PM   #4
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Original Poster
Rep: Reputation: 15
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.
 
Old 06-07-2004, 08:54 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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


Cheers,
Tink
 
Old 06-07-2004, 08:58 PM   #6
FLOODS
Member
 
Registered: Aug 2003
Location: GA
Distribution: Fedora Core 4 Desktop/Server.
Posts: 361

Rep: Reputation: 30
Tinkster nailed it.
 
Old 06-09-2004, 06:12 AM   #7
chrisknight
Member
 
Registered: Jan 2003
Location: ohio
Distribution: CentOS7.6
Posts: 157

Original Poster
Rep: Reputation: 15
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...

Now for thr GUI!

Thanks for your help!
 
Old 06-09-2004, 06:59 AM   #8
kozaki
Member
 
Registered: Jun 2004
Location: France, UE
Distribution: Arch Linux, Bodhi, Debian, Mageia, OpenMediaVault, Q4OS
Posts: 133

Rep: Reputation: 20
That's how to solve this troubleshooting "Can't find GTK devel" from mplayer.

Error message is
Quote:
Checking for gtk version ... Error: The GUI requires GTK devel packages (which were not found).
You can't find gtk-config on your system [locate gtk-config will help to check this]

Then you have to urpmi *libgtk+1.2-devel*

Therefore mplayer will compile without complaining about "Can't find GTK devel"

Hope this helps.
kozaki
 
Old 03-26-2006, 02:23 PM   #9
ManuPeng
Member
 
Registered: Mar 2006
Location: Germany
Distribution: OpenSuse 10.2
Posts: 54

Rep: Reputation: 15
Compiling mplayer

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.

Manu

Last edited by ManuPeng; 03-26-2006 at 04:21 PM.
 
  


Reply



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
mplayer gtk and glib problems degraffenried13 Linux - General 8 04-17-2005 03:32 PM
MPlayer - GTK devel packages? Levitate Debian 14 12-30-2004 01:10 PM
GTK, GTK+ and MPlayer won't install ? ivan@elfak Linux - Newbie 4 02-29-2004 07:19 PM
gtk-devel & mplayer Comarez Linux - Software 11 02-19-2004 10:57 AM
mplayer GTK issues gravelcougchris Linux - Software 2 05-14-2003 02:35 AM

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

All times are GMT -5. The time now is 01:43 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
Open Source Consulting | Domain Registration