installing shell-fm on mac os x

i blogged recently that i couldn’t compile shell-fm on mac os x. hopped #shell-fm on the freenode, and talked to the author himself. the error i got was:

<pre class="src src-sh">cc -o shell-fm -D__darwin__ -Os -Wall -W -I./include/ -DLIBAO -I/opt/local/include -I/opt/local/include main.c -L/opt/local/lib -lmad -lm -Wl,-framework -Wl,AudioUnit -L/opt/local/lib -lao -lpthread libshellfm.a

ld: in libshellfm.a, archive has no table of contents collect2: ld returned 1 exit status make[1]: *** Error 1 make: *** Error 2

he suggested i go to the source and do:

<pre class="src src-sh">cc -o shell-fm -D__darwin__ -Os -Wall -W -I./include/ -DLIBAO -I/opt/local/include -I/opt/local/include -L/opt/local/lib -lmad -lm -Wl,-framework -Wl,AudioUnit -L/opt/local/lib -lao -lpthread *.c

that is, remove the main.c in the middle and libshellfm.a to *.c

that did the work and i got a working binary in the source folder. ran make in the manual folder, and installed them:

<pre class="src src-sh">sudo cp ./source/shell-fm /usr/bin

sudo cp ./manual/shell-fm.1 /usr/share/man/man1/

shell-fm is working now.

ALSO: according to this site, i modified play.c before compiling in v .6 as follows:

 <pre class="src src-C"><span style="color: #ff4500;">// </span><span style="color: #ff4500;">johnaman 05/30/2009 modified per</span>

// // replace this line (2nd find for “haskey” in play.c ) // if(freetrack && strlen(freetrack) > 0 && haskey(& rc, “download”)) { if( /freetrack && strlen(freetrack) > 0 && / haskey(& rc, “download”)) {

About Vinh Nguyen


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>