From taglib-devel Wed Oct 30 08:45:22 2013 From: =?ISO-8859-2?B?THVr4bkgTGFsaW5za/0=?= Date: Wed, 30 Oct 2013 08:45:22 +0000 To: taglib-devel Subject: Re: Getting started with taglib in Xcode Message-Id: X-MARC-Message: https://marc.info/?l=taglib-devel&m=138312276725117 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============3067219271979081232==" --===============3067219271979081232== Content-Type: multipart/alternative; boundary=001a11c3235a57959e04e9f15ce0 --001a11c3235a57959e04e9f15ce0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Oct 30, 2013 at 9:02 AM, S=F8ren Krogh Neigaard wrote: > Hi again, > > I am struggling getting started using taglib in Xcode. > > I think I have done the right thing here..? I have build taglib with the > following: > > > cmake -DCMAKE_BUILD_TYPE=3DRelease -DCMAKE_OSX_DEPLOYMENT_TARGET=3D**10.6 > -DCMAKE_OSX_ARCHITECTURES=3D"**i386;x86_64" -DENABLE_STATIC=3DON > -DCMAKE_INSTALL_PREFIX=3D"/**Users/soeren/dev-libs/build" > > 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/**include". Is this correct? > 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=3DON (see the INSTALL file). > But now I dont know how to use this from Objective C? If i make this > import: > > #import > > I get a compiler error, but I can do this: > > #import "taglib/taglib.h" > > 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 u= se > 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. 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: https://github.com/sbooth/Play/blob/master/Audio/Metadata/Readers/MP3Metada= taReader.mm Lukas --001a11c3235a57959e04e9f15ce0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Oct 30, 2013 at 9:02 AM, S=F8ren Krogh Neigaard <soeren@neigaard.com> wrote:
<= div class=3D"gmail_quote">
Hi again,

I am struggling getting started using taglib in Xcode.

I think I have done the right thing here..? I have build taglib with the fo= llowing:


cmake -DCMAKE_BUILD_TYPE=3DRelease -DCMAKE_OSX_DEPLOYMENT_TARGET=3D1= 0.6 -DCMAKE_OSX_ARCHITECTURES=3D"i386;x86_64" -DENABLE_STA= TIC=3DON -DCMAKE_INSTALL_PREFIX=3D"/Users/soeren/dev-libs/build= "

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/include". Is this correct?

Based on my limited experience building fo= r OS X, I think it would be easier to use a framework with Xcode. You can u= se cmake to build a TagLib framework with=A0-DBUILD_FRAMEWORK=3DON (see the= INSTALL file).
=A0
But now I dont know how to use this from Objective C? If i make this import= :

#import <taglib/taglib.h>

I get a compiler error, but I can do this:

#import "taglib/taglib.h"

But I can not figure out what to import to be able to use "TagLib::Fil= eRef" in my code. Do I need to make some kind of wrapper to use this i= n Objective C, or what do I do now? Please get me in the right direction, u= sing a C++ library from Xcode/ObjC is totally new for me.

With this I can't help directly, I have no experien= ce with Obj-C, but have a look at some of Stephen's code that uses TagL= ib:


Lukas
--001a11c3235a57959e04e9f15ce0-- --===============3067219271979081232== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ taglib-devel mailing list taglib-devel@kde.org https://mail.kde.org/mailman/listinfo/taglib-devel --===============3067219271979081232==--