Re: Creating a Mach-O library?
Re: Creating a Mach-O library?
- Subject: Re: Creating a Mach-O library?
- From: Matthew Formica <email@hidden>
- Date: Tue, 20 Aug 2002 11:20:32 -0700
Yes, Project Builder can build shared libraries. But before I explain how
to do that, I should say that you should be using a framework. It's not
really that "heavy" - it's just a proper packaging structure for your mach-o
shared library and its associated headers (which it sounds like you'll need
anyway).
To create a shared library in Project Builder, you need to create a new
library target. Unfortunately, at this time you can't create a library
project type when creating a new project, so you have to create a project
with some other type, like application, and then just add a library target.
After creating the library target, go into the target editor pane and make
sure your library name is of the form libfoobar.dylib and finally under the
"Expert View" change the LIBRARY_STYLE to DYNAMIC.
Regards,
Matthew
--
Matthew Formica
DTS Engineer - Developer Tools and Cocoa
Apple Computer, Inc.
email@hidden
Mac OS X Development Tools:
http://developer.apple.com/tools/
Project Builder on the web:
http://developer.apple.com/tools/projectbuilder/
Project Builder FAQ:
http://developer.apple.com/tools/projectbuilder/faq.html
Cocoa docs on the web:
http://developer.apple.com/techpubs/macosx/Cocoa/CocoaTopics.html
Cocoa sample code:
http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm
On 8/20/02 7:35 AM, "Pierre-Olivier Latour" <email@hidden> wrote:
>
Hi,
>
>
I'd like to create a library for my 3D engine, so that other programs can
>
use it.
>
Under OS 9 and CodeWarrior, I used to build a shared library or a
>
codewarrior library and provide it with required headers. The end user would
>
then simply drop the library into his CW project and include the headers.
>
>
Under PB, I'd like to do the same thing (I'd rather avoid frameworks, they
>
seem too "heavy" for my simple needs). I guess it would imply create a
>
simple mach-o file with all engine code inside.
>
>
Is this possible with Project Builder (I'm pretty sure it's do-able with a
>
makefile, but I don't know how to create them)? Is it possible to add a
>
mach-o file to a PB project too?
>
>
Thanks for any info!
>
>
>
_____________________________________________________________
>
>
Pierre-Olivier Latour email@hidden
>
Lausanne, Switzerland http://www.pol-online.net
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.