简体   繁体   English

libpurple入门

[英]Getting started with libpurple

I'm writing a Cocoa Touch program that will (hopefully) use Libpurple as it's background. 我正在编写一个Cocoa Touch程序,它将(希望)使用Libpurple作为它的背景。 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? 有没有人知道什么能帮助我熟悉libpurple?

First of all, you may encounter some trouble, since libpurple is licensed under GPLv2. 首先,您可能会遇到一些麻烦,因为libpurple是根据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.) (我不完全确定你可以在App Store上安装GPLv2应用程序。)

Second, you can read purple-client-example.c in the libpurple source , for a super-short example. 其次,您可以在libpurple源中读取purple-client-example.c ,这是一个超短的例子。

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. 此外, Adium可能比Pidgin更有用,因为它是Mac OS X应用程序,更接近您在iPhone上的操作。

The best way to understand libpurple is to work with Pidgin , the OSS client that uses it. 了解libpurple的最佳方法是使用Pidgin ,即使用它的OSS客户端。 Study the Pidgin implementation, then start to design your own client. 研究Pidgin实现,然后开始设计自己的客户端。

If you plan to sell this, you cannot use libpurple because it is under the GNU license. 如果您打算出售此产品,则不能使用libpurple,因为它属于GNU许可证。 Please check out my alternative AIM API for Objective-C, with a bit of tweaking, it will probably work moderately well on iPhone: LibOrange 请查看我用于Objective-C的替代AIM API,稍微调整一下,它可能会在iPhone上适度运行: LibOrange

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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