Thursday, December 18, 2008

tricky




I was having major issues installing sonic-visualiser from source. The problems arose because I wanted to compile my own rubberband and vamp plugins, and the lame qmake installation that sonic-visualiser uses couldn't find them.

To get around this, I just installed rubberband and vamp with yum:


yum install vamp-plugin-sdk-devel vamp-plugin-sdk rubberband rubberband-devel -y


Then copied their pkgconfig .pc files somewhere:


mkdir save-pkgconfig
cp /usr/lib/pkgconfig/* save-pkgconfig


Then removed the original packages:


rpm -e vamp-plugin-sdk-devel vamp-plugin-sdk rubberband rubberband-devel


Modified the prefix line in the .pc files:


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

Name: vamp-sdk
Version: 1.3.0
Description: Development library for Vamp audio analysis plugins
Libs: -L${libdir} -lvamp-sdk
Cflags: -I${includedir}


Copied these files back to the pkgconfig directory:


cp *pc /usr/lib/pkgconfig


And compiled sonic-visualiser.