I decided, as an exercise, to build a simple square osc based on STK, in
order to understand how to manage dependencies and relationship between
different sources and a max external.
From the STK, we got a new BitSquare.h header which comes along with a
file. It calls a generator.h which is associated with a generator.cpp.
This last one relies on stk.h and so stk.cpp.
What i do not understand is if i have to compile the .cpp files before
(and how do i do this), then build my own external which will call
functions contained in this .cpp files, or do i only have to point to
the .h files in my external, forget about the .cpp files and build my
own external from the BitSquare.cpp one, taking the most of it and
adapting it to max ??
Thanks in advance.
When you compile multiple sources like this, you compile the .cpp
files. The .h files should be in the compiler’s search path, but
don’t need to be specified. It will access them as necessary. As far
as figuring out the ordering, this link might help:
http://www.eng.hawaii.edu/Tutor/Make/ . It gives an idea as to how to
handle dependencies. I also have a makefile online. At times, I’ve
modified it to compile MSP externals. I’m sure you could do the same
for your project. It’s at http://www.mat.ucsb.edu/~whsmith/xray.html
C74 RSS Feed | © Copyright Cycling '74