Csound Csound-dev Csound-tekno Search About

[Csnd] csoundLoadModules fails

Date2020-05-17 16:59
FromSyl 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
"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? 
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

Date2020-05-17 17:10
FromSyl Morrison
SubjectRe: [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:
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
"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? 
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

Date2020-05-17 17:33
Fromjohn
SubjectRe: [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  wrote:
>       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
>       "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? 
> 
> 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
>

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

Date2020-05-17 18:00
FromSyl Morrison
SubjectRe: [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
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 <honoonu@gmail.com> wrote:
>       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
>       "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? 
>
> 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
>

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
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

Date2020-05-17 18:08
FromSyl Morrison
SubjectRe: [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:
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
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 <honoonu@gmail.com> wrote:
>       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
>       "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? 
>
> 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
>

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
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