[PD] error compiling sndfiler~

Bart Koppe bk at a-bort.org
Sat Dec 15 15:27:08 CET 2012


Dear List!

I'm trying to compile sndfiler from svn but I get errors. I need it since I
need to play ogg files to an icecast stream.
I firts made sure that libsndfile and thread was installed but building
sndfiler still results in error..

http://grh.mur.at/software/sndfiler.html

I run Ubuntu 10.04.4 LTS (server) x86_64
PD-extended 0.42.5 from puredata.info

Thanks!
Bart

error:

# make -f Makefile.pd_main pd_linux
gcc -DUNIX -fPIC -pthread -DPD -DUSE_PD_MAIN -O3 -funroll-loops -Wall -W
-Wshadow -Wno-parentheses -Wno-switch -Wno-unused -fomit-frame-pointer -I.
-I/usr/include/pdextended -I/usr/local/src/freeswitch/libs/libsndfile/src
-I/usr/lib/pd-extended/extra/threadlib/src -o sndfiler.o -c sndfiler.c
sndfiler.c: In function ‘sndfiler_read_cb’:
sndfiler.c:298: warning: cast to pointer from integer of different size
sndfiler.c:299: warning: cast to pointer from integer of different size
gcc -DUNIX -fPIC -pthread -DPD -DUSE_PD_MAIN -O3 -funroll-loops -Wall -W
-Wshadow -Wno-parentheses -Wno-switch -Wno-unused -fomit-frame-pointer -I.
-I/usr/include/pdextended -I/usr/local/src/freeswitch/libs/libsndfile/src
-I/usr/lib/pd-extended/extra/threadlib/src -o file_input.o -c file_input.c
gcc --export-dynamic -shared -o sndfiler.pd_linux sndfiler.o file_input.o
-lc -lm -lsndfile -lvorbisfile /usr/lib/pd-extended/extra/threadlib.pd_linux
/usr/bin/ld.bfd.real: cannot find -lsndfile
collect2: ld returned 1 exit status
make: *** [sndfiler.pd_linux] Error 1

The paths in Makefile.pd_main:
# ----------------------------------------------------------

# adjust the next pathes to your system:

# this should point to the directory which contains
# m_pd.h and g_canvas.h
PD_SCR = /usr/include/pdextended

# this is the pd directory, usually /usr/lib/pd
# or c:/pd etc.
PD_PATH = /usr/lib/pd-extended

# path of sndfile.h from libsndfile, usually it's in
SNDFILE_SRC = /usr/local/src/freeswitch/libs/libsndfile/src

# path to threadlib.h
THREADLIB_SRC = /usr/lib/pd-extended/extra/threadlib/src

# path to threadlib.pd_linux/dll/pd_darwin
THREADLIB_PATH = $(PD_PATH)/extra

# ----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20121215/97c215db/attachment.htm>


More information about the Pd-list mailing list