This didn't take as much mucking around as previous Ubuntu's. There's a great How To on ubuntuforums.com for Hardy, which works for Intrepid with just a couple of tweaks.
This is based on a post I made there adapting the method for Intrepid which worked fine for myself.
ProjectM is basically the linux version of the Milkdrop Visualization plugin for Winamp. It will work with any player as it uses the pulseaudio driver. Some players use the libvisual library for visualizations such as Amarok which allow even better integration. I use Exaile so ProjectM needs to be launched manually whenever I want to see visualizations.
First download some depssudo aptitude install libglew1.5 libglew1.5-dev ftgl-dev libpulse-dev subversion cmake libvisual-0.4-dev libsdl-dev libqt4-dev build-essential
Create a local folder and download the ProjectM svn from sourceforge.cd ~
mkdir projectm
cd projectm
svn co https://projectm.svn.sf.net/svnroot/projectm/trunk projectM-Trunkcd projectM-Trunk/src
ccmake .
Now cmake will load. Press "c" to configure ProjectM. Highlight the CMAKE_BUILD_TYPE field, press enter and type "Release" there. Press enter again. Then highlight the CMAKE_INSTALL_PREFIX field and change /usr/local to /usr/. Then press "c" again to configure it with those parameters.
I had some warnings that looked like
CMake Warning (dev) at projectM-libvisual/CMakeLists.txt:14 (ADD_DEFINITIONS):
Policy CMP0005 is not set: Preprocessor definition values are now escaped
automatically. Run "cmake --help-policy CMP0005" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
This warning is for project developers. Use -Wno-dev to suppress it.
I went on anyway.
First make failed but this fix got things on track.
cd libprojectM
gedit Renderer.hpp
then edit lines 28-30 from this:
#include <FTGL/FTGL.h>
#include <FTGL/FTGLPixmapFont.h>
#include <FTGL/FTGLExtrdFont.h>
to this: (changing case and commenting out two lines)
#include <FTGL/ftgl.h>
/**#include <FTGL/FTGLPixmapFont.h> */
/**#include <FTGL/FTGLExtrdFont.h> */
After this, exit gedit.
Now cmake . worked
cd ..
cmake .
make
now the make succeeds, and you can proceed with
sudo make install
projectM-pulseaudio should be in (Menu -> Sound and Video)
or cli
projectM-pulseaudio
This worked recently with svn revision 1198 on Intrepid, this was taken from a post of mine on ubuntuforums.com with credit to 'sammydee' for the initial Hardy How To and 'lamelos' for a codefix.
2 comments:
Excellent post! I've been trying to get Project-M to compile forever and your fix did the trick. Thanks very much for this useful post!
Hope you had a happy new year.
Great! I just wish I bothered searching for these instructions for Intrepid before doing the Hardy instructions. :D
The visualisations are lovely... thanks for the post!
Post a Comment