Distributing a C command line tool in a OS X .app Bundle

你说的曾经没有我的故事 提交于 2021-02-07 04:14:57

问题


I wrote a C command line tool which uses GLUT to visualize a genetic algorithm and I want to distribute it in a Mac OS X .app Bundle.

How do I do that? Are there any helper tools available for this?

Thank you very much! Thomas

Edit: Thank you very much for your help, I didn't think of it being that easy!


回答1:


Create new xcode project, with "application" template. Add your source code to that project, compile and... You have app bundle. You need only to deploy it (add frameworks). Thats all.




回答2:


If you want to compile your code, you can use the Mac OS X IDE XCode.
If you want an installer for that, you can use the Package Maker.

(I have already found the Package Maker utility - but that is not what I wanted.)

Package Maker is for distribution. May I know why package maker won't help?




回答3:


You must link the library into the bundle in order to avoid issue. Look the issue about Universal build instead of doing a PPC and Intel build.



来源:https://stackoverflow.com/questions/4539902/distributing-a-c-command-line-tool-in-a-os-x-app-bundle

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!