getting started with ios
Christopher Scott
chris at phatfly.com
Thu Mar 27 22:00:26 UTC 2014
Ferenc,
I have placed my cmake steps to Gist at: https://gist.github.com/phatfly/9819777
This is what I did to make taglib work in my iOS project. I am new to cmake and taglib … so I borrowed everything from online sources.
I have not, yet, figured out why the build is not working with the simulator … but it does work with device.
If there are people reading this that maintain any taglib websites and want to repost my gist in anyway … go ahead. Maybe the next poor soul won’t have to spend as much time as I did with the learning curve.
Thanks!
Christopher Scott
On Mar 27, 2014, at 1:32 PM, Christopher Scott <chris at phatfly.com> wrote:
> Thank you, everyone, for your help!
>
> I am not that great at c++, or with taglib. I went with this code:
>
> TagLib::ID3v2::FrameList l = tag->frameListMap()["PRIV"];
> // cout << "out: list count: " << l.size() << endl;
>
> if(l.size() > 0)
> tag->removeFrames("PRIV”);
>
> I want to erase any previous priv tag and after testing ... this clears it.
>
>
> I would like to document the exercise I went through with compiling taglib for iOS with cmake. Is there someone I can ping about getting this in the wiki?
>
>
> Thanks again!
> Christopher Scott
>
>
>
> On Mar 27, 2014, at 12:34 AM, Scott Wheeler <scott at grunge-nouveau.net> wrote:
>
>>
>> On Mar 26, 2014, at 7:52 PM, Christopher Scott <chris at phatfly.com> wrote:
>>
>>> if (l[i]->toString() == “ownerEmailAddress")
>>> {
>> […]
>>> tag->removeFrame(l[i]);
>>> tag->addFrame(l[i]);
>>
>> This doesn’t make sense to me. You shouldn’t need to remove and then re-add the same frame.
>>
>> […]
>>
>>> }
>>> }
>>> if (!found)
>>> {
>>>
>>> TagLib::ID3v2::PrivateFrame *frame = new TagLib::ID3v2::PrivateFrame ();
>>>
>>> frame->setOwner("ownerEmailAddress");
>>> const TagLib::ByteVector v = TagLib::ByteVector::fromCString(UITSPayload, (uint32_t) strlen(UITSPayload));
>>> frame->setData(v);
>>>
>>> tag->addFrame(frame);
>>> f.save();
>>> }
>>
>> I think the main problem here is that you’re only calling save() if “found” is false.
>>
>> -Scott
>>
>> _______________________________________________
>> taglib-devel mailing list
>> taglib-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/taglib-devel
>
> _______________________________________________
> taglib-devel mailing list
> taglib-devel at kde.org
> https://mail.kde.org/mailman/listinfo/taglib-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/taglib-devel/attachments/20140327/02422795/attachment-0001.html>
More information about the taglib-devel
mailing list