As a rule, I repeat the days when I have to create Python libraries on Mac. I usually had pretty good success using Boost :: Python, and if I use distutils, most of the time everything works correctly.
However, I could never determine the exact combination of what works / what doesn't work. In particular, I often encounter a terrible character problem that is not found, because the library I'm trying to use does not have a flat namespace. I tried switching to the MacPorts version of Python, and then using only MacPorts libraries and not cubes.
The very last problem I came across is the tool I need to use, it depends on the OpenCV library, which, in turn, depends on the FFMPeg library (in fact, both of them). Everything compiles, but when I import MYLIB, I get the _pix_fmt_info character, which is not found in the flat namespace. I am doing DYLIB_LIBRARY_PRINT to view all loaded libraries, and of course all libavformat, libavcodec, libavutil and libswscale are loaded.
So here are my questions. The specific question is, does anyone have an idea of ββwhat might be happening here. Do I need to create libffmpeg manually? I'm doing something really stupid, like forgetting the library (I checked and I don't think I ..)
More generally, is there a good approach to solve the namespace problem? Do you always have to worry about which libraries are included? Does anyone have a good recipe for making things just work?
Sometimes I miss the world of Linux.
change
Sorry, it seemed like it was my own stupidity. I did not understand the exact problem, but it seems that the unreasonable character belongs to a different library than me (i.e. Not libffmpeg).
I'm still curious about other people with flat namespaces.