<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<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 &quot;Module not found,&quot; 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.&nbsp;<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:27 PM -0800, &quot;Gage Morgan via swift-users&quot;
<span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div>So if the name of the library is libcairo amd to imstall I had to type &quot;sudo apt-get install libcairo2-dev, what would I put for &quot;link:?&quot;<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:21 PM -0800, &quot;Max Howell&quot; <span dir="ltr">
&lt;<a href="mailto:max.howell@apple.com" target="_blank">max.howell@apple.com</a>&gt;</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 &lt;<a href="mailto:gagemorgan@outlook.com" class="">gagemorgan@outlook.com</a>&gt; wrote:</div>
<br class="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_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_gmail_quote">On Wed, Dec 9, 2015 at 11:19 AM -0800, &quot;Max Howell&quot; <span dir="ltr" class="">
&lt;<a href="mailto:max.howell@apple.com" target="_blank" class="">max.howell@apple.com</a>&gt;</span> wrote:<br class="">
<br class="">
</div>
<div class="x_x_BodyFragment">
<div class="x_x_PlainText">&gt; Gage,<br class="">
&gt; <br class="">
&gt; For what it's worth, after running `git init` and `git tag -f 1.0.0`<br class="">
&gt; in `CCairo` to get something importable, I run into this error:<br class="">
&gt; <br class="">
&gt; :;&nbsp; swift build<br class="">
&gt; Cloning Packages/CCairo<br class="">
&gt; &lt;unknown&gt;:0: error: no such file or directory:<br class="">
&gt; '/Users/solidsnack/Downloads/Sources/example/Packages/CCairo/Package.swift’<br class="">
<br class="">
&nbsp;&nbsp;&nbsp; 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>
</body>
</html>