windows compilation #523
Replies: 2 comments 3 replies
|
where did you get cairo? you cant use it as shared lib on a plugin, as it won't be available in the host or it might conflict with stuff used by the host. You can make use of https://github.com/DISTRHO/PawPaw to build all typical plugin dependencies as static libraries, making them suitable for plugins. |
|
All the dependencies there... are they all static? I would be suspicious of that first. Unless you build everything statically for making your plugin self-contained, you can expect issues. Perhaps see https://github.com/brummer10/ToneTwistPlugs as an example, uses cairo with dpf and works under windows |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to get a working version of my DPF plugin under windows.
So i'm cross-compiling under debian 13 using mingw-w64
I came up with the following build command :
make WIN32=true \ CC=x86_64-w64-mingw32-gcc \ CXX=x86_64-w64-mingw32-g++ \ AR=x86_64-w64-mingw32-ar \ STRIP=x86_64-w64-mingw32-strip \ HAVE_CAIRO=true \ CAIRO_FLAGS="-I$HOME/mingw-cairo/mingw64/include -I$HOME/mingw-cairo/mingw64/include/cairo -DCAIRO_WIN32_STATIC_BUILD" \ CAIRO_LIBS="-L$HOME/mingw-cairo/mingw64/lib -lcairo -lpixman-1 -lpng -lfreetype -lharfbuzz -lgraphite2 -lfontconfig -lexpat -lbrotlidec -lbrotlicommon -lbz2 -lz -lfreetype -lole32 -luuid -ldwrite -lwindowscodecs -lrpcrt4 -lgdi32 -lmsimg32 -ld2d1" \ LDFLAGS="-static-libgcc -static-libstdc++"I did download the packages in $HOME/mingw-cairo from
https://repo.msys2.org/mingw/mingw64/mingw-w64-x86_64...So what i get for now:
Plugin sources : https://codeberg.org/rubberplayer/reconnie
Any pointer would be appreciated !
All reactions