[Csnd] csoundLoadModules fails
Date | 2020-05-17 16:59 |
From | Syl Morrison |
Subject | [Csnd] csoundLoadModules fails |
So I've been writing an unfortunately named dylib and trying to link it to csound with custom opcodes, builds fine, but when I try run it, I get
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
"Error in pre-initialisation function of module 'libSylFluid.dylib' Failed during csoundLoadModules" Not a clue what this means and google doesn't tell me much, anyone come across this? |
Date | 2020-05-17 17:10 |
From | Syl Morrison |
Subject | Re: [Csnd] csoundLoadModules fails |
I can attach my cmakelists.txt, just so incredibly frustrating hahahha On Sun, May 17, 2020 at 4:59 PM Syl Morrison <honoonu@gmail.com> wrote:
|
Date | 2020-05-17 17:33 |
From | john |
Subject | Re: [Csnd] csoundLoadModules fails |
I suspect yu have nort included the necessary linkage stuff at the enfd of your new ode. You need to provide two function; one to add the opcodes to the etrie tabl and one to identify the verin. Look at the LINKAGE_BUILETIN and LINKAGE macros; or do it by jhand; check other loadable maodules On Sun, 17 May 2020, Syl Morrison wrote: > I can attach my cmakelists.txt, just so incredibly frustrating hahahha > > On Sun, May 17, 2020 at 4:59 PM Syl Morrison |
Date | 2020-05-17 18:00 |
From | Syl Morrison |
Subject | Re: [Csnd] csoundLoadModules fails |
hmm just tried adding linkage after the oentry and same thing, I pushed it to github (for perusal at your leisure if you want), if the cmake looks mad complicated it's because I adapted it from a previous project https://github.com/MeijisIrlnd/SylFluidSynth As for the source code I used the fluidOpcodes.cpp code from the csound github as a template, but have since removed everything except my opcode (fluidLoadK I thought would be an easy test) No pressure to check obviously, just if you fancy having a look ahhaha On Sun, May 17, 2020 at 5:33 PM john <jpff@codemist.co.uk> wrote: I suspect yu have nort included the necessary linkage stuff at the enfd of |
Date | 2020-05-17 18:08 |
From | Syl Morrison |
Subject | Re: [Csnd] csoundLoadModules fails |
Oh my god you're my saviour John, removing the csoundModuleCreate stuff after the oentry code, and using LINKAGE_BUILTIN fixed it thank you so much On Sun, May 17, 2020 at 6:00 PM Syl Morrison <honoonu@gmail.com> wrote:
|