| Well, my issue is that STK opcodes do not build for Scons or Cmake. I
suspect the folder structure changed for the stk/include that comes
with 4.4.3, but I do not see anywhere to get older versions. So the
issue I have is not CMake specific, but inherent in the
stkOpcodes.cpp.
On Sun, Feb 19, 2012 at 4:12 AM, Michael Gogins
wrote:
> Yes, the CMake build is not quite optimal for both STK and Fluidsynth.
> This is something that needs to be fixed. I will try to fix it myself
> but I have to learn how to do it first.
>
> One helper for you is to actually browse to the C++ source file
> indicated in the Cmake build, and select that. That seems to enable
> the STK build for me. I don't think this is the best way to configure
> this target, however. And now, on my other machine, I don't see this
> option at all...
>
> Best,
> Mike
>
> On Sat, Feb 18, 2012 at 1:20 PM, Steven Yi wrote:
>> For the life of me I have no idea how to get the STK opcodes built.
>> Using 4.4.3, I copied include, src, and rawwaves to the Opcodes/stk
>> dir. Now, this does not build with SConstruct or CMake. I get
>> essentially the same error with both:
>>
>> pcodes/stk/stkOpcodes.cpp:51:21: error: stk/Stk.h: No such file or directory
>> Opcodes/stk/stkOpcodes.cpp:52:26: error: stk/BandedWG.h: No such file
>> or directory
>> Opcodes/stk/stkOpcodes.cpp:53:26: error: stk/BeeThree.h: No such file
>> or directory
>> Opcodes/stk/stkOpcodes.cpp:54:26: error: stk/BlowBotl.h: No such file
>> or directory
>> Opcodes/stk/stkOpcodes.cpp:55:26: error: stk/BlowHole.h: No such file
>> or directory
>> Opcodes/stk/stkOpcodes.cpp:56:23: error: stk/Bowed.h: No such file or directory
>> Opcodes/stk/stkOpcodes.cpp:57:23: error: stk/Brass.h: No such file or directory
>> Opcodes/stk/stkOpcodes.cpp:58:26: error: stk/Clarinet.h: No such file
>> or directory
>> Opcodes/stk/stkOpcodes.cpp:59:25: error: stk/Drummer.h: No such file
>> or directory
>> ...
>>
>> the Opcodes/stk/stkOpcodes use a system include with things like
>> , but that does not match what is in the stk's include
>> directory. The files within the stk src themselves use project
>> includes with "Stk.h" and no stk/ beforehand.
>>
>> Is there something different with STK 4.4.3 that is different than
>> other releases in terms of directory structure? As far as I
>> understand, this is plain broken with the Csound build systems.
>>
>> steven
>>
>> On Sat, Feb 18, 2012 at 2:38 PM, Michael Gogins
>> wrote:
>>> Thanks for following up on this!
>>>
>>> First, the lack of classes after import is the same issue, yes. This
>>> is the main problem.
>>>
>>> You may run into other problems that I also did, not directly related.
>>> The examples assume you have fluidsynth and STK opcodes built -- this
>>> is deliberate, to combine tests to save me time with testing for the
>>> Windows installer. But if you don't have these things the examples
>>> won't work right.
>>>
>>> Then I had a leftover libCsoundAC.a in /usr/lib, but I changed the
>>> signature so that the SWIG interface was scrambled.
>>>
>>> I also noticed the CMake makefile did not seem to be building the
>>> fluidsynth opcodes.
>>>
>>> Some background: I made CsoundAC a static only library to get the
>>> interfaces not to expose so many symbols, but still be usable by C
>>> programs, e.g if the composer wants to work directly in C++. I also
>>> had problems with exposing some classes but not all. But on Linux the
>>> maintainers did not follow this pattern. Anyway, either CsoundAC needs
>>> to be a static library (only), or all the CsoundAC classes have to be
>>> exported in the DSO and the examples still have to run.
>>>
>>> Again, thanks for pursuing this.
>>>
>>> Best,
>>> Mike
>>>
>>>
>>> On Sat, Feb 18, 2012 at 8:21 AM, Steven Yi wrote:
>>>> Note, I found that -includeall wasn't used when using Swig with
>>>> CsoundAC, so I added that. That seemed to add all the missing things
>>>> from CsoundAC. I'm having problems with the examples in
>>>> examples/python though, usually some syntax error with one thing or
>>>> another (using old-parser gave errors too).
>>>>
>>>> Michael, can you try pulling from git and testing with the includeall
>>>> change? I'll be out a couple hours and will check back then.
>>>>
>>>> Thanks,
>>>> steven
>>>>
>>>> On Sat, Feb 18, 2012 at 1:14 PM, Steven Yi wrote:
>>>>> In what way was is it unusable? Or, what error messages are you
>>>>> getting? I tried here and it looked like after "import CsoundAC" that
>>>>> it essentially had nothing in it. Looking into this but have to step
>>>>> out for a bit to run some errands, but I want to verify we're having
>>>>> the same issue.
>>>>>
>>>>> On Sat, Feb 18, 2012 at 12:19 PM, Michael Gogins
>>>>> wrote:
>>>>>> Now, I am NOT so happy with the CMake build. I find that it produces
>>>>>> unusable Python and Lua extension modules for CsoundAC. I am reverting
>>>>>> to the SCons build.
>>>>>>
>>>>>> This may be related to the fact that CsoundAC should be built first as
>>>>>> a static library (so that it can be used as a C++ API) before linking
>>>>>> to produce the extension module DSOs. I think the CMake build and the
>>>>>> Linux packages may be targeting a shared library CsoundAC.
>>>>>>
>>>>>> In any case, please run the examples/python and examples/lua files to
>>>>>> ensure that the CsoundAC extensions not only build, but do something.
>>>>>>
>>>>>> Regards,
>>>>>> Mike
>>>>>>
>>>>>> --
>>>>>> Michael Gogins
>>>>>> Irreducible Productions
>>>>>> http://www.michael-gogins.com
>>>>>> Michael dot Gogins at gmail dot com
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Virtualization & Cloud Management Using Capacity Planning
>>>>>> Cloud computing makes use of virtualization - but cloud computing
>>>>>> also focuses on allowing computing to be delivered as a service.
>>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Virtualization & Cloud Management Using Capacity Planning
>>>> Cloud computing makes use of virtualization - but cloud computing
>>>> also focuses on allowing computing to be delivered as a service.
>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> Virtualization & Cloud Management Using Capacity Planning
>>> Cloud computing makes use of virtualization - but cloud computing
>>> also focuses on allowing computing to be delivered as a service.
>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> Virtualization & Cloud Management Using Capacity Planning
>> Cloud computing makes use of virtualization - but cloud computing
>> also focuses on allowing computing to be delivered as a service.
>> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |