<div class="gmail_quote">2011/7/21 Pris Matic <span dir="ltr"><<a href="mailto:prismatic.project@gmail.com">prismatic.project@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all,<div><br></div><div>Thanks for the replies. I'm trying to keep my app source as 'portable' as possible (outside of using Qt :p) and I want to include any external libs like TagLib statically (ie not install them in the system).</div>
</blockquote><div><br></div><div>Belive me, adding all lib sources to your repo can't guarantee successful build on every OS. Even with QT.</div><div>So it's realy bad idea. (I try it ~3 month ago)</div><div><br>
</div>
<div>As alternative you can use <b>git </b><b>submodule</b>. You can also write some scripts to build dependences and install it to correct (local) places.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Scott, what did you mean by setting up includes for *all* the source dirs? I'm not directly including each taglib source file in like main.cpp or anything, I compiled the TagLib source as a static lib which I then link to. In this case shouldn't I just have to link to 'tag.h' and 'fileref.h'?</div>
</blockquote><div><br></div><div>you can += all src subfolders to INCLUDEPATH in .pro or .pri</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><br></div><font color="#888888"><div><br></div><div>pris</div></font><div><div></div><div class="h5"><br><div class="gmail_quote">On Wed, Jul 20, 2011 at 6:42 PM, Scott Wheeler <span dir="ltr"><<a href="mailto:wheeler@kde.org" target="_blank">wheeler@kde.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Jul 21, 2011, at 12:08 AM, Pris Matic wrote:<br>
<br>
> tstring.h: No such file or directory // from tag.h., line 30, which is "#include tstring.h"\<br>
<br>
If you want to use taglib that way, you'll need to set up includes for each of the source directories. However, since you're developing on Ubuntu, I don't understand why you wouldn't just use the system packages. (i.e. get your taglib by doing apt-get install libtag1-dev libtag1c2a) It's much easier to incorporate into a project that way since then you just have to tell QtCreator to look for the pkgconfig file and it'll set up the rest.<br>
<font color="#888888"><br>
-Scott<br>
</font><div><div></div><div>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org" target="_blank">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
taglib-devel mailing list<br>
<a href="mailto:taglib-devel@kde.org">taglib-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/taglib-devel" target="_blank">https://mail.kde.org/mailman/listinfo/taglib-devel</a><br>
<br></blockquote></div><br>