[PD] experiences building PD from CVS on PlanetCCRMA FC3

David O'Toole dto at twu.net
Fri Sep 16 16:20:26 CEST 2005

Just a couple of comments. I'm trying to write a single shell script
that will automatically download, configure, build, and install recent
PD from CVS. I've seen some guides to doing so but I want a complete
shell script that does the job with no interaction past initial
configuration and setting dirs. The goal is to simplify (for me and
for others) the process of building and upgrading Pd and its many

Perhaps someone can help me fix the following issues: 

On building pdp:

1. The build fails unless you edit out the "fail on all warnings"
   flag from the Makefile. 

> make[2]: Entering directory `/home/dto/bigsrc/pd/externals/pdp/system/image'
> cc -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math -Wall -W
  > -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch
  > -DPDP_VERSION=\"0.12.2\" -g -Werror -I. -I/usr/X11R6/include
  > -I../include -I../../include -o pdp_imageproc_common.o -c
  > pdp_imageproc_common.c
> pdp_imageproc_common.c: In function `_sign':
> pdp_imageproc_common.c:292: warning: use of cast expressions as lvalues is deprecated
> make[2]: *** [pdp_imageproc_common.o] Error 1
> make[2]: Leaving directory `/home/dto/bigsrc/pd/externals/pdp/system/image'
> make[1]: *** [common] Error 2
> make[1]: Leaving directory `/home/dto/bigsrc/pd/externals/pdp/system'
> make: *** [pdp_all] Error 2

There is a similar problem with Creb. 

2. It seems that .../lib/pd/externs is deprecated in favor of
   .../lib/pd/extra for installation of externals.

   However, "make install" tried to put them in "externs" so you have
   to edit the makefile. 

(If the above two items can be fixed with arguments to configure,
please let me know, then I can document the fact and use it in my
script. Also, please let me know if this is not the right place to
post this.)

3. flext will not build

> cd $SRC/externals/grill/flext
> bash build.sh pd gcc
> make -f ./buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc BUILDPATH=./buildsys/ PKGINFO=package.txt BUILDCLASS=flext USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc TARGETMODE=release TARGETTYPE=single _build_
> make[1]: Entering directory `/home/dto/bigsrc/pd/externals/grill/flext'
> g++ -c -msse -mfpmath=sse -ffast-math -DNDEBUG -O3 -O3 -march=athlon-xp -m3dnow  -pthread -fPIC -DFLEXT_USE_SIMD -DFLEXT_EXPORTS -DFLEXT_SYS=2 -I/home/dto/bigsrc/pd/pd/src source/flbase.cpp -o pd-linux/release-single/flbase.opp
> In file included from source/flbase.cpp:28:
> /home/dto/bigsrc/pd/pd/src/g_canvas.h:586: error: expected `,' or `...' before "template"
> /home/dto/bigsrc/pd/pd/src/g_canvas.h:597: error: expected `,' or `...' before "template"
> /home/dto/bigsrc/pd/pd/src/g_canvas.h:599: error: expected `,' or `...' before "template"

I am using the following commands to check out pd sources. Should I be
doing something differently? 

> cvs -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data co -r HEAD pd
> cd pd/src
> autoconf
> ./configure --enable-alsa --enable-jack
> make depend && make

Generous thanks for any help people can provide. Besides these issues,
I should report that the latest Pd runs fine and looks great!

Dave O'Toole
dto at twu.net

More information about the Pd-list mailing list