Thanks for this hint, but
pkg-config --cflags --libs sndfile
returns:
-I/usr/local/include -L/usr/local/lib -lsndfile
which is quite right AFAIK
If I compile without the symlink, I get this error:
g++ -o Source/plugins/BeatTrack.os -c -Wno-unknown-pragmas -O3 -ffast-math -fstr
ength-reduce -msse -mfpmath=sse -Wno-deprecated -fPIC -DSC_DATA_DIR=\"/usr/local
/share/SuperCollider\" -D_REENTRANT -DSC_FREEBSD -DNDEBUG -DSC_MEMORY_ALIGNMENT=
16 -IHeaders/common -IHeaders/plugin_interface -IHeaders/server Source/plugins/B
eatTrack.cpp
In file included from Headers/plugin_interface/SC_World.h:27,
from Headers/plugin_interface/SC_PlugIn.h:22,
from Source/plugins/ML.h:21,
from Source/plugins/BeatTrack.cpp:34:
Headers/plugin_interface/SC_SndBuf.h:25:21: sndfile.h: No such file or directory
In file included from Headers/plugin_interface/SC_World.h:27,
from Headers/plugin_interface/SC_PlugIn.h:22,
from Source/plugins/ML.h:21,
from Source/plugins/BeatTrack.cpp:34:
Headers/plugin_interface/SC_SndBuf.h:38: error: ISO C++ forbids declaration of `
SNDFILE' with no type
Headers/plugin_interface/SC_SndBuf.h:38: error: expected `;' before '*' token
In file included from Headers/plugin_interface/SC_PlugIn.h:26,
from Source/plugins/ML.h:21,
from Source/plugins/BeatTrack.cpp:34:
Headers/plugin_interface/SC_InterfaceTable.h:89: error: `SF_INFO' has not been d
eclared
Headers/plugin_interface/SC_InterfaceTable.h:90: error: ISO C++ forbids declarat
ion of `info' with no type
scons: *** [Source/plugins/BeatTrack.os] Error 1
scons: building terminated because of errors.
If I add -I/usr/local/include -L/usr/local/lib to the line causing this error, it compiles...
So I probably have to add something to SConstruct, to get the proper location recognized!?