Re: [swift-users] Wrapping ImageMagick in a Swift Package

2017-10-04 Thread Toni Suter via swift-users
Hi Ankit, Thank you very much! It works now :-) Best regards, Toni > Am 03.10.2017 um 21:50 schrieb Ankit Aggarwal : > > Hi Toni, > > You're not supposed to build the system module package (because there is > nothing to build). Tag and add this package as a

Re: [swift-users] Wrapping ImageMagick in a Swift Package

2017-10-03 Thread Ankit Aggarwal via swift-users
Hi Toni, You're not supposed to build the system module package (because there is nothing to build). Tag and add this package as a dependency and then try to import the `TestPkg` module that you defined in the modulemap. The error here is bogus and is tracked by

[swift-users] Wrapping ImageMagick in a Swift Package

2017-10-03 Thread Toni Suter via swift-users
Hi, I am trying to create a Swift Package that wraps the ImageMagick C API. So I installed ImageMagick using MacPorts and I was then able to build the sample program with the following commands: export PKG_CONFIG_PATH=/opt/local/lib/pkgconfig cc main.c `pkg-config --cflags --libs MagickWand`