简体   繁体   English

如何为我的iPhone项目在Xcode中使用第三方C库?

[英]How do I use a 3rd party C library in Xcode for my iphone project?

love this site and all helpful people! 喜欢这个网站和所有乐于助人的人! I'm newbie to Xcode and iPhone programming but I've pretty much got the hang of using the SDK to make programs in Obj-C (simple programs right now but make me happy). 我是Xcode和iPhone编程的新手,但是我几乎掌握了使用SDK在Obj-C中创建程序的窍门(现在是简单的程序,但让我感到高兴)。 My experience is web programming (such as PHP and Perl) and I'm not really used to a lot of the new Xcode/desktopy-app stuff like static libraries and linking and such. 我的经验是Web编程(例如PHP和Perl),并且我不习惯使用很多新的Xcode / desktopy-app应用程序,例如静态库和链接等。 I be honest, I am not total awesome programmer yet! 老实说,我还不是一个很棒的程序员!

I have a problem right now, my (card game) program I am writing needs to use this C library. 我现在遇到问题,我正在编写的(纸牌游戏)程序需要使用 C库。 I don't really understand how I get the proper C files and integrate them into my project so I can start using the commands in that tutorial to evaluate hand values. 我不太了解如何获取正确的C文件并将它们集成到我的项目中,因此我可以开始使用该教程中的命令来评估手的值。

I hope I have been clear, please let me know if there is anything I am leaving out. 希望我已经清楚了,如果我有遗漏的地方,请告诉我。 Unfortunately, my newbieness may prevent from me making everything so clear and sometimes I can't english perfectly what I am thinking! 不幸的是,我的新手可能会阻止我使一切变得如此清晰,有时我无法完全说出我的想法!

Happy thanks in advance, looking forward to any help! 在此先感谢您,期待任何帮助!

Couple things: 几件事情:

  • The library you linked to is quite large. 您链接到的库很大。 Pokersource appears to be a large C project containing all sorts of things like language bindings and some GUI tools as well. Pokersource似乎是一个大型C项目,其中包含语言绑定和一些GUI工具之类的各种东西。 A project that large certainly has an IRC channel. 一个很大的项目肯定有一个IRC通道。 I would recommend going there. 我建议去那里。
  • The library you linked to appears to be (I may be wrong about this), licensed under the GPLv3. 您链接到的库似乎是(对此可能是错误的),并根据GPLv3许可。 This means that any program that you distribute to others that uses a GPLv3 library or piece of code must also be licensed under the GPLv3. 这意味着您分发给其他使用GPLv3库或代码段的程序也必须获得GPLv3的许可。 The upshot is that if you use that library, you'll have to release the source for your game. 结果是,如果您使用该库,则必须释放游戏源。

The site you linked to does seem to have a long list of other poker hand evaluators , so its possible one of them is suitable for your needs. 您链接到的站点似乎确实有一长串其他扑克手评估者 ,因此可能其中之一适合您的需求。

Good luck! 祝好运!

it's totally possible to use third party static libraries with your iPhone and using Xcode. 完全有可能在您的iPhone和Xcode中使用第三方静态库。 This webpage illustrates the process of doing it. 网页说明了执行该操作的过程。

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

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