martedì 20 luglio 2010

About poesie per vogon...

I am not a developer and I think I never will be...
This is my experience of compiling puredata o snatch.

I hope that help...

Compiling snatch for osx

Dear vogon, this is sweet and only for you.

Download snatch source from :
http://www.speech.kth.se/snack/download.html

My makefile is... I put bold where I modified for compile for my osx
-----

# The path to the tcl.h header file

TCL_INCPATH = /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/

# The path to the tk.h header file

TK_INCPATH = /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/


# The path to the X11 include files

XINCLUDES =

# Install SNACK package here ${exec_prefix}/lib

SNACK_INSTALL_PATH = /System/Library/Tcl
SNACK_HINSTALL_PATH = ${prefix}/include

#

GENERIC_DIR = ./../generic
UNIX_DIR = ./../unix
MAC_DIR = ./../mac

VERSION = 2.2

DESTDIR =

TCL_VERSION = 8.5

CC = gcc

INCLUDES = ${XINCLUDES} -I/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers -I${TCL_INCPATH} -I${TK_INCPATH}

[cut cut cut]
-------

lovely... See you soon with more text...

domenica 18 luglio 2010

[Puredata] Compiling a Patch build with flext

Copy and paste a Vogon citation :

Since there's a package.txt file with it, the external is meant to be compiled with the flext build system.

You can have a look at the flext readme.txt or build.txt files.
It boils down to the following:

sh path_to_flext/build.sh pd gcc
sudo sh path_to_flext/build.sh pd gcc install

domenica 11 luglio 2010

Compile flext on Ubuntu Lucyd

Compile http://puredata.info/Members/thomas/flext
Follow istructions here : https://svn.grrrr.org/ext/trunk/flext/build.txt

svn co https://svn.grrrr.org/ext/trunk/flext flext

edit /flext/buildsys/config-lnx-pd-gcc.txt

like this :

"""
# where is the PD source package?
# (this should point to the main folder, which has a "src" subfolder)
#PDPATH=/usr/local/src/pd
PDPATH=/home/marco/puredata-0.42.5
###############################################################

# prefix for flext installation
# headers are in $(FLEXTPREFIX)/include/flext
# libraries are in $(FLEXTPREFIX)/lib
# build system is in $(FLEXTPREFIX)/lib/flext

FLEXTPREFIX=/usr/

###############################################################

# where should the external be built?
OUTPATH=pd-linux

# where should the external be installed?
INSTPATH=/usr/lib/pd/extra

###############################################################

# STK (synthesis tool kit) support
# http://ccrma.stanford.edu/software/stk

# where to find the STK header files (e.g. stk.h)
#STK_INC=/usr/local/include/stk
STK_INC=/usr/include/stk

# where to find the STK library (normally libstk.a)
# (comment out STK_LIB if you don't use STK)
STK_LIB=/usr/lib/libstk.so

###############################################################

# SndObj support
# http://music.nuim.ie//musictec/SndObj

# where to find the SndObj header files (e.g. sndobj.h)
SNDOBJ_INC=/usr/include/sndobj

# where to find the SndObj library (normally libsndobj.a)
# (comment out STK_LIB if you don't use SndObj)
SNDOBJ_LIB=/usr/lib/libsndobj.so

###############################################################

# make flags (e.g. use multiprocessor)
#MFLAGS=-j 2

# user defined compiler flags
# (check if they match your system!)
UFLAGS=-msse -mfpmath=sse -ffast-math

# user defined optimization flags
# (check if they match your system!)
OFLAGS=-O3
# optimizations for Pentium 4
#OFLAGS+=-march=pentium4

"""

Install libsndobj and stk and g++

I hope this help my friend vogon...