[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sc-devel] SC on FreeBSD





On Dec 8, 2007 10:58 PM, nescivi <nescivi@xxxxxxxxx> wrote:
On Saturday 08 December 2007 12:11:58 Holger Ballweg wrote:
> Hi folks,
>
>
> I added some ifdefs etc. to get the svn-version working on FreeBSD
> 6.3-PRERELEASE . Unfortunately I'm not some experienced programmer, so,
> here is my patch, would be nice if someone could review and eventually
> commit it.
>
> As I'm probably the sole user of this "port"/platform for now, I'll also
> volunteer to maintain it.
>
> What you need to compile SC on FreeBSD:
>
>  - everything you need for the linux version :-)
>  - probably a link from /usr/local/include/sndfile.h to /usr/include/
>       (Why is sndfile.h not found in /usr/local/include??)

pkgconfig is used to find libraries...
So I suppose your pkgconfig file for libsndfile is pointing to the wrong
place?

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!?



hb