List Info

Thread: Re: Cross Compiling for OS X?




Re: Cross Compiling for OS X?
user name
2008-05-03 20:25:24
On May 3, 2008, at 6:16 AM, David Chisnall wrote:

> On 3 May 2008, at 10:26, hnscomputer.org wrote:
>
>> c) Real cross-compiling
>> This means that you have a gcc version on your
Linux machine that
>> emits executables that run on OSX. Unfortunately,
OSX uses MACH-O
>> binaries and building a cross-compiling gcc is very
tricky.
>
> I've not tried building Apple GCC on non-Apple
platforms, but even  
> if you do this then you need more to get a real
cross-compiling  
> environment.  You also need copies of every header file
that your  
> program includes.  You can't substitute GNUstep's
Foundation.h for  
> Apple's, since they have different instance variable
layouts so any  
> of your subclasses of Apple classes will be wrong. 
This header also  
> includes other headers which define things like the
sizes and  
> layouts of of C types and so on,   These can be
acquired from the  
> Darwin sources, but you'll still need the framework
headers which  
> are not publicly redistributable.  In short, cross
compiling is  
> hard, which is why hardly anyone does it.
>
> Improving GNUstep Make to build native OS X
applications (it already  
> works nicely for frameworks) would be a better
approach, but I'm not  
> sure how much effort this would be.  Building OS X apps
from a  
> makefile isn't very hard, although fat binaries are
slightly harder,  
> so it might be worth investigating.
>

David, would you mind clarifying your last paragraph a bit? 
My  
reading of your first sentence is that you want to build
native OS X  
applications via GNUstep Make, but then your second sentence
seems to  
suggest you're already doing that.  For what it's worth, I
use GNUstep  
make to build native applications on OS X (the app is not a
universal  
binary).  I use the DBModeler application from GDL2 as a
native app (I  
had to build nibs to replace the gorm files).

I may have completely misunderstood what you're saying, and
apologize  
if that's the case.


Cheers,
Blake


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustepgnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Re: Cross Compiling for OS X?
user name
2008-05-04 06:30:58
On Sun, May 4, 2008 at 2:25 AM, Blake Nicholson
<blakenumich.edu> wrote:
> I use the
> DBModeler application from GDL2 as a native app (I had
to build nibs to
> replace the gorm files).

Neat, have you planned to send those nibs to gnustep ? I'm
sure other
people might be interested by running GDL2 and DBModeler on
OSX (and
if you could write a tutorial as well it would be even
better :-P )

-- 
Nicolas Roard


_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustepgnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )