Re: creating statically linked binaries

Shantonu Sen <[email protected]>
Newsgroups gmane.os.opendarwin.general
Message-ID <[email protected]>
You're doomed. The fact that you are asking about running Cocoa in Open 
Firmware indicates you probably don't have a very good grasp of what 
facilities are available in OF, and how to create programs for OF. OF 
does not have a Quartz Window Server, for example.

You should look at the BootX project, which does create a static xcoff 
binary that does access the graphics services provided by OF (it draws 
the gray apple at boot). If that is not sufficient, I don't think 
you'll be able to accomplish whatever it is you want.

Shantonu

On Jan 12, 2005, at 9:08 AM, Shawn Erickson wrote:



>
> On Jan 12, 2005, at 7:05 AM, brendan Murphy wrote:
>
>
>> Hi,
>>
>> Im developing on a machine with a Darwin Kernel Version 7.6.0, and I 
>> need to create a
>> Cocoa or c++ binary that is completely statically linked (as it will 
>> be running in Open Firmware, which doesn't seem to support dynamic 
>> linked libraries).
>>
>> It seems that the MAC OSX 3.6 doesn't directly support statically 
>> link, but it can be done
>> by rebuild the CSU module. Has any one any experience on this or 
>> could they point me in the right direction.
>>
>> Basically I need a static version libSystem.B.dylib (and probably a 
>> few other too!!)
>>
>> Regards,
>> Brendan...
>>
>
> Wow I don't see how you could get Cocoa, etc. to work directly from 
> Open Firmware,  what are you trying to do? how much of the OS will be 
> running?
>
> Anyway the Cocoa frameworks and many of the frameworks, etc. it 
> depends on are not open source and are only provided in framework form 
> (aka dynamic libraries). In theory with a little hackery you could 
> extract and make it a static library but...
>
> Also Cocoa and friends is not part of Darwin only part of Mac OS X.
>
> FYI it is "Mac OS X 10.3.6" with "Mac OS X" its name and "10.3.6" its 
> version (MAC is often taken to mean Media Access Controller, an 
> ethernet interface basically).
>
> -Shawn
>
> _______________________________________________
> Discuss mailing list
> [email protected]
> http://www.opendarwin.org/mailman/listinfo/discuss
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.