<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>Is there a specific thing I can find on my system that will give me the exact name that I need to link against?<br>
<br>
<div class="acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="gmail_quote">On Wed, Dec 9, 2015 at 1:44 PM -0800, "Gage Morgan via swift-users"
<span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br>
<br>
</div>
<div>
<div>So the first time I tried with just cairo, then libcairo. Then I thought it might work with the direct path. So after some frustration with it saying "Module not found," I tried running swift build on both directories and it gave me that output: It recognized
the .so file but then went on to say it could not find it, and abruptly quit. So then I wondered: How do I get cairo running? At least I got it installed and working. <br>
<br>
<div class="x_acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_gmail_quote">On Wed, Dec 9, 2015 at 1:27 PM -0800, "Gage Morgan via swift-users"
<span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br>
<br>
</div>
<div>
<div>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:?"<br>
<br>
<div class="x_x_acompli_signature">Sent from <a href="https://aka.ms/sdimjr">Outlook Mobile</a></div>
<br>
</div>
<br>
<br>
<br>
<div class="x_x_gmail_quote">On Wed, Dec 9, 2015 at 1:21 PM -0800, "Max Howell" <span dir="ltr">
<<a href="mailto:max.howell@apple.com" target="_blank">max.howell@apple.com</a>></span> wrote:<br>
<br>
</div>
<div class="" style="word-wrap:break-word">No, if the directories are separate they are separate to `swift build`.
<div class=""><br class="">
</div>
<div class="">The problem is it already cloned CCairo into your example, and a dependency manager should not change cloned dependencies as part of the build process.</div>
<div class=""><br class="">
</div>
<div class="">I agree it is confusing, but I will be adding warnings and information to help here. It’s early days.<br class="">
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Dec 9, 2015, at 1:13 PM, Gage Morgan <<a href="mailto:gagemorgan@outlook.com" class="">gagemorgan@outlook.com</a>> wrote:</div>
<br class="x_x_x_Apple-interchange-newline">
<div class="">
<div class="">
<div class="">So would things break if I ran swift build in the CCairo directory and then example? This so confusing...<br class="">
<br class="">
<div class="x_x_x_acompli_signature">Sent from <a href="https://aka.ms/sdimjr" class="">
Outlook Mobile</a></div>
<br class="">
</div>
<br class="">
<br class="">
<br class="">
<div class="x_x_x_gmail_quote">On Wed, Dec 9, 2015 at 11:19 AM -0800, "Max Howell"
<span dir="ltr" class=""><<a href="mailto:max.howell@apple.com" target="_blank" class="">max.howell@apple.com</a>></span> wrote:<br class="">
<br class="">
</div>
<div class="x_x_x_BodyFragment">
<div class="x_x_x_PlainText">> Gage,<br class="">
> <br class="">
> For what it's worth, after running `git init` and `git tag -f 1.0.0`<br class="">
> in `CCairo` to get something importable, I run into this error:<br class="">
> <br class="">
> :; swift build<br class="">
> Cloning Packages/CCairo<br class="">
> <unknown>:0: error: no such file or directory:<br class="">
> '/Users/solidsnack/Downloads/Sources/example/Packages/CCairo/Package.swift’<br class="">
<br class="">
rm -rf /Users/solidsnack/Downloads/Sources/example/Packages<br class="">
<br class="">
The PM does not update the git repo, by default this is the right behavior since you should not change your dependency sources every build. However I agree this is confusing in these situations. We plan some sort of “dev mode”.</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIapg7QIfelTaNvRoRcjPabmg-2FYSZ4qlwRIjLyz3-2FpZbVbMIFggAqpmUy17leIR1sNaDRnwJAxn-2BjGyqbjDFR6nqEJcL0WJeCJgfkcnU61NmbA83hbTAmLnctzPPkIMrVd-2BaUTiFHjXgULpPfZvmHxU02xiZqTK4BvfPZJPRFVaxTaAGJPMGjaxUf375NPqi7m-2BQ-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=-2FcgwiRAxmHDdptrhrsAJKMBtNqQpWV-2BwUfjpvH9AIargtqW0Hr1CbRpnNQStpChX7VgJud2Se3z4stG2zOZeV6KnRRb0RYN-2FSvdh0XVusKwbneBIICtQ0bp-2Fu6YVw4MYu2iXaIHVHPcJ-2BaUgJQJEIIMU4gGkrvUbTMggrBsriWpZlnFvZc-2FuH6LtXnNAM-2FsetvoibGwfETdcd7iEguheE025DikGkjx8QhrURc1cX6w-3D" alt="" width="1" height="1" border="0" style="height:1px!important; width:1px!important; border-width:0!important; margin-top:0!important; margin-bottom:0!important; margin-right:0!important; margin-left:0!important; padding-top:0!important; padding-bottom:0!important; padding-right:0!important; padding-left:0!important">
</div>
</body>
</html>