Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old October 24th, 2004   #1
flygmaskin
Just Give Me the Beans!
 
flygmaskin's Avatar
 
Join Date: Oct 2004
Location: Sweden
Beans: 55
Send a message via ICQ to flygmaskin Send a message via MSN to flygmaskin
HOWTO Compile beep-media-player 0.9.7rc2

EDIT: I know that beep-media-player is included in universe, but that is version 0.9.6.1, which is very buggy. You can Tty installing that one first (sudo apt-get install beep-media-player). If you find 0.9.6.1 to be too buggy, you can follow the instructions below instead.

Beep-media-player , or bmp, is a GTK+2 media player, forked from xmms.

From the FAQ:
Quote:
"Milosz Derezynski started hacking on XMMS in fall last year (2003) alone and eventually made it compile against GTK+2. He went on to release it to the public under the name 'Beep' and stirred up considerable interest among XMMS users who were eager to move their favourite application to GTK+2. From that moment on, the way was clear. "
Before you start:
Make sure you have libglade-2.0 installed.

1. Download the 0.9.7rc2 tarball from SourceForge
http://prdownloads.sourceforge.net/b...ar.gz?download

2. Unpack the tarball
Code:
tar -xvzf bmp-0.9.7rc2.tar.gz
3. Enter the new directory
Code:
cd bmp-0.9.7rc2.tar.gz/
4. Run the configure script
Code:
./configure
5. Compile bmp
Code:
make
6. Install bmp
Code:
sudo make install
7. Run bmp
Code:
beep-media-player
Please post any problems that you run in to. You probably need to install some packages in order to do this, and I will add them to this howto whenever I figure out what they are
__________________
16:20, AM

Last edited by flygmaskin; October 25th, 2004 at 03:50 PM..
flygmaskin is offline   Reply With Quote
Old October 24th, 2004   #2
oddabe19
Way Too Much Ubuntu
 
Join Date: Oct 2004
Location: Lancaster, Pennsylvania
Beans: 148
Send a message via AIM to oddabe19
Re: HOWTO Compile beep-media-player 0.9.7rc2

if you want alsa/mp3 remember to pass the --with-alsa / --with-mp3 (? iirc) in your ./configure, or even edit the configure file to suit your needs.
__________________
"For to me, to live is Christ and to die is gain." - Philippians 1:21 (NIV)
oddabe19 is offline   Reply With Quote
Old October 24th, 2004   #3
flygmaskin
Just Give Me the Beans!
 
flygmaskin's Avatar
 
Join Date: Oct 2004
Location: Sweden
Beans: 55
Send a message via ICQ to flygmaskin Send a message via MSN to flygmaskin
Re: HOWTO Compile beep-media-player 0.9.7rc2

Quote:
Originally Posted by oddabe19
if you want alsa/mp3 remember to pass the --with-alsa / --with-mp3 (? iirc) in your ./configure, or even edit the configure file to suit your needs.
I don't think that is necessary, it wasn't for me at least (the mp3 part).
__________________
16:20, AM
flygmaskin is offline   Reply With Quote
Old October 25th, 2004   #4
oddabe19
Way Too Much Ubuntu
 
Join Date: Oct 2004
Location: Lancaster, Pennsylvania
Beans: 148
Send a message via AIM to oddabe19
Re: HOWTO Compile beep-media-player 0.9.7rc2

Make sure you also have the libglade-2.0 libraries installed as well.
__________________
"For to me, to live is Christ and to die is gain." - Philippians 1:21 (NIV)
oddabe19 is offline   Reply With Quote
Old October 25th, 2004   #5
flygmaskin
Just Give Me the Beans!
 
flygmaskin's Avatar
 
Join Date: Oct 2004
Location: Sweden
Beans: 55
Send a message via ICQ to flygmaskin Send a message via MSN to flygmaskin
Re: HOWTO Compile beep-media-player 0.9.7rc2

Quote:
Originally Posted by oddabe19
Make sure you also have the libglade-2.0 libraries installed as well.
Thanks, added to the howto
__________________
16:20, AM
flygmaskin is offline   Reply With Quote
Old November 12th, 2004   #6
redeye
First Cup of Ubuntu
 
Join Date: Oct 2004
Beans: 6
Send a message via AIM to redeye
Re: HOWTO Compile beep-media-player 0.9.7rc2

Hi, I got the following error when configuring:

checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for pkg-config... /usr/bin/pkg-config
checking for glib-2.0 >= 2.4.0 gtk+-2.0 >= 2.4.0 gthread-2.0 pango... Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
configure: error: Cannot find glib2/gtk2/pango
how can i solve this .I have installed gtk2 , glib.
redeye is offline   Reply With Quote
Old November 13th, 2004   #7
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Arrow Re: HOWTO Compile beep-media-player 0.9.7rc2

Just a few suggestions, I'm sure you won't mind.

(Note that in this guide I won't go much into details. Consult Maintainers Guide for more than a dirty little guide. :))

I want to have a control over what's installed on my system. How do I create a package instead?

First, install everything as mentioned by flygmaskin, especially -dev packages. For ALSA support install libasound2-dev and for debianizing sources debmake:
Code:
 sudo apt-get install libasound2-dev debmake

Follow flygmaskin's steps till number three. Instead of running ./configure, make, make install, run following:
Code:
 deb-make
A small dialog will appear asking you for a type of a package you want to create. Answer s for a single binary. Take a look at the debmake manpages to see more options.
This will create debian directory with some files inside bmp sources.
Quote:
[cut]
-rw-r--r-- 1 pef pef 426 2004-11-13 14:21 control
-rwxr-xr-x 1 pef pef 1347 2004-11-13 14:25 rules
[/cut]
(There're more files out there but we'll take a look at the two mentioned above).

control file:
Quote:
* 14:39:25 * pef @ agonicus *
[~/src/beep-media-player-0.9.7rc2] > cat debian/control
Source: beep-media-player
Section: universe/sound
Priority: optional
Maintainer: <beep@seznam.cz>
Standards-Version: 3.5.8
Build-Depends: debmake

Package: beep-media-player
Architecture: i386
Depends: ${shlibs:Depends}
Description: Versatile audio player that supports Winamp skins
A player that supports Winamp skins, with a customizable interface based on
GTK2. It has various output plugins and can read various audio formats.
is used for providing basic but essential information about the package. As you may see, this file controls dependencies as well.
Because we are creating a single, little package in our example, we will leave it as it is. Just type something meaningful into the description and section field. Feel free to use lines used above, they are taken from the official package anyway.

rules file:
Code:
 * 14:41:09 * pef @ agonicus *
 [~/src/beep-media-player-0.9.7rc2] > cat debian/rules
 [cut]
 #!/usr/bin/make -f
 # Made with the aid of debmake, by Christoph Lameter,
 # based on the sample debian/rules file for GNU hello by Ian Jackson.
 
 package=beep-media-player
 
 build:
         $(checkdir)
         ./configure --prefix=/usr 
         $(MAKE) CFLAGS="-O2 -g -Wall"
         touch build
 [/cut]
Again, I won't explain much about this file, consult Maintainers Guide for a full info.
Let's take a look at the build section as seen above. There's is a single parameter given to the ./configure script, --prefix. But we want more options to be included in the package so run ./configure --help to see all.
Code:
  * 14:49:33 * pef @ agonicus *
 [~/src/beep-media-player-0.9.7rc2] > ./configure --help
 `configure' configures bmp 0.9.7rc2 to adapt to many kinds of systems.
(This list is quite long so I won't post it here)
Now go back to your rules file, section build and edit it like this:
Code:
 build:
         $(checkdir)
         ./configure --prefix=/usr --enable-gconf --enable-gnome-vfs --enable-one-plugin-dir
(note that some/all options may be used by default, I just added them to be sure it will compile the way I want to)

Save the file and proceed to the final step:
Code:
 sudo dpkg-buildpackage -D -uc
As usual, feel free to take a look at the manpages of the dpkg-buildpackage command.

Now you should have the package beep-media-player_0.9.7rc2-1_i386.deb/ bmp_0.9.7rc2-1_i386.deb (depends on how did you unpacked the sources) in .. created. Install using dpkg and pat yourself on the back. Mission accomplished. :)
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"

Last edited by p!=f; November 15th, 2004 at 04:37 PM..
p!=f is offline   Reply With Quote
Old November 17th, 2004   #8
tUrtleAE86
5 Cups of Ubuntu
 
Join Date: Nov 2004
Beans: 29
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO Compile beep-media-player 0.9.7rc2

I get the following error trying to run configure on a clean install of warty:

checking for X... no
configure: error: Cannot find X11 headers/libraries

Any ideas?
tUrtleAE86 is offline   Reply With Quote
Old November 17th, 2004   #9
p!=f
Dipped in Ubuntu
 
p!=f's Avatar
 
Join Date: Oct 2004
Location: Prague, Czechia
Beans: 437
Kubuntu 7.10 Gutsy Gibbon
Send a message via ICQ to p!=f
Re: HOWTO Compile beep-media-player 0.9.7rc2

Quote:
Originally Posted by tUrtleAE86
I get the following error trying to run configure on a clean install of warty:

checking for X... no
configure: error: Cannot find X11 headers/libraries

Any ideas?
You don't have X11 dev packages installed.
Code:
sudo apt-get install x-dev
__________________
"Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

RFC 3092 - Etymology of "Foo"
p!=f is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:11 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry