views:

391

answers:

2

Hi,

I would like to develop an iPhone App based on an existing open-source Objective-C framework, however that framework makes extensive use of the glib library and I cannot find a way to build and include the glib library for an iPhone app (non jailbreak).

Is there any way this can be done, or is there any recommended approach to porting a framework away from glib?

Thanks

A: 

I would recommend porting away from because glib is GPL licensed, which means that you will have to open source all your application code. Or maybe that is not an issue?

St3fan
No, Glib is LGPL, which has no implications for the licensing of your application. The only requirement is that it not be statically compiled into your application, and that any changes you make to Glib are released.
Pete
So static linking is your only option on the iPhone. The iPhone does not support dynamic linking for third party applications. This is why the LGPL is also not usable for closed source iPHone projects.
St3fan
Thanks, that's what I feared. I'm going to try and port what I need.
Paul
Any functionality in Glib is probably in the standard iPhone Obj-C libraries anyway: linked lists, timers, threads and such like.
ptomato
+3  A: 

no, guys, using LGPL projects on iPhone (where you indeed need to statically link) is legal as long as you provide your app's object code so the user can (if technically versed) re-link your app with a new version of the LGPL lib. Of course, you still need to re-publish the lib if you change any of that code.

dan