Re: [Csnd-dev] [EXTERNAL] Re: [Csnd-dev] Building example CPOF plugin opcodes
Victor Lazzarini <[email protected]>
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <[email protected]> |
yes, sr and kr are instrument-based, not csound-based. The issue with message() etc is to do with LocalizeString() which was moved out of the Csound struct. I need to fix it, thanks for reporting. I'll put a PR to fix it. best Prof. Victor Lazzarini Maynooth University Ireland > On 23 Jun 2024, at 12:16, Pierre Clisson <[email protected]> wrote: > > Thanks. > > I also see that sr() and kr() must now be called directly. > > What is the recommended way to log messages? I have the following error while using csound->init_error()/perf_error()/warning()/message(): > > symbol(s) not found for architecture arm64 > > > vlz wrote on 23/06/2024 16:05: >> yes, that example is for Csound 6. In Csound 7, that function disappears and instead if you want to use a deinit(), then it’s >> just a matter of implementing it (like init() in the class). I have yet to adjust these examples. >> >>>> On 23 Jun 2024, at 11:25, Pierre Clisson <[email protected]> wrote: >>> >>> Hi! >>> >>> I'm trying to build the example CPOF plugin opcodes (develop branch) on MacOS using: >>> >>> gcc -O2 -dynamiclib -o opcodes.dylib opcodes.cpp -I/Users/mesca/Library/Frameworks/CsoundLib64.framework/Headers -std=c++11 -DUSE_DOUBLE >>> >>> Unfortunately, I have a bunch of unresolved symbols, including: >>> >>> opcodes.cpp:73:13: error: no member named 'plugin_deinit' in 'csnd::Csound' >>> csound->plugin_deinit(this); >>> ~~~~~~ ^ >>> opcodes.cpp:138:36: error: no member named 'sr' in 'csnd::Csound' >>> delay.allocate(csound, csound->sr() * inargs[1]); >>> >>> Also, using csound->init_error()/message()/... result in: >>> >>> ld: symbol(s) not found for architecture arm64 >>> >>> What am I missing? >>> >>> > >