[swift-users] Binding Regular C Functions (Gtk, Cairo, etc.)

Gage Morgan gagemorgan at outlook.com
Wed Dec 9 17:27:11 CST 2015


Its a real place, but apparently swift fails to recognize it with a "doesn't exist" error.

Sent from Outlook Mobile




On Wed, Dec 9, 2015 at 3:25 PM -0800, "Gage Morgan via swift-users" <swift-users at swift.org> wrote:





/usr/lib/x86_64-linux-gnu/libcairo.so

Sent from Outlook Mobile




On Wed, Dec 9, 2015 at 3:20 PM -0800, "Max Howell" <max.howell at apple.com> wrote:





What's the path of your libcairo?

> On Dec 9, 2015, at 2:01 PM, Gage Morgan <gagemorgan at outlook.com> wrote:
>
> So I don't have any files named libcairo2.so, while I did have libcairo.so23xxxxx (some numbers after .so). I tried "link: cairo," and it said it could not find the module at all.
>
> Sent from Outlook Mobile
>
>
>
>
> On Wed, Dec 9, 2015 at 1:58 PM -0800, "Max Howell" <max.howell at apple.com> wrote:
>
> Look at the .so file, you put the name without the lib prefix and without the .so suffix.
>
> > So if the name of the library is libcairo amd to imstall I had to type "sudo apt-get install libcairo2-dev, what would I put for "link:?"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20151209/16fcb1aa/attachment.html>
-------------- next part --------------
_______________________________________________
swift-users mailing list
swift-users at swift.org
https://lists.swift.org/mailman/listinfo/swift-users


More information about the swift-users mailing list