Aubio error while compiling!

Hello

I’m having this problem even tho I’ve installed aubio packages.

When I go for:
“scons GTK=yes NLS=yes AUBIO=yes VST=yes SURFACES=yes FFT_ANALYSIS=yes SLV2=yes FREESOUND=1 PREFIX=/usr”

I get the following output at first:
scons: Reading SConscript files …
Checking for pkg-config version >= 0.8.0… (cached) yes
Checking for gthread-2.0… (cached) yes
Checking for lrdf… (cached) yes
Checking for libgnomecanvas-2.0… (cached) yes
Checking for gtk±2.0… (cached) yes
Checking for jack… (cached) yes
Checking for sndfile… (cached) yes
Checking for samplerate… (cached) yes
Checking for glib-2.0… (cached) yes
Checking for libxml-2.0… (cached) yes
Checking for raptor… (cached) yes
Checking for fftw3f…(cached) yes
Checking for fftw3…(cached) yes
Checking for aubio…(cached) yes
Checking for C header file fftw3.h… (cached) yes
Checking for C header file curl/curl.h… (cached) yes
Checking for slv2… (cached) yes
WIIMOTE not enabled. Build with ‘scons WIIMOTE=1’ to enable support.
Congratulations, you have a functioning C++ compiler.

But then, after the configuration process and some loooong making process the error will be:
In file included from libs/vamp-plugins/plugins.cpp:44:
libs/vamp-plugins/Onset.h:60: error: ISO C++ forbids declaration of ‘aubio_pickpeak_t’ with no type
libs/vamp-plugins/Onset.h:60: error: expected ‘;’ before ‘’ token
libs/vamp-plugins/Onset.h:61: error: ISO C++ forbids declaration of ‘aubio_onsetdetection_t’ with no type
libs/vamp-plugins/Onset.h:61: error: expected ‘;’ before ‘
’ token
libs/vamp-plugins/Onset.h:62: error: ‘aubio_onsetdetection_type’ does not name a type
scons: *** [libs/vamp-plugins/plugins.os] Error 1
scons: building terminated because of errors.

Seems like I got it fixed…

Here’s a resume:

The error wasn’t a common “can’t find aubio.h”. So I started installing different versions of aubio to see if it was a particular error caused by that version of aubio (3.0.3)

I had no success on fixing it.

Then I’ve tried the following:
Downloaded aubio 3.0.0.tar.gz
unpacked, ./configure (default) and make, make install.

Then (this is the tricky part) I went to /usr/local/include/aubio
and used the command “rm -f *.h”

After that I copied the content of /usr/include/aubio/ to /usr/local/include/aubio
cp /usr/include/aubio/. /usr/local/include/aubio

Also removed from the command “scons GTK=yes NLS=yes AUBIO=yes VST=yes SURFACES=yes FFT_ANALYSIS=yes SLV2=yes FREESOUND=1 PREFIX=/usr” The “PREFIX=/usr” part…

AND IT WORKED!

SOOO… after all this, my doubt is: Was I just copying the content from an installed .deb of aubio or was I really copying 3.0.0 .h files to /usr/local/include/aubio?..