Pd: mudanças entre as edições

De Pontão Nós Digitais
Ir para navegaçãoIr para pesquisar
(instrucoes corretas pra dev Pd)
Linha 36: Linha 36:


=== Building the Latest Pd-extended from Autobuild + Rsync (not for development) ===
=== Building the Latest Pd-extended from Autobuild + Rsync (not for development) ===
To just build the whole pd-extended: see hans' email about downloading from
To just build the entire bleeding-edge pd-extended: see Hans' email about downloading from
rsyinc and building from autobuild. However, this option does not give any
rsyinc and building from autobuild. However, this option does not give any
version control.
version control.

Edição das 04h19min de 30 de setembro de 2011

Pure data.

Instalacao

  • Instale sempre o Pd extended.
  • Obrigado por sempre instalar o PD extended
  • Dê preferência ao pd-extended pois ele possui os externals necessários para a maior parte das aplicações
  • «hick209: você instalou o PD e Gem não veio junto? instalasse o pdextended? eu acho que não...
  • Sacou? Então não dê pala.


Solucao 1: Pacotes binarios

Fefo:

Baixei daki: http://puredata.info/community/projects/software/pd-extended

Primeiro instalei o .deb do Maverick (10.10) e não deu certo. Meu ubuntu era 64 bits, e o .deb era 32 bits

Como não tem 64bit do 10.10 instalei do Lucid(10.04) de 64bits, e também não funcionou.

Eu e o vilson ficamos quebrando a cabeça pra fazer funcionar direitinho, e NADA.

Conclusão: migrar para o ubuntu 32bits. Foi o que fiz, ai no ubuntu 32bits baixei o .deb do Maverick e funcionou e primeira.

Solução 2: Hacking - baixar do git

Clonando (Tentativa ainda nao testada - Under Construction)

Baixe o Pd com todas as extensoes (Pd extended):

git svn clone https://pure-data.svn.sourceforge.net/svnroot/pure-data/trunk pd

Baixe o Gem

git svn clone https://pd-gem.svn.sourceforge.net/svnroot/pd-gem/trunk pd-gem

Building the Latest Pd-extended from Autobuild + Rsync (not for development)

To just build the entire bleeding-edge pd-extended: see Hans' email about downloading from rsyinc and building from autobuild. However, this option does not give any version control.

Building Pd-Extended for Development

To build and have version control, try one of these options.

Full Approach

This approach centers on pd-svn and links to the latest pd-extended.git and Gem. If you need many libraries and develop and test things as a whole, this might be the best approach as it will build all the available libs for Pd.

  • download pd-svn which has everything except gem
  • download pd-extended.git
  • download Gem from svn
  • replace the 'pd' subdir of pd-svn with a symlink to pd-extended.git
  • symlink Gem to pd-svn/Gem and pd-svn/externals/Gem
  • compile using the linux-make approach


Minimal Approach =

This approach centers on pd-extended.git and links to the libraries you want to develop at a given time. If you need to isolatedly develop things, this might be the best approach.

  • download pd-extended.git
  • download pt-svn and Gem
  • inside pd-extended.git, link to the libs you need
  • build everything inside pd-extended.git.


Things that do *not* work

  • The svn approach + linux-make using just the svn: this build gives a broken pd as of this date
  • Build the pd-0.42 branch from svn using linux-make. This is not as good

as the bleeding edge build described above, as of this date.

Compilando: modo errado

Pd:

cd pd/pd/src
autoreconf -vi
./configure
make depend
make
sudo make install

Gem:

sudo apt-get install libmagick++-dev
cd pd-gem/Gem/src
./autogen.sh
./configure
  • opcionalmente, coloco uma opcao no configure, para desenvolver o Pd sem instalar:
./configure --with-pd=/home/rfabbri/src/pd-repos/pd-svn/pd
  • finalmente
make
sudo make install


pix_opencv:

./configure --with-pd=$HOME/src/pd-repos/pd-svn/pd --with-gem=$HOME/src/pd-repos/pd-gem/Gem
make
sudo make install

(ajuste os caminhos para os sources do Pd e do Gem de acordo com o seu setup)


Terminando de instalar (perigo: instrucoes de novato; podem nao ser o melhor a fazer)

Instale o pix_opencv na mao caso queira usar o Pd sem instalar (eh o que eu faco para hacking)

cd ~/src/pd-repos/pd-svn/externals/pix_opencv
cp *pd_linux ~/src/pd-repos/pd-svn/pd/extra/


Rodando do Codigo de Desenvolvimento: modo errado

echo 'alias pd=$HOME/src/pd-repos/pd-svn/pd/bin/pd' >> ~/.bash_aliases
. ~/.bash_aliases

Agora eu vou no diretorio do Gem rodar o pd. Deve haver algo melhor a ser feito:

cd /home/rfabbri/src/pd-repos/pd-gem/Gem
pd -lib Gem

Agora tudo esta disponivel!! Basta criar um novo bloco pix_opencv_edge por exemplo e constatar que nao fica tracejado.

PS: Estou confirmando se este e' o melhor jeito na lista pd-dev.

PD + OpenCV a.k.a pdp_opencv / pix_opencv

Tenha o PD extended 0.42.5 já instalado (veja acima).

Baixe os sources necessários (sim, você precisa do source do PD e GEM para poder compilar o external, mesmo já tendo ele instalado pelo apt-get):

   wget http://sourceforge.net/projects/pure-data/files/pd-extended/0.42.5/Pd-0.42.5-extended.tar.gz
   wget http://giss.tv/pd-opencv/pix_opencv-0.2-rc6.tar.gz
   wget http://puredata.info/community/projects/software/gem/releases/0.92.3/gem-0.92-3.tar.gz

Descompacte e coloque os códigos do PD e GEM em um local próprio (em Ubuntu, é o que segue):

   mkdir -p pd-extended/src
   tar xvzf Pd-0.42.5-extended.tar.gz
   tar xvzf pix_opencv-0.2-rc6.tar.gz
   tar xvzf gem-0.92-3.tar.gz
   mv Pd-0.42.5-extended pd-extended/src
   mv gem-0.92-3 pd-extended/src

Agora vamos compilar o external pdp_opencv:

   cd pix_opencv
   ./configure --with-pd=$HOME/pd-extended/src/Pd-0.42.5-extended/pd --with-gem=$HOME/pd-extended/src/gem-0.92-3
   make

E jogamos os externals compilados no diretório do PD, para ele poder usar:

   cp *.pd_linux $HOME/pd-extended/extra/
   cp *.pd $HOME/pd-extended/doc/5.reference

Feito, reinicie seu PD e Help -> Browser -> Pure Data -> 5.reference -> procure os pix_opencv_*

Hacking

  • todo: informacoes sobre o codigo fonte e sua organizacao
  • Este link [1] sugere que depois de baixar o Pd svn,

o subdir "pd" pode ser substituido pelo pd-extended do Git, depois uns symlinks sao realizados. Todo: confirmar na lista pd-dev

  • Este link [2], na secao sobre svn, diz que quando uma nova release e' feita do pd-extended, ele pega tudo do SVN exceto o subdir 'pd', o qual e' atualizado com base no core presente no repo pd-extended.git

Referencias