[PD] Problem with fluid~ external
Frank Barknecht
fbar at footils.org
Sat Aug 9 14:25:14 CEST 2003
Hallo,
Luke Yelavich hat gesagt: // Luke Yelavich wrote:
> I have successfully compiled the fluid~ external, and compiled flext with
> the SndObj and STK packages included. However, when I attempt to use the
> fluid~ external, I get an error message saying undefined symbol add_history.
>
> I have FluidSynth 1.0.2 installed, and running pd 0.36 on Slackware Linux
> 9.0.
>
> Other externals, such as readanysf~ which also use flext work fine.
>
> Any help would be much appreciated.
Either build libfluidsynth without readline or - better - add
"-lreadline" back to the makefile (it should be commented out
currently). I attached the correct version. I just commited this fix
to the cvs, but it might not be available to anonymous checkouts yet.
ciao
--
Frank Barknecht _ ______footils.org__
-------------- next part --------------
# flext tutorial examples
#
# Makefile for gcc @ linux
#
# usage: make -f makefile.pd-linux
#
# -----------------------------------------------------
include config-pd-linux.txt
FLEXTLIB=$(FLEXTPATH)/flext.a # take threaded library for all
#FLUIDLIB=/usr/local/lib/libfluidsynth.a
FLUIDLIB=-L/usr/local/lib -lfluidsynth -lreadline
PDEXTRA=$(DESTDIR)/usr/lib/pd/extra
# compiler+linker stuff ### EDIT! ###
#CXX=g++ #-3.2
INCLUDES=$(PDPATH)/src $(FLEXTINC)
LIBPATH=
FLAGS=-DPD
CFLAGS=-O6 -mcpu=pentiumpro
LIBS=m
STRIP = strip --strip-unneeded -R .note -R .comment
# the rest can stay untouched
# ----------------------------------------------
# all the source files from the package
EXAMPLES=fluid
TARGETS=$(patsubst %,$(OUTPATH)/%~.pd_linux,$(EXAMPLES))
# default target
all: $(OUTPATH) $(TARGETS)
$(OUTPATH)/%~.pd_linux : $(OUTPATH)/%.pd_linux
mv $^ $@
$(SRCS): $(HDRS)
touch $@
$(OUTPATH):
mkdir $(OUTPATH)
$(OUTPATH)/%.o : %/main.cpp
$(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@
$(OUTPATH)/%.pd_linux : $(OUTPATH)/%.o
$(CXX) $(LDFLAGS) -shared $(patsubst %,-L%,$(LIBPATH)) $^ $(patsubst %,-l%,$(LIBS)) $(FLUIDLIB) $(FLEXTLIB) -o $@
$(STRIP) $@
chmod 755 $@
install:
install -m 644 pd-linux/fluid~.pd_linux $(PDEXTRA)
.PHONY: clean
clean:
rm -f $(OUTPATH)/*.o $(TARGETS)
More information about the Pd-list
mailing list