I've made a few fixes to enable building on MinGW64 on Windows using shared imports. Everything compiles successfully with my pull requests below (along with another fix by someone else, listed below).
I've added PR #136 on https://github.com/sigrokproject/libsigrok to remove the libusb_os_handle requirement as it's not required to build on MinGW64 on Windows. PR #66 on https://github.com/sigrokproject/libsigrokdecode fixes exports from DLLs as a Python-related export requires all other exports to be marked as __declspec(dllexport). PR #41 on https://github.com/sigrokproject/pulseview fixes plugin imports when compiling with shared imports as plugins don't have to be specifically imported with shared imports. In addition, PR #39 on the pulseview repo is required to build successfully as well. It's not clear why the libsigrokdecode.h include needs to be wrapped by extern "C" as builds occur successfully without it. Kyle
_______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel