Open irieger opened 3 months ago
Thanks for reporting this and your work to add bmx to Conan!
I don't think bmx has ever had working dynamic link libraries on Windows. I remember trying a couple things when moving over to cmake and I couldn't get it to work. Curious why those particular symbols shown in your build log could not be found. This is something to look at again in future but probably not soon.
You're welcome. I have to thank you for the work. The few issue and PR discussion I had so far felt very productive and welcoming.
For now we decided to go with throwing an invalid configuration for shared library build requests to the conan system for bmx which I think is fair for now. That is the usual way in Conan to mark an option not supported based on the configuration (combination of profile settings (OS, compiler etc.) and options the user can select like the shared option, or building with or without CURL for example.
I fully understand that you focus on a real workhorse system. I'm doing the Conan stuff for a side project of mine and there I'm so happy that I decide which platforms to target and only build on Linux and macOS for now which to me feel more natural to develop for. But I admit I'm having a strong opionion on that one popular spyware so many people use. Just wasn't sure if the shared building problem is known. Wasn't it for the conan CI I might have not discovered it.
Hey,
while working the conan recipe to integrate bmx into the offical conan recipe repository (https://github.com/conan-io/conan-center-index/pull/23955), the CI discovered a problem when trying to build as a shared library for Windows. At first it tried to link a non-existing
MXF.lib
. After some reading and trying - I normally work only on Linux and macOS - I now got a bit further. As I learned, for Windows symbols need a manual export. So I found that it could be done with a CMake property with. Without that, the required lib would not be created:With that set for all three libraries, the MXF.lib gets created, but linking fails with:
As said, I have no clue about Windos peculiarities so maybe it is just a simple thing. For now I changed the Conan recipe to not build shared on Windows.