Quantcast
Channel: KVR Audio
Viewing all articles
Browse latest Browse all 4704

DSP and Plugin Development • Re: Compiling and distributing a Windows plugin binary: toolchains, CRT, etc.

$
0
0
build the final builds of windows plugins out of portable code I am developing elsewhere. And I want the shell to be zsh or bash.
If you need bash and GNU utilities for the build system (or want an open source toolchain) MSYS2 is more or less that.

If your build system is only CMake and you can do without bash, you can just install CMake, Build Tools for Visual Studio, and the "official" LLVM build for Windows. For debugging, you can use the updated WinDbg UI from Windows Store.

Code:

-static-libstdc++ -static-libgcc -Wl,--gc-sections,-Bstatic -lwinpthread -Wl,-Bdynamic
With CMake it seems that I can do

Code:

target_link_libraries(<target of the dll> PRIVATE "-static")
for the same effect. But, yeah, otherwise all sorts of stuff gets linked dynamically.

Statistics: Posted by Alien Brother — Sun Jul 28, 2024 12:53 pm



Viewing all articles
Browse latest Browse all 4704