Re: 3rd party executable in iOS project
Re: 3rd party executable in iOS project
- Subject: Re: 3rd party executable in iOS project
- From: Daniel DeCovnick <email@hidden>
- Date: Mon, 21 Oct 2013 18:37:29 -0700
Import the headers and call the functions, if you're linking your application against it.
Daniel
On Oct 21, 2013, at 6:26 PM, Koen van der Drift <email@hidden> wrote:
> Ok, I figured it out. I was able to build three different static libraries for armv7, armv7s and i386 and combined them with lipo into one that I added to my project.
>
> The question now is, how do I call the functions in this library?
>
> On the command line, I need to do something like this:
>
> foo file1 > output
>
> With NSTask and companions it is easy to do this, but how can I do that for iOS where NSTask is not present?
>
>
> - Koen.
>
>
> On Oct 21, 2013, at 4:17 PM, Koen van der Drift <email@hidden> wrote:
>
>> I think I am on the right track now. I'm building the project (plain c) on the command line with an updated makefile for iOS, but am getting some compiler and linker errors. Since this is outside the scope of this mailing list I will ask additional questions on the Xcode list.
>>
>> - Koen.
>>
>>
>> On Oct 21, 2013, at 2:53 PM, Koen van der Drift <email@hidden> wrote:
>>
>>>
>>> On Oct 21, 2013, at 2:43 PM, Jens Alfke <email@hidden> wrote:
>>>
>>>> Can you configure that project as a [static] library that you can link into your app and call directly?
>>>
>>> Yeah, I though about that as well, and am going to try that. It comes with makefiles for Mac (OSX only though), so I'll start with that.
>>>
>>> Actually, I misspoke, it is not an open source project, but the license says am allowed to use it in a non-commercial project.
>>>
>>> Thanks,
>>>
>>> - Koen.
>>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden