Porting Linux 2 Mac
category: general [glöplog]
Since macos is yet another linux is it complicated to get something working on mac (read porting) that already works on linux?
Note that I don't have a mac.
Note that I don't have a mac.
MacOS isn't Linux. But it's UNIX-ish, like Linux. How easy it is to port stuff depends a lot on the application.
There is a lot of ported unix stuff available at MacPorts. The standard packages are all there, and OSX has GCC.
cross-compile a linux hosted gcc for mac os x.
look at cmake, if you do it once you make porting a lot easier
and don't forget to visit the clue shop!
Mac OS X is a graphical layer over a BSD system, which conforms to POSIX. As GNU/Linux is mostly POSIX compliant, one cane be quite confident that he will easily find GCC and all the necessary libs to make a Linux to Mac port as easy as 1) Installing the required libs if necessary (SDL, ...) and 2) typing "make" in a terminal window...
it just depends on what libraries people used. porting from linux to mac is pretty straight forward usually. very easy if you used SDL. i prefer premake to cmake. you just need the osx install cd's for the dev tools.
I ported a dos/win32 demo to osx, you can get the code here: http://adrianboeing.blogspot.com/2011/02/despaire-by-iguana-ported-to-mac-osx.html
I ported a dos/win32 demo to osx, you can get the code here: http://adrianboeing.blogspot.com/2011/02/despaire-by-iguana-ported-to-mac-osx.html
You don't really need MacPorts if you know how to compile things (MacPorts doesn't seem to be maintained very well). But basically installing the dependencies and typing 'make' will do.