简体   繁体   中英

Getting started with libpurple

I'm writing a Cocoa Touch program that will (hopefully) use Libpurple as it's background. The only problem is that I have no clue where to get started. I've been looking through some source code of applications that do use it, but so far haven't gotten anywhere.
Does anyone know anything that will help me familiarize myself with libpurple?

First of all, you may encounter some trouble, since libpurple is licensed under GPLv2. It may be incompatible with what you are trying to do. (I am not totally sure you can have a GPLv2 app on the App Store.)

Second, you can read purple-client-example.c in the libpurple source , for a super-short example.

Also, Adium might be more useful to study than Pidgin since it is a Mac OS X app, closer to what you might do on the iPhone.

The best way to understand libpurple is to work with Pidgin , the OSS client that uses it. Study the Pidgin implementation, then start to design your own client.

If you plan to sell this, you cannot use libpurple because it is under the GNU license. Please check out my alternative AIM API for Objective-C, with a bit of tweaking, it will probably work moderately well on iPhone: LibOrange

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM