Last (but not least) post on Shell-fm: on Windows 7.

You may say I’m in love with shell-fm, and that’s pretty much true since I’m in love with Last.fm, so in love that I want it (shell-fm) also on Windows systems.
Now it’s time to do the installation on a completely development-tools free system. Unlike debian and mac os x, there’s no gcc, make and so on. BAD, really BAD (the whole process is gonna be a 30 minute work, shame on you Windows!)

Let’s try to fix it installing a Unix-like environment with Cygwin!
That’s it, download&install Cygwin.
During installation be sure to select to install at least these packages(use the search toolbar):

gcc,

make,

libao (all that you can find),

pkg-config,

git,

gcc-c++,

gcc-core,

wget,

nano

then hit next and let the tool install the unix system for you.

Begin downloading shell-fm with git.

As for the mac version, install libmad manually, giving a

wget http://downloads.sourceforge.net/project/mad/libmad/0.15.1b/libmad-0.15.1b.tar.gz

(version may differ or maybe not, it’s an old project) in a cygwin terminal session and then ‘unzipp it’ with

tar -zxvf libmad-0.15.1b.tar.gz

then procede with the usual process of ./configure , make e make install ( not as root, cygwin does not have a root user).

Go here for libmad installation process and shell-fm installation process: now that we have a unix system with cygwin it’s is pretty much the same thing on windows too
https://piergiu.wordpress.com/2012/07/23/again-shell-fm/
The only thing to do is to copy libmad libraries into the right place, like so:

cd /usr/local/lib/
cp * /usr/lib/gcc/i686-pc-cygwin/3.4.4/

and then do make of shell-fm, and make install.
Now a bunch of images during the process. Enjoy!

Questo slideshow richiede JavaScript.

HUGE BONUS!!!

Morrissey with a cat on his head

Morrissey with a cat on his head

Again: Shell-fm.

This time for Mac Os X Snow Leopard.

(note: this is not a ssh session on my raspberry pi; it’s really on my mac!)
As briefly explained in my last post (https://piergiu.wordpress.com/2012/07/22/raspberry-pi-last-fm-shell-fm-a-lightweight-last-fm-radio-player/), installing shell-fm on a debian-based system was quite easy thanks to apt-get & synaptic & all the good stuff that debian comes with.

On Os X things differ a little bit. We do not have apt-get or synaptic, and even if you try to install Fink (alternative to apt-get for mac) some packages are too old or not existing at all.

First thing to do to is to download Pkg-config for mac(google it, is on sourceforge), libmad and shell-fm (this one via git, that meaning you should have git installed on your system).

  1. Install pkgconfig.pkg.
  2. Unzip libmad and enter in it with a terminal shell.
  3. Type usuals ./configure followed by a make and then a sudo make install .
  4. Now the tricky part:
    1. type nano /usr/lib/pkgconfig/mad.pc to create a file that is used by pkg-config during the making of shell-fm.
    2. A command line editor appears and fill it with this

prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: mad
Description: MPEG audio decoder
Requires:
Version: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}

Then give a ctrl-x followed by a Y and then Enter.

You’ve just created that file.
Now enter shell-fm directory(created by git) and give a make and then a sudo make install    .
shell-fm is now ready to be launched on your mac.
I’m disappointed with this long process on a Mac.
They should learn package handling from debian systems and similars.

 

Bonus!!!
Here is my configuration file for speeding up startup of my shell-fm.
You have to put these things inside  ~/.shell-fm/shell-fm.rc   (maybe using nano like you’ve done a few lines above in this post)
(  ~   is your home directory ) 

username=YOURUSERNAME
password=YOURPASSWORD
default-radio=lastfm://user/YOURUSERNAME/library
quiet=true
volume-update=%v

 

Then ctrl-x  and  y and enter to save the file and exit.