<div dir="ltr">Can confirm that it works through spm and a modulemap.</div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 7, 2015 at 6:13 PM Max Howell via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Indeed, this *should* work, and if we have to do some tricks to make it do so we’re happy to make the modifications, so please file a bug and we’ll look into it. Thanks.</div><div style="word-wrap:break-word"><div><br></div><div>Max</div></div><div style="word-wrap:break-word"><div><br><div><blockquote type="cite"><div>On Dec 7, 2015, at 11:06 AM, Mish Awadah via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:</div><br><div><div style="word-wrap:break-word">Please file a bug describing the situation and your environment. We’d be happy to make this easier for you in the future.<div><br></div><div>- mish</div><div><br><div><blockquote type="cite"><div>On Dec 5, 2015, at 11:51 AM, Damien BRUN via swift-users <<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>> wrote:</div><br><div><div><p>Works with simple libs which can be referenced by a simple path. With Gdk/Gtk who share a single include dir, module compilation can't find its way. No matter what I try, I end up with :</p><p><module-includes>:1:10: note: in file included from <module-includes>:1: #include “gtk/gtk.h”</p>
<pre>^</pre><p>/usr/include/gtk-3.0/gtk/gtk.h:30:10: error: ‘gdk/gdk.h’ file not found #include <gdk/gdk.h></p><p>Seems like one would have to rewrite gtk/gdk headers to please clang…</p><p>2015-12-05 19:40 GMT+01:00 Damien BRUN <<a href="mailto:dev@lanza.fr" target="_blank">dev@lanza.fr</a>>:</p>
<blockquote><pre>Thanks Harlan for the link, this is what I'm trying to do. =)</pre>
<pre>With interdependent libs, this becomes a mess anyway... (tried gdk/gtk...)</pre>
<pre>& thanks René for the video. Very interesting for what will come next.</pre>
<pre>2015-12-05 18:07 GMT+01:00 Harlan Haskins <<a href="mailto:harlan@harlanhaskins.com" target="_blank">harlan@harlanhaskins.com</a>>:</pre>
<blockquote><pre>C libraries require you to create modules for them. There's a great guide with examples for importing libjpeg into Swift on GitHub:</pre>
<pre><a href="https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md" target="_blank">https://github.com/apple/swift-package-manager/blob/master/Documentation/SystemModules.md</a></pre>
<pre>On Dec 5, 2015, at 8:58 AM, Damien BRUN <<a href="mailto:dev@lanza.fr" target="_blank">dev@lanza.fr</a>> wrote:</pre>
<pre>Hello Again,</pre>
<pre>Now that I have a functional Swift installation, I'd like to know if/how I can use C libs ?
How do I import headers & link to the right libs ?</pre>
<pre>Thanks</pre>
<pre>_______________________________________________
swift-users mailing list
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a></pre></blockquote></blockquote><p><em>____________________________________________</em>_ swift-users mailing list <a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a> <a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a></p>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=xTF6JWnt2pl7kNka7081D3VajDoXFZTI5JEuSuQLncr9eucMhFd-2BCu6-2FqCDmB-2B6fFh3bPcI4ZKEOLz5n9U-2FykkcRYE-2BJaLyaf1ed1e6abH-2BMfFli87qsiQiDw19ExmR9WfWp2hyfQv5FUAl0JFG-2FbX2h89ObWzll2RQnh8cTm5U5FUwugoflxb4DU9RBJ-2F3HzIzVFij4T9bXOT0svamT-2Fa3zXSsZ0P8Pjgm8Z2we5zI-3D" alt="" width="1" height="1" border="0" style="min-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>
</div></blockquote></div><br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=cbMbdH1LnH6O78Q-2BHw3jtU8ikibH470Fh9meAJKpwSoQ1eUxB2DQGqm70jRlAM-2BCcPIw96DCXETXJCnWapCfcNLGuYLMvrmMDipu5rl5YQ-2FVzPodsoZJne6paKm-2FEKz7uwRumdrv1-2BWxKyCGD0VNlE7SAeWsZkrxrpJrQ2nSRtZNuQbHgNHKCymPhLipDNBeytT-2B1DkEHlTFn14iYFPz8VOCYeTyoUqFz0E201K7puc-3D" alt="" width="1" height="1" border="0" style="min-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>
_______________________________________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=0STgJFrDM1NW2hlUscsEzEbKCUfVMDHdFZGprHdNmYdn9s8X3eSX9XfZkLYc2cu5-2FyLYG-2F4yIsHI7zJ0hlaWyRgbO03GjLEfIYjG-2BYsleTEzRmpR36tY6TV1GlxY8kghO3f2OTYDkiVSO2bV8gR9IAqDYgGbymp0vKVdH8RGLmsN1gxJHAgmuT0G8fuAyknhZa3y35JX7F-2FRviHOMIslHMMpSD-2FDoqmuZaqw3sslOgk-3D" alt="" width="1" height="1" border="0" style="min-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>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div>