Hello! I’ve built a huge Renoise tool for the Akai Fire, and for performance reasons I’m trying to extend it with a native .dll module written in C++ or Rust. But I can’t get the Renoise scripting system to load a .dll file at all. I’ve tried targeting x86 (32-bit) and x64 (64-bit) architectures, tried “stdcall” and “C” calling conventions, etc. But I can’t seem to get
pyre_bridge or any such module-named function to be called. The pyre_bridge.dll file is found by require(), but I guess the .dll isn’t successfully being loaded. My other test programs are able to LoadLibrary and call test functions just fine (this is all Win10 for now). Is there something special about the Renoise Lua implementation that I need to know in order to get a native extension module to load? I’m not even doing anything with Lua yet, just trying to get a .dll function called from the Renoise tool.
An example of a tool with a native (.c, .cc, .cpp, or .rs source, .dll built) module that successfully loads would be very helpful.
package.cpath: .\?.dll;C:\Program Files\Renoise 3.2.1\?.dll;C:\Program Files\Renoise 3.2.1\loadall.dll;C:\Users\skylark\AppData\Roaming\Renoise\V3.2.1\Scripts\Libraries\?.dll;C:\Program Files\Renoise 3.2.1\Resources\Scripts\Libraries\?.dll *** error loading module 'pyre_bridge' from file '.\pyre_bridge.dll': *** The specified module could not be found. *** *** stack traceback: *** [C]: ? *** [C]: in function 'require' *** main.lua:15: in main chunk