[PD] notes about pd, pdp and pidip from cvs under ubuntu 5.10 breezy badger

Andre Schmidt huolong at arcor.de
Sat Nov 12 18:55:52 CET 2005


hi,

heres a protocol how i installed pd, pdp and pidip on ubuntu breezy.
i posted this because im not a real coder/wizard and wanted to hear any
suggestions/comments on how to do things better. and had some issues
where i had to trial and error...

ubuntu 5.10 standard installation, duron 1.2ghz, 256ram, kernel
2.6.12-9-k7, / 4gig ext3, miroPCTV, ati-radeon9200...

made at Thursday, November 10 2005 23:52

### get stuff needed for compiling and cvs client:::
sudo apt-get install build-essential cvs



### PD ##############################################
### get depencies:::
sudo apt-get install autoconf tcl8.4-dev tk8.4-dev
### get pd from cvs:::
cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data co
pd
### compiling in pd/src:::
autoconf
./configure
make
sudo make install
### WORKS ###########################################
# notes
# "autoconf" is NOT mentioned anywhere !!!



### PDP #############################################
### get depencies:::
sudo apt-get install libgsl0-dev libxv-dev libquicktime-dev libpng12-dev
libglut3-dev
### get pdp from cvs:::
cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data co
externals/pdp
### compile in externals/pdp:::
./configure
make
-----------------------------------------------------
...SNIP....
cc1: warnings being treated as errors
pdp_png.c: In function ‘_open_read’:
pdp_png.c:96: warning: pointer targets in passing argument 1 of ‘png_sig_cmp’ differ in signedness
pdp_png.c: In function ‘_getimagedata’:
pdp_png.c:261: warning: pointer targets in assignment differ in signedness
pdp_png.c: In function ‘_saveimagedata’:
pdp_png.c:302: warning: pointer targets in assignment differ in signedness
make[2]: *** [pdp_png.o] Error 1
make[2]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system/png'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system'
make: *** [pdp_all] Error 2
-----------------------------------------------------
!!! removed "-werror" from "PDP_EXTRA_CFLAGS = -Werror" in Makefile.config
=====================================================
make
-----------------------------------------------------
...SNIP...
make -C type
make[2]: Entering directory `/home/hacker/puredata-cvs/externals/pdp/system/type'
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   -I. -I/usr/X11R6/include  -I../include -I../../include    -o pdp_bitmap.o -c pdp_bitmap.c
pdp_bitmap.c: In function ‘_pdp_packet_bitmap_convert_mchp_to_rgb8’:
pdp_bitmap.c:472: error: invalid storage class for function ‘_map’
make[2]: *** [pdp_bitmap.o] Error 1
make[2]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system/type'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system'
make: *** [pdp_all] Error 2
-----------------------------------------------------
!!! pdp/system/type/pdp_bitmap.c
!!! [changed line 472:]
!!! static inline u8 _map(s32 pixel){
!!! [to:]
!!! inline u8 _map(s32 pixel){
=====================================================
make
-----------------------------------------------------
...SNIP...
make -C image linux
make[2]: Entering directory `/home/hacker/puredata-cvs/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   -I. -I/usr/X11R6/include  -I../include -I../../include    -o pdp_imageproc_portable.o -c pdp_imageproc_portable.c
pdp_imageproc_portable.c: In function ‘pdp_imageproc_random_process’:
pdp_imageproc_portable.c:495: warning: pointer targets in initialization differ in signedness
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   -I. -I/usr/X11R6/include  -I../include -I../../include    -o pdp_llconv_portable.o -c pdp_llconv_portable.c
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   -I. -I/usr/X11R6/include  -I../include -I../../include    -o pdp_llconv.o -c pdp_llconv.c
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   -I. -I/usr/X11R6/include  -I../include -I../../include    -o pdp_resample.o -c pdp_resample.c
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   -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: error: invalid lvalue in assignment
make[2]: *** [pdp_imageproc_common.o] Error 1
make[2]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system/image'
make[1]: *** [common] Error 2
make[1]: Leaving directory `/home/hacker/puredata-cvs/externals/pdp/system'
make: *** [pdp_all] Error 2
-----------------------------------------------------
!!! externals/pdp/system/pdp_imageproc_common.c
!!! [change line 292:]
!!! ((u32)mask_bot) >>=16;  /* shift top word into bottom word */
!!! [to:]
!!! mask_bot >>=16;  /* shift top word into bottom word */
=====================================================
make
sudo make install
-----------------------------------------------------
#check if pd is installed. if this fails make install will stop here.
install -m 755 pdp.pd_linux /usr/local/lib/pd/externs
install -m 755 -d /usr/local/include/pdp
install -m 644 include/*.h /usr/local/include/pdp
install -m 644 abstractions/*.pd /usr/local/lib/pd/externs
install: installing multiple files, but last argument, `/usr/local/lib/pd/externs' is not a directory
Try `install --help' for more information.
make: *** [install] Error 1
-----------------------------------------------------
sudo rm /usr/local/lib/pd/externs
sudo mkdir /usr/local/lib/pd/externs
=====================================================
sudo make install
pd -path /usr/local/lib/pd/externs/ -lib pdp
### WORKS ###########################################



### PIDIP ###########################################
### get depencies:::
sudo apt-get install libimlib2-dev libmagick6-dev liblame-dev libogg-dev
libvorbis-dev libtheora-dev
### get pidip from cvs:::
cvs -z3 -d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/pure-data co
externals/pidip
### compile in externals/pidip
./configure --with-pd=/home/hacker/puredata-cvs/pd
--with-pdp=/home/hacker/puredata-cvs/externals/pdp
make clean
make
sudo make install
-----------------------------------------------------
if test ! -d /usr/X11R6/lib/X11/fonts/TTF; then
mkdir /usr/X11R6/lib/X11/fonts/TTF; fi
mkdir: cannot create directory `/usr/X11R6/lib/X11/fonts/TTF': No such
file or directory
make: *** [install] Error 1
-----------------------------------------------------
sudo mkdir /usr/X11R6/lib/X11/fonts
=====================================================
sudo make install
-----------------------------------------------------
if test ! -d /usr/X11R6/lib/X11/fonts/TTF; then
mkdir /usr/X11R6/lib/X11/fonts/TTF; fi
cp fonts/* /usr/X11R6/lib/X11/fonts/TTF
cp: omitting directory `fonts/CVS'
make: *** [install] Error 1
-----------------------------------------------------
rm -r fonts/CVS
=====================================================
sudo make install
-----------------------------------------------------
if test ! -d /usr/X11R6/lib/X11/fonts/TTF; then
mkdir /usr/X11R6/lib/X11/fonts/TTF; fi
cp fonts/* /usr/X11R6/lib/X11/fonts/TTF
cp -f --remove-destination
doc/* /home/hacker/puredata-cvs/pd/doc/5.reference
cp: omitting directory `doc/CVS'
make: *** [install] Error 1
-----------------------------------------------------
rm -r doc/CVS
=====================================================
sudo make install
sudo cp pidip.pd_linux /usr/local/lib/pd/externs/
sudo cp doc/* /usr/local/lib/pd/doc/5.reference/
pd -path /usr/local/lib/pd/externs/ -lib pdp -lib pidip
### WORKS ###########################################
# notes
# somethings wrong when copying files, pidip.pd_linux not copied
# and doc goes to wrong place... 
# ./configure --help
# --with-pd=PATH          pd source tree
# --with-pdp=PATH         pdp source tree
# By default, `make install' will install all the files
# in `/usr/local/bin', `/usr/local/lib' etc.


worked the whole last night with pdp/pidip making a tv record system and
didnt notice any "misbehavior" in pd & co...

if you need version numbers or other messages from my system, just let
me know how/where i get them.

cheers
andre





More information about the Pd-list mailing list