Is it possible to use third party libraries (libpurple comes to mind) on the iPhone? If so, can someone explain how, or link me to some information on it?
Thanks,
Russell
I know what I'm trying to do and how I'm trying to do it, and it will work fine on an iPhone in terms of the hardware limitations. Using libraries (dynamically linked) can actually reduce memory usage if you have more than one program that needs access to the same functionality, as the library only needs to be loaded into memory once.
I know what I'm trying to do and how I'm trying to do it, and it will work fine on an iPhone in terms of the hardware limitations. Using libraries (dynamically linked) can actually reduce memory usage if you have more than one program that needs access to the same functionality, as the library only needs to be loaded into memory once. And one way or another, re-implementing chat protocols is a complete waste of my time.
I'm just wondering:
1. Is it possible to use dynamically linked libraries? (I think not)
2. Is it possible to use statically linked libraries, in light of the different architecture, etc?
3. If any of the above is possible, how?
I think part of Apple's "rules" for app development state you can't use 3rd party libraries. Better read them over again.
iPhone is not a desktop or laptop computer. It is a PDA/Phone with severe memory restrictions, tight battery usage and only a subset of full OS X features. An app can't remain running in the background and constantly poll the network on an iPhone, it just isn't intended to be used that way.
I suggest learning to program on Mac OS X, sign up and get the iPhone SDK, learn the differences, and then figure out what to do as far as iPhone software.
Using libraries (dynamically linked) can actually reduce memory usage if you have more than one program that needs access to the same functionality, as the library only needs to be loaded into memory once.
Libpurple (and other GPLv2'd libraries) are not compatible with the conditions Apple sets for it's SDK and distribution through iTunes Store.Is it possible to use third party libraries (libpurple comes to mind) on the iPhone? If so, can someone explain how, or link me to some information on it?
Libpurple (and other GPLv2'd libraries) are not compatible with the conditions Apple sets for it's SDK and distribution through iTunes Store.You can't use them.
You'd have to explain why that would be the case. All applications are shipped as packages, you can just put the source code into the package, and you are fine.
I hadn't thought about that, but now that I do, it could definitely be a problem. As the distributor of the binary, I believe that Apple would be required to offer the source code as well. And I'm not sure that encapsulating the source in the package destined for the iPhone would be considered a sufficiently standard or transparent means of doing so. But I'm more interested in the technical aspects of this.
Well, you can't modify it and install it on your iPhone.You'd have to explain why that would be the case. All applications are shipped as packages, you can just put the source code into the package, and you are fine.