Re: Dev on mac, build on a sparc
Re: Dev on mac, build on a sparc
- Subject: Re: Dev on mac, build on a sparc
- From: Peter Mulholland <email@hidden>
- Date: Fri, 15 Dec 2006 13:28:16 +0000
Hello Nicolas,
Friday, December 15, 2006, 11:56:47 AM, you wrote:
> Hello everybody,
> I know it sound a bit off topic, but my question is relevant to
> xCode, so I thought it was the right place.
> I'm currently working on a game project, with networking support
> (MMORPG).
> Anyway, no trouble for client side, we use xcode to create universal
> binaries and windows binary with mingw cross compiling.
> Now, for the server part, we will certainly use sparc multicore cpu
> (the thread monster servers). I want to dev the server part on my
> mac, using xCode, but the app will be compiled with sun studio on sparc.
> I will do the debugging on my mac, compiling as ppc binary (ppc is
> near enough of sparc to debug). But I don't know how I will compile
> my xCode project using sun studio.
> A solution I though of is using makefile within xcode. But, I don't
> really know how. I use xCode because it's super handy. I want the
> best was to manage my solaris sparc build. I don't want to edit the
> makefile each time I move or add a *.c or a *.h.
You will be best to write and 100% debug the server code on the Mac -
make it as portable as possible, if you can, stick to the POSIX API's
like sockets, pthreads etc - don't use any Mac API's, or if you have
to, isolate them out.
Then when it is done and tested, create your Makefile for use on the
SPARC. You will probably be best to use GCC even on SPARC (I presume
you are running Solaris?) instead of the Sun compiler.
There is probably some conversion tool as mentioned, but writing a
Makefile by hand is not too difficult - there are plenty of guides on
the 'net that explain it. The only thing I will say is STAY AWAY FROM
AUTOMAKE, it will take you longer to learn this and its perculiarities
than it will to write a Makefile by hand!
--
Best regards,
Peter mailto:email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden