[Stk] Compilation Fails

tommaso bianco tommaso.bianco@gmail.com
Sat, 24 Jun 2006 20:15:34 +0100


To STK mailing list,
I'm a new user of STK-lib for Linux; after managed the window install 
process, I decided to install the same version (4.2.1) on my 
linux-debian based distribution.
As to avoid class' behaviour changes between different releases, I 
didn't use pre-compiled packages (that I notice to be older versions 
(4.2.0-8.1 for debian and 4.2.0-1 for rpms) ) but I prefered to compile 
the sources.
The problem is that make process stops due to the following error :

..........
..........

g++ -O3 -Wall -g -D__GXX__ -I../include -D__LITTLE_ENDIAN__ 
-D__LINUX_ALSA__ -D__LINUX_ALSASEQ__ -DRAWWAVE_PATH=\"../rawwaves/\" -c 
Clarinet.cpp -o Release/Clarinet.o
Clarinet.cpp:26:21: error: SKINI.msg: No such file or directory
Clarinet.cpp: In member function ‘virtual void 
Clarinet::controlChange(int, StkFloat)’:
Clarinet.cpp:141: error: ‘__SK_ReedStiffness_’ was not declared in this 
scope
Clarinet.cpp:143: error: ‘__SK_NoiseLevel_’ was not declared in this scope
Clarinet.cpp:145: error: ‘__SK_ModFrequency_’ was not declared in this scope
Clarinet.cpp:147: error: ‘__SK_ModWheel_’ was not declared in this scope
Clarinet.cpp:149: error: ‘__SK_AfterTouch_Cont_’ was not declared in 
this scope
make: *** [Clarinet.o] Error 1




This is the output for the configure process:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termio.h usability... yes
checking termio.h presence... yes
checking for termio.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether byte ordering is bigendian... no
checking for RAWWAVE_PATH argument...
checking for INCLUDE_PATH argument...
checking whether to compile realtime support... yes
checking for cos in -lm... yes
checking for pthread_create in -lpthread... yes
checking for gettimeofday... yes
checking for select... yes
checking for socket... yes
checking whether to compile debug version... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for audio API... checking for snd_pcm_open in -lasound... yes
using ALSA
checking whether gcc needs -traditional... no
checking for strstr... yes
configure: creating ./config.status
config.status: creating src/Makefile
config.status: creating projects/demo/Makefile
config.status: creating projects/effects/Makefile
config.status: creating projects/ragamatic/Makefile
config.status: creating projects/examples/Makefile
config.status: creating projects/examples/libMakefile





and this the makefile generated:


### libstk Makefile - for various flavors of unix

LIBRARY = libstk.a
AR = ar -rsc
RM = /bin/rm
OBJECT_PATH = Release
vpath %.o $(OBJECT_PATH)

OBJECTS = Stk.o Generator.o Noise.o SubNoise.o Blit.o BlitSaw.o 
BlitSquare.o \
Envelope.o ADSR.o Asymp.o Modulate.o SingWave.o SineWave.o Granulate.o \
FileRead.o FileWrite.o WvIn.o FileWvIn.o WaveLoop.o WvOut.o FileWvOut.o \
Filter.o OneZero.o OnePole.o PoleZero.o TwoZero.o TwoPole.o \
BiQuad.o FormSwep.o Delay.o DelayL.o DelayA.o \
Effect.o PRCRev.o JCRev.o NRev.o \
Chorus.o Echo.o PitShift.o \
Function.o ReedTable.o JetTable.o BowTable.o \
Voicer.o Vector3D.o Sphere.o \
\
Instrmnt.o Clarinet.o BlowHole.o Saxofony.o Flute.o Brass.o BlowBotl.o \
Bowed.o Plucked.o StifKarp.o Sitar.o PluckTwo.o Mandolin.o Mesh2D.o \
FM.o Rhodey.o Wurley.o TubeBell.o HevyMetl.o PercFlut.o BeeThree.o 
FMVoices.o \
Sampler.o Moog.o Simple.o Drummer.o Shakers.o \
Modal.o ModalBar.o BandedWG.o Resonate.o VoicForm.o Phonemes.o Whistle.o \
\
Messager.o Skini.o MidiFileIn.o


INCLUDE =
ifeq ($(strip $(INCLUDE)),)
vpath %.h ../include
INCLUDE = -I../include
else
vpath %.h ../include $(INCLUDE)
INCLUDE = -I../include -I
endif

CC = g++
DEFS = -D__LITTLE_ENDIAN__
DEFS +=
CFLAGS = -O3
CFLAGS += -Wall -g -D__GXX__ $(INCLUDE)

REALTIME = yes
ifeq ($(REALTIME),yes)
OBJECTS += RtMidi.o RtAudio.o RtWvOut.o RtWvIn.o RtDuplex.o InetWvOut.o 
InetWvIn.o Thread.o Mutex.o Socket.o TcpClient.o TcpServer.o UdpSocket.o
DEFS += -D__LINUX_ALSA__ -D__LINUX_ALSASEQ__
endif

RAWWAVES =
ifeq ($(strip $(RAWWAVES)), )
RAWWAVES = ../rawwaves/
endif
DEFS += -DRAWWAVE_PATH=\"$(RAWWAVES)\"

%.o : %.cpp
$(CC) $(CFLAGS) $(DEFS) -c $(<) -o $(OBJECT_PATH)/$@

all : $(LIBRARY)

$(LIBRARY) : $(OBJECTS)
/bin/rm -f $(LIBRARY)
$(AR) $(LIBRARY) $(OBJECT_PATH)/*.o

$(OBJECTS) : Stk.h

clean :
-rm $(OBJECT_PATH)/*.o
-rm $(LIBRARY)





Thank you for any help.
Tommaso Bianco