Step 4: Software part - Compiling of the player for Raspberry PI

The most tricky part is to put correct libraries in the correct directory.
MANY THANKS to Aleksander Mosingiewicz (author of the player) for figuring out!

All commands are being executed as root.

Gain root access using command:

sudo passwd

Then you can log in as root by your password.

There are some packages to install before compiling:

aptitude update

aptitude install intltool

aptitude install libgtk2.0-dev

Preparation of source code and libs:

Put hardfp/libbass.so from bass24-linux-arm.zip in:


Unzip source code:

tar -zxvf bassplay-0.1.tar.gz

unzip bass24-linux.zip in subdirectory bass in the directory of source code bassplay-0.1/bass.
!Do the same with bass24-linux-arm.zip and overwrite files!.

mkdir bassplay-0.1/bass
cp bass24-linux.zip bassplay-0.1/bass/
cp bass24-linux-arm.zip bassplay-0.1/bass/
unzip bassplay-0.1/bass/bass24-linux.zip
unzip bassplay-0.1/bass/bass24-linux-arm.zip

Proceed with compilation:

cd bassplay-0.1

make install
<p>Made it work with omxplayer for all music files (the software that is):</p><p><a href="https://github.com/iugamarian/bshplyr/tree/master" rel="nofollow">https://github.com/iugamarian/bshplyr/tree/master</a></p><p>Thank you.</p>
<p>It's nice to see that my project has been inspirative.</p><p>Can OMXplayer play MOD,S3M,IT,XM too? I cannot find this infromation.</p><p>It's good that it runs as service, too.</p><p>Do you plan to publish the final onstruction when it's done?</p>
<p>I don't have .mod files, test yourself with bshplyr-no-gpio my new smaller script (it seems I don't need gpio fo myself, just happy with automated play)</p><p>To play .mod you can also install timidity++ and change playerbin to /usr/bin/timidity++</p><p>If I have more time or someone else does we can make conditionals to change playerbin according to filetype (github allows changes, remembering history).</p><p>My final construction is just a Raspberry Pi in a cardboard case, adapted for battery pack according to </p><p><a href="http://www.daveakerman.com/?page_id=1294" rel="nofollow">http://www.daveakerman.com/?page_id=1294</a></p><p>with headphones and no buttons as GPIO's don't work for me for some unknown reason (they are always &quot;0&quot; ).</p>
Good Job! :) <br>Went to my Blog post: <br>http://faz-voce-mesmo.blogspot.pt/2013/01/prusa-i3-mais-rhinonest-cera-de.html
In case you didn't save your junky old electronics from the 80's you can still find an old cassette player on Amazon for dirt cheap... <br><a href="http://amzn.to/TxyvKx" rel="nofollow">Cassette Player on Amazon</a>
Could you add some information in the initial step explaining what MOD is and why a portable player is desireable?
Thank you for sharing your point of view. <br>I was driven by the logic that MOD enthusiast wouldn't need an explanation and people not knowing what MOD is wouldn't need MOD player. <br>I'll add a brief description with links to further resources. <br>Thanks again.

About This Instructable


62 favorites


More by Mr.Holub: Portable native MOD player based on Raspberry PI (plays MOD,S3M,IT,XM etc...). Uses BassPlay library.
Add instructable to: