Hmm. I didn’t have this problem, SwiftCV installs fine in jupyter.
I used following method to define and consume system lib in one package: https://github.com/apple/swift-evolution/blob/master/proposals/0208-package-manager-system-library-targets.md
Actually, I define opencv4
module just to discover opencv via pkgConfig
and link opencv libraries (that’s system library target). Then there’s COpenCV
target which is C wrapper. Until I separated those 2 I couldn’t make it compile properly.
Side note:
I’m seeing modulemap problem with Vapor (the one I’ve mentioned here), will check your workaround, thanks! As I understood so far, modulemap that is copied from package source creates a problem, e.g. it has relative path to headers which are not copied together with it.