LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-06-2006, 07:30 AM   #1
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Rep: Reputation: 35
GTK devel packages on Debian?


Hi. im trying to install mplayer with the gui and it is saying i need the GTK devel packages. I know this means i need the package like gtk-devel or gtk2-devel. I've installed mplayera few times before with the gui installed, but i am new to debian. I searched in sypatic for gtk for devel packages but didn't see any. What is the exact package name i have to install to do apt-get install? I know it can be a little picky because i tried apt-get install firefox and learned later on it didn't work cuz i had to do apt-get install mozilla-firefox. thanks for any replies in advance.
 
Old 05-06-2006, 10:47 AM   #2
cux
LQ Newbie
 
Registered: May 2006
Location: México
Distribution: Debian
Posts: 26

Rep: Reputation: 15
Do an:

apt-get install gnome-devel

and you'll be fine.

I recommend this how to (to get MPlayer successfully compiled in Debian):

http://www.princessleia.com/MPlayer.php

Hope it helps!!
 
Old 05-09-2006, 03:46 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Do you have any benefit of compiling it yourself?
Why don't you take a pre-made binary? It works great with optimizations and gui.
 
Old 05-10-2006, 11:32 AM   #4
cux
LQ Newbie
 
Registered: May 2006
Location: México
Distribution: Debian
Posts: 26

Rep: Reputation: 15
Well, actually the easy way to do it is getting a MPlayer deb package and install it, this way you'll asure a succesfull installation. But, if you compile the software it will be faster and very optimized for your platform.

So, i guess you can compile it if you don't have a very fast machine, that way you can get a "extra" better performance. If you have a fast machine, the best and easy way is to get it in a package.
 
Old 05-13-2006, 04:01 AM   #5
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
hi. thanks for the replies. I tried apt-get install gnome-devel but still says i need gtk. I didn't see a .deb package for mplayer on their site that is why i didn't get a binary. Also gtk isn't some obscure libary that only mplayer would need but other programs as well so i may as well address it now as opposed to when i try to compile another program that needs it.
 
Old 05-15-2006, 02:54 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Put this in your /etc/apt/sources.list
Code:
# Stable:
deb ftp://ftp.nerim.net/debian-marillat/ sarge main
# Testing:
deb ftp://ftp.nerim.net/debian-marillat/ etch main
# Unstable:
deb ftp://ftp.nerim.net/debian-marillat/ sid main
deb-src ftp://ftp.nerim.net/debian-marillat/ sid main
then as usual, apt-get update, apt-get install mplayer.

to be precise, these are available:

mplayer-586 1:1.0-pre7cvs20060219-0.1
mplayer-nogui 1:1.0-pre7cvs20060430-0.0
mplayer-nogui 1:1.0-pre7cvs20060325-0.3
mplayer-nogui 1:1.0-pre7cvs20060219-0.2sarge1
mplayer-k6 1:1.0-pre7cvs20060219-0.2sarge1
mplayer-586 1:1.0-pre7cvs20060219-0.2sarge1
mplayer-386 1:1.0-pre7cvs20060219-0.2sarge1


mplayer binaries has builtin runtime cpu detection so it is already optimized for a lot of architectures/cpus. (At the beginning it detects on which architecture it is being run and executes different code with optimizations. So the detection part can be skipped but I'm not sure it's really faster for watching anything.)

Also I bet mplayer is quite hard to compile. It can be intersting to recompile if it lacks support for this or that codec but I'm sure you will always find a prebuilt binary.

And if you need gtk-devel, just apt-get install libgtk2.0-devel for gtk2
Gnome-devel pulls something like 100 dev packages (X11,sound,..)

Last edited by nx5000; 05-15-2006 at 02:56 AM.
 
Old 05-16-2006, 10:27 AM   #7
dr_zayus69
Member
 
Registered: Sep 2004
Location: western massachusetts
Distribution: fedora core 3, Suse 10
Posts: 877

Original Poster
Rep: Reputation: 35
when i do apt-get install libgtk2.0-dev it says it is already the lastest version (apt-get install libgtk2.0-devel says it couldn't find the package) I think my problem is mplayer either wants an older version of gtk or can't find the development packages on my system because maybe debian puts them in a non standard place. So i think if i can figure out which path they are in i just need to configure with the --with-gtk-config=PATH option. thanks for your help so far.
 
Old 05-16-2006, 12:01 PM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Yes, that would be the correct option, something with gtk(2?) inside, I don't have mplayer source here so I'm not sure..

Debian always put file in their standard place :-) Its one of the first criteria why I use this distro.

One of these two commands will show you the files contained in this package, the first doesn't even need libgtk2.0-dev to be installed
Code:
apt-file list libgtk2.0-dev
dpkg -L libgtk2.0-dev
This will even show you what should be on the gcc line. This is the portable way of finding which options have to be used. This is how makefile and configures should be done, using pkg-config.

Code:
debian:~# pkg-config --libs gtk+-x11-2.0
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lX11 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
 
  


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 : GUI requires GTK devel packages ?? logicalfuzz Linux From Scratch 6 10-01-2005 01:32 AM
gtk+ devel packages mindkill Linux - Software 1 09-12-2005 03:50 AM
how to add GTK devel packages? alexwang74 Linux - Software 4 06-14-2005 09:03 PM
MPlayer - GTK devel packages? Levitate Debian 14 12-30-2004 01:10 PM
libglade and gtk devel packages contrasutra Slackware 3 05-24-2003 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:47 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