Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: HOWTO Compile beep-media-player 0.9.7rc2

  1. #1
    Join Date
    Oct 2004
    Location
    Sweden
    Beans
    55

    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:
    "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
    Last edited by flygmaskin; October 25th, 2004 at 08:50 PM.
    16:20, AM

  2. #2
    Join Date
    Oct 2004
    Location
    Lancaster, Pennsylvania
    Beans
    147

    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)

  3. #3
    Join Date
    Oct 2004
    Location
    Sweden
    Beans
    55

    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

  4. #4
    Join Date
    Oct 2004
    Location
    Lancaster, Pennsylvania
    Beans
    147

    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)

  5. #5
    Join Date
    Oct 2004
    Location
    Sweden
    Beans
    55

    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

  6. #6
    Join Date
    Oct 2004
    Beans
    6

    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.

  7. #7
    Join Date
    Oct 2004
    Location
    Sweden
    Beans
    55

    Re: HOWTO Compile beep-media-player 0.9.7rc2

    Quote Originally Posted by redeye
    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.
    You have to install the -dev packages
    Code:
    sudo apt-get install libgtk2.0-dev libglib2.0-dev libpango-dev libglade-dev
    I'm not sure if that are all the packages needed, just post again if you get any more problems.
    16:20, AM

  8. #8
    Join Date
    Oct 2004
    Location
    Prague, Czechia
    Beans
    437
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    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.
    [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:
    * 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. :)
    Last edited by p!=f; November 15th, 2004 at 09:37 PM.
    "Linux is like a wigwam. No Windows, no Gates and Apache inside!" - Unknown

    RFC 3092 - Etymology of "Foo"

  9. #9
    Join Date
    Nov 2004
    Beans
    30
    Distro
    Ubuntu 9.10 Karmic Koala

    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?

  10. #10
    Join Date
    Oct 2004
    Location
    Prague, Czechia
    Beans
    437
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    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"

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •