how to build sndpeek from sndtools
From Noah.org
Revision as of 15:24, 18 January 2016 by Root (talk | contribs) (Created page with 'Category: Engineering Install the following Ubuntu packages: <pre> aptitude install libxi-dev libxmu-headers libalsaplayer0 freeglut3-dev libxt-dev libsm-dev libice-dev libs…')
Install the following Ubuntu packages:
aptitude install libxi-dev libxmu-headers libalsaplayer0 freeglut3-dev libxt-dev libsm-dev libice-dev libsndfile1-dev <pre> Patch the makefile.alsa source file under '''src/sndpeek''': <pre> # diff -u makefile.alsa ../../../sndpeek-1.4.backup/src/sndpeek/makefile.alsa --- makefile.alsa 2015-03-01 14:31:15.000000000 -0800 +++ ../../../sndpeek-1.4.backup/src/sndpeek/makefile.alsa 2016-01-18 14:19:59.271647943 -0800 @@ -4,7 +4,7 @@ INCLUDES=-I../marsyas/ MARSYAS_DIR=../marsyas/ CFLAGS=-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__ $(INCLUDES) -O3 -c -LIBS=-L/usr/X11R6/lib -lglut -lGL -lGLU -lasound -lXmu -lX11 -lXext -lXi -lm -lsndfile +LIBS=-Wl,--start-group -L/usr/X11R6/lib -lglut -lGL -lGLU -lasound -lXmu -lX11 -lXext -lXi -lm -lsndfile -pthread -Wl,--end-group OBJS=chuck_fft.o RtAudio.o Thread.o sndpeek.o Stk.o \ Centroid.o DownSampler.o Flux.o LPC.o MFCC.o RMS.o Rolloff.o \
Patch the LPC.cpp source file under src/marsyas:
diff -u LPC.cpp ../../../sndpeek-1.4.backup/src/marsyas/LPC.cpp --- LPC.cpp 2015-03-01 14:31:15.000000000 -0800 +++ ../../../sndpeek-1.4.backup/src/marsyas/LPC.cpp 2016-01-18 13:48:37.115597483 -0800 @@ -27,6 +27,7 @@ #include "LPC.h" +#include <cstdlib> LPC::LPC( unsigned int inSize ) {
Now running make linux-alsa should work.