Re: 3rd party executable in iOS project
Re: 3rd party executable in iOS project
- Subject: Re: 3rd party executable in iOS project
- From: ChanMaxthon <email@hidden>
- Date: Tue, 22 Oct 2013 10:02:18 +0800
Despite NSTask is missing in runtime, your day can still be saved by:
1) You can use the NSTask implementation from GNUstep, an LGPL-licensed library.
2) You can still use classic UNIX function calls to pipe/fork/dup2/exec
Sent from my iPhone
> On 2013年10月22日, at 9:37, Daniel DeCovnick <email@hidden> wrote:
>
> 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
_______________________________________________
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