<div dir="ltr">On Wed, Oct 30, 2013 at 9:02 AM, Søren Krogh Neigaard <span dir="ltr"><<a href="mailto:soeren@neigaard.com" target="_blank">soeren@neigaard.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi again,<br>
<br>
I am struggling getting started using taglib in Xcode.<br>
<br>
I think I have done the right thing here..? I have build taglib with the following:<div class="im"><br>
<br>
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=<u></u>10.6 -DCMAKE_OSX_ARCHITECTURES="<u></u>i386;x86_64" -DENABLE_STATIC=ON -DCMAKE_INSTALL_PREFIX="/<u></u>Users/soeren/dev-libs/build"<br>
<br></div>
and ofcourse make and make install. I then added libtag.a and libtag_c.a to my Xcode project and set the "User Header Search Paths" to "/Users/soeren/dev-libs/build/<u></u>include". Is this correct?<br>
</blockquote><div><br></div><div>Based on my limited experience building for OS X, I think it would be easier to use a framework with Xcode. You can use cmake to build a TagLib framework with -DBUILD_FRAMEWORK=ON (see the INSTALL file).</div>
<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
But now I dont know how to use this from Objective C? If i make this import:<br>
<br>
#import <taglib/taglib.h><br>
<br>
I get a compiler error, but I can do this:<br>
<br>
#import "taglib/taglib.h"<br>
<br>
But I can not figure out what to import to be able to use "TagLib::FileRef" in my code. Do I need to make some kind of wrapper to use this in Objective C, or what do I do now? Please get me in the right direction, using a C++ library from Xcode/ObjC is totally new for me.</blockquote>
<div><br></div><div>With this I can't help directly, I have no experience with Obj-C, but have a look at some of Stephen's code that uses TagLib:</div><div><br></div><div><a href="https://github.com/sbooth/Play/blob/master/Audio/Metadata/Readers/MP3MetadataReader.mm">https://github.com/sbooth/Play/blob/master/Audio/Metadata/Readers/MP3MetadataReader.mm</a><br>
</div><div><br></div><div>Lukas</div></div></div></div>