grame-cncm / faust

Functional programming language for signal processing and sound synthesis
http://faust.grame.fr
Other
2.51k stars 319 forks source link

createDSPFactoryFromString() causes exception on windows #362

Open olilarkin opened 4 years ago

olilarkin commented 4 years ago

hello, once again trying to make the faust DLL work on windows. It was working at some point, now not.

I installed the latest release

https://github.com/grame-cncm/faust/releases/download/2.15.11/Faust-2.15.11-win64.exe

Here is a simple CLI app, it will require faust.dll to be placed in the same location as the built .exe

https://www.dropbox.com/sh/fiab4afbmyvlpz4/AAA30wy6G7bDHFDI5kVsKIuBa?dl=0

It triggers a faustexception at memory location, no error message

any ideas?

thanks

oli

olilarkin commented 4 years ago

I've done a bit more investigation and it seems that if I build debug versions of LLVM and FAUST.dll (MSVC) createDSPFactoryFromString works.

olilarkin commented 4 years ago

Its important for me to be able to use the dll rather than static linking since for iPlug2's faust integration I want to use the optimized build of libfaust in a debug build of the plugin. MSVC won't let you statically link a release .lib with a debug exe.